[jQuery] select links not children of li
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=553343222-08012007><FONT face=Arial color=#0000ff size=2>Okay...</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=553343222-08012007><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=553343222-08012007><FONT
[jQuery] select links not children of li
Why doesn't this work: $('a').not('li a').click( function() { $(this).remove(); return false; }); On this code: <a href="">this is a link</a> <br /><br /> <li><a href="">a link inside an li tag</a></li> <li><a href="">and another</a></li> <br /><br /> <a href="">and finally another link at the bottom</a> It correctly removes the bottom and top links, but it also removes the two links found within LI tags, which from the way I read the API it should not. ____________________________________
[jQuery] select links not children of li
..how to select all links on a page that are not inside a list (not children of 'li')?.. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Splitter - here's my shot at it
Give this a try. http://methvin.com/jquery/splitter/ Oskar, it sounds like you may have solved some of the problems with IE6 I haven't tackled yet. This version doesn't yet handle min-width and max-width for IE6 but I plan to put it there. Maybe we could join forces on this? It looks like you've pulled the min-width and max-width support out into its own plugin, which would be a great way to handle it. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] select links not children of li
Should be: $('a').not('li a'); ____________________________________ Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 amatthews@dealerskins.com www.dealerskins.com -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of spinnach Sent: Monday, January 08, 2007 3:38 PM To: jQuery Discussion. Subject: [jQuery] select links not children of li ..how to select all links on a page that are not inside
[jQuery] Stopping container from scrolling off-screen?
I was wondering if anyone could give me some pointers on how to achieve the following using jQuery. Basically I want to have a menu in a sidebar that scrolls with the content until it hits the top of the screen and then stays put as the reader continues to scroll down through the content. An example of what I'd like to achieve is the right side of the following site: http://www.plosone.org/article/fetchArticle.action?articleURI=info%3Adoi%2F10.1371%2Fjournal.pone.0000133 ...specifically the 'Commentary'
[jQuery] Interface Draggables problems
I couldn't find an email address for the author of Interface, but I can't seem to get Draggables to work right. - Draggable items sometimes are added outside of their container. Sometimes reproduecable, it seems that if you drop them near the bottom / on the bottom edge of the container, they get dumped onto the end of the DOM. Also happens in other places, see below. - My onchange function is never called. - The 'containment' parameter doesn't work. If I set it without doing anything special to
[jQuery] Passing values to a custom function
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=296165419-08012007><FONT face=Verdana color=#0000ff size=2>Do you want getPost to be called during the execution of initialiseForm, or later in response to the 'submit' event? For the latter, use this (added code in <FONT color=#ff0000>red</FONT>):</FONT></SPAN></DIV>
[jQuery] Link and Puff()?
I am attempting to use: $("#myelement").click(function() { $("#myelement img").Puff(500); }); My markup is as such: <div id="myelement"> <a href="mysite.com"> <img src="mysite.jpg" /> </a> </div> I need the Puff() effect to take place when the person clicks on the link before the browser heads over to mysite.com. What is the proper syntax in order to achieve this effect? The above javascript isn't achieving this. Thanks, Shane -- --------- Bender: "Amy, you like cute things so I baked you a pony."
[jQuery] Need help dealing with duplicate ID's in different forms
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=000222322-03012007>I am working on an application which uses a jquery to show and hide preloaded layers sort of like netvibes.com. Another aspect of my application involves dynamic creation of forms. When these forms are created, they are given an ID
[jQuery] JQuery 1.1a -> changes/bug? with $(this).id
Hi, thank you all for 1.1 i begin to testing, this works in 1.0.4 $(document).ready(function() { $('textarea').each(function(i) { $(this).id('area_'+i).after('<span id="gro_'+i+'">größer<\/span>'); }); FireBug say "$(this).id is not a function" What is to do? -- Viele Grüße, Olaf ------------------------------- olaf.bosch@t-online.de http://olaf-bosch.de www.akitafreund.de ------------------------------- _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] jQuery 1.1a (event handlers)
>> var counter = 0;
[jQuery] IE woes (was Exteranl Links)
Back from the holidays, and back to my problem :) In short: I want to go through all links on a page and, barring my array of exceptions, make all external links open in new windows without using the target attribute. In addition, the exception urls must be able to just contain the exception strings (using something like .match) and not have to be an exact match. In other words any urls within those domains will be exceptions. The http://www.nabble.com/Change-href-of-external-links-tf2718387.html#a7579373
[jQuery] Visual jQuery Redux
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 10"> <meta name=Originator content="Microsoft Word 10"> <link rel=File-List href="cid:filelist.xml@01C732FC.A4F1B5C0"> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings>
[jQuery] ajaxSetup
Am I daft or what, I'm trying to change some global ajaxSettings like so $.ajaxSetup( {contentType: 'text/xml'} ); but it seems to not work. $.ajaxSetup is not a function firebug tells me ... Andreas _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jQuery 1.1a (form submit)
You are right, I just checked it. I am going for more coffee. -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Mike Alsup Sent: Monday, January 08, 2007 9:04 AM To: jQuery Discussion. Subject: Re: [jQuery] jQuery 1.1a (form submit)
[jQuery] jQuery 1.1a (form submit)
Wait, the whole point of this thread was that it works differently now. Yes, the form.submit() function now fires when you call $().submit(). No, there isn't a way to turn it off. Yes, that doesn't seem to make much sense because it will submit your form, then call the validation function and ignore the result. Yes, I would call that a bug. The offending code is in event.js: if ( element[ type ] && element[ type ].constructor == Function ) element[ type ](); -----Original Message----- From: Dave
[jQuery] Passing values to a custom function
Hi again, following up my previous post where I was trying to bind a function to a submit event, I'm now trying to pass values from the function that returns a function to the bound submit event.<br clear="all"> I've a number of forms on a page, that perform a variety of functions, some similar. I'm trying to create a custom function that posts a checkbox variable, but within the context of the function that returns a function, I can't pass the variables across. If I put an alert(formName); etc,
[jQuery] Do something as soon as an element has loaded? (Before document ready)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Helvetica, Arial, sans-serif">Hi all I need to fire an event/run a method once an element (in this case a div with a list inside) has loaded, but before $(document).ready(). I'd like to be able to use simple jQuery objects... something like: $('#mydiv').hasloaded(function(){
[jQuery] 1.1 specs
I think the feature I like most is - Added attr(String,Function) to calculate the value and support for attr("key", "${formula}") syntax, a shortcut for the former... that opens a lot of doors!
[jQuery] Events bubbling
Hi all, I'm trying to do a simple thing but I get annoyed by my lack of comprehension about event bubbling and capturing. As you can see here : http://www.amigrave.com/upload/posts/jquery/events.htm# I'm trying to have a div displayed over the link when we click on it. When we mouse over the displayed div, I want it to disapear. My problem is that in the div I have many elements and some links. When the mouse come over a link, the mouseout event of the parent div is triggered. I want to avoid that.
[jQuery] jQuery extension for Firefox
Hey all! I'm currently in the review process for an extension which basically puts jQuery on EVERY page. I did it after reading something on learningjquery which uses a bookmarklet. I'm pretty sure that there will be issues surrounding it (GMail had a weird, long button when I put jquery on my inbox), but it's more for developers right now anyway. Maybe future things would something like a blacklist, where sites you don't want adding will be excluded. Alternately, sites you want to add could be whitelisted.
[jQuery] insert HTML and then append loaded HTML file
Hello, I've been stuck for a moment trying to do as following: 1) Insert the specified HTML code to a div 2) Append whole content of the specified HTML file to the same div. As for know I may only do one of these points. Can't combine them together. Any suggestions how to easily combine load() and html()? Cheers -- View this message in context: http://www.nabble.com/insert-HTML-and-then-append-loaded-HTML-file-tf2935505.html#a8206995 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________
[jQuery] Need Advise
Hi All, I have a site: <a href="http://mumor.freeweb.hu/gocsej/">http://mumor.freeweb.hu/gocsej/</a> on the left side there is a menu, left beside there is a picture with transparent gif's to emulate some stonemovings. I used normal Javascript and Jquery mix on the mouseover and mouseout event to handle the hovering event. But when you run the mouse fast over the images, then at the currently standing menuitem the stone begins to flicker, passing all the events to the current image link. My question
[jQuery] :input selector
Hi, I'd like to have a selector ":input" that selects all input elements of type text, checkbox, radio and file and all textareas. The jQuery.g object looks like it could be extended to provide this selector, unfortnately I have no idea how to do it. My approach looks like this: $.g.[":"].input = "..."; The jQuery.g object is used inside jQuery.filter, which is used by jQuery.select. Both methods are quite complex and undocumeted, I have no idea what is going on in there, therefore I could need some
[jQuery] Double fire
<html> <body> Hello folks, Despite my best efforts to understand previous posts about multiple firings of functions, I'm still having difficulty with a section of code that persists in firing twice. When a particular section of a page is loaded, a function is triggered which completes an ajax call to load a list of radio buttons of the structure... <tt><a href='#' class='ltype' id='1*1'><input type='radio' id='A' name='iLinkTypeID' value='1' /><label for='A'>Standard link</label></a> <a href='#'
[jQuery] .css() px vs. em
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi folks,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm trying to get the font size of some text using the .css() method, but I'm running into a problem because Firefox is returning the value in pixels while IE6 is returning the value in ems. Is this a bug? Or is it just a browser difference that we have to account for in our code?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Text
[jQuery] Splitter
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On Behalf Of Dave Methvin Subject: Re: [jQuery] Splitter
[jQuery] .css() px vs. em
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD> <BODY style="WORD-WRAP: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space"> <DIV dir=ltr align=left><SPAN class=293072619-06012007>> </SPAN>Firefox is returning the value in pixels while IE6 is returning</DIV> <DIV dir=ltr align=left><SPAN class=293072619-06012007>></SPAN> the
[jQuery] Problem with Tablesorter and Pager
Hi, I use the last tablesorter plugin (<a href="http://jquery.com/dev/svn/trunk/plugins/tablesorter/jquery.tablesorter.js">http://jquery.com/dev/svn/trunk/plugins/tablesorter/jquery.tablesorter.js</a>) with pager plugin ( <a href="http://jquery.com/api/js/pager.js">http://jquery.com/api/js/pager.js</a>). I find a bug, when you clic on pagination, the data don't reorder correctly. See an exemple here : <a href="http://www.mes-anniversaires.com/tablesorter/tableau.htm"> http://www.mes-anniversaires.com/tablesorter/tableau.htm</a>
[jQuery] jqminmax trouble
Hi all, I have a troble with jqminmax plugin, which I am trying to solve since 2 days, but with no suucess. The problem is: it simply doesn't work and I cannot figure why. Here is the test page: http://72.232.217.42/~titanga/arena_new/source/htmls/phonebasic.php?id=1349 There are tooltips everywhere (on Papeeal for example) and they are broken under IE6 due to the max-width property. Can anyone help me to trace the problem ? -- Best regards, Stoyan mailto:fullgarbage@gmail.com _______________________________________________
[jQuery] Dynamically removing an inline script block
Hello folks, I'm seeking help in dynamically REMOVING an inline script block within the head tags. My current application involves a case study editor, wherein users add/delete/edit branches to a decision tree. The visual representation of the tree is generated by COOLjsTree (http://javascript.cooldev.com/) and is loaded into the page as an inline script inside the head tags. I want to be able to dynamically delete the script block containing the "old" tree, and replace it with a "new" block immediately
[jQuery] JQuery on Rails
Hi, Just coming back from holidays and playing catch up ... I know there was some discussion a while ago and it seems this was setup: http://trac.visualjquery.com/jQueryRails But is there an update on it? (Also is there any similar approach to CakePHP 1.2?) Ive read there were generic adapters but can't tell from the code/svn log. Thanks. - Jon _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] toggle removes objects' original href="go here" function
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I'm making a download button which links to a zip file but also needs to show a hidden div when clicked. Adding the toggle() or click() seems to keep the href= link action from bubbling. I guess this is normally how I want it to behave... except in this case. Is there a way to work around this?</DIV><DIV
[jQuery] Bug in Nifty Corner Plugin
> The function same-height works not correct, see the Demo:
[jQuery] load() and html() trouble with IE and included scripts
I cannot fill innerHTML with script tags and succesfully return it in IE. After hours of playing I see it as a prime cause .load() bug on IE6. In jquery load() function there is: self.html(res.responseText) self.evalScripts() In IE, innerHTML (aka .html()) will not retain the <script> from the response. evalScripts which tries to .find('script') will not find anything. And exactly that will be executed. I've tried all combinations. See some mockup for testing http://www.kotouc.net/work/JS/Ajax/load-with-script.html
[jQuery] Accessing span before input
Hello everyone! Consider this code: <fieldset> <label> <span> <span class="fieldinfo"></span> <input type="text" name="name" /> </span> Navn: </label> <label> <span> <span class="fieldinfo"></span> <input type="text" name="phone" /> </span> Telefon: </label> (...) </fieldset> When blurring one of the input fields, I want jQuery to load an URL into the <span class="fieldinfo"></span> just
[jQuery] rounded corners
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><SPAN class=012561622-05012007><FONT face=Arial color=#0000ff size=2>Are you using the latest version? It's in jQuery SVN now:</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=012561622-05012007><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV
[jQuery] rounded corners
I have tried to use the rounded corners plugin for jquery, and it does work well IF you allow the height of your div to be rounded to NOT be fixed. If I set a min-height in Firefox and a comparable fixed height in IE, and my content does not fill up the div vertically, then the bottom rounded corners show up in the middle of the div rather than the bottom. Anyone know how to solve this. I need a min height for my content. _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Any way to trigger a click by script?
Hi, I'm trying to simulate a click of a link on my page. (to open a jpg in greybox on page load) How do I do it? I tried click(), but it doesn't seem to do anything. $(function() { $("#imglink").css("background","yellow").click(); }); <a rel="gb_image[]" href="myimg.jpg" id="imglink">My Image</a> The background changes (for testing), but the click event is not triggered. Tips? Thanks, ________ SEAN O -- View this message in context: http://www.nabble.com/Any-way-to-trigger-a-click-by-script--tf2926200.html#a8180306
Next Page