[jQuery] DD's got a problem
Hello, reading some tutorials and trying to use them I have a problem with one of them : I've a list of dl, dt, dd like this : <div id="foo"> <dl> <dt>Foo</dt> <dd>My foo text</dd> <dd>Some more foo text</dd> </dl> </div> I use this function in my header : $(document).ready(function() { $('#foo').find('dd').hide().end().find('dt').click(function() { var answer = $(this).next(); if (answer.is(':visible')) { answer.slideUp(); } else { answer.slideDown(); } }); }); It hides well all my dd but, when
[jQuery] iUtil use it
Even if your not using the interface plugin you need down load the iUtil plugin and start using it. I even think that iUtil should go core. Thanks Stefan Petre -- View this message in context: http://www.nabble.com/iUtil-use-it-tf2362236.html#a6580883 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Incorrect selection when using #identifier inside find
Hello all. I've just find an strange behaviour while selecting by `id` using `find`. Take this HTML fragment: <div id="nowrap"></div> <div id="wrap"> <div id="heroe">I'm the heroe</div> </div> This code will result in a one element collection: $("#nowrap").find("#hero"); This seems to be result of performance optimization when we use an `id` as the selector. Can be easily circumvented by usign $("#nowrap").find("div#hero"); or $("#nowrap").find("[@id=hero]"); Should this be considered a bug?
[jQuery] iUtil use it
> > > Even if your not using the interface plugin you need down load
[jQuery] Upgraded Plugin: Spy
Hi, I've written a significant upgrade to my jQuery plugin that creates similar functionality to the Digg spy (http://digg.com/spy). Examples and documentation: http://leftlogic.com/info/articles/jquery_spy2 Source: http://leftlogic.com/jquery_spy/spy.js I've addressed some of the feedback on this site and from comments on my own site, but most importantly, I've changed the code to support multiple items being returned from the AJAX request rather than hitting the server once for each item. Will
Mailing List Explosion
As you can probably tell by the deluge of emails - the mailing list queue has been cleaned out. Everyone who was waiting for a (un)subscription email, a digest email, or waiting to be approved by a moderator (over a 1000 messages waiting to be approved, lots of spam) - it should be done by now. Sorry for taking so long to get through all of this. A hosted mailing list solution is sounding more and more tempting, although, moving to a high-quality forum would be more productive. Any Drupal/PHP people
[jQuery] jEdible in place editor plugin
I recently found jQuery. Fell in love with it and started converting old prototype + script.aculo.us projects to jQuery + interface. For those projects I needed an in place editor with which I could use Textile rendering. None of existing plugins supported that so I made a rewrite of my favourite one: Dylan Verheul’s editable. Some features include: * Editable element does not need to be wrapped with form tag. * Id of edited element is automatically sent when saving changes. * Can be used with external
[jQuery] Passing current object to function
I have this function which changes the class of a row on mouseover: function tableHover( tableClass, hoverClass) { $("."+tableClass+" tr").mouseover(function(){ $(this).addClass(hoverClass); rowAction(this); // NOT RIGHT }).mouseout(function(){ $(this).removeClass(hoverClass); }); } function rowAction(row) { var href= $(row).attr("href"); //alert(href); } I'm attempting to get the href element for the first link it finds and
[jQuery] Fisheye
Sorry for starting a separate thread but the archive is broken. I wanted to introduce my try of a fisheye menu. Maybe will get a nice plugin out of this http://interface.eyecon.ro/development/demos/fisheye.html _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Multiple Simultaneous Animations slow down Firefox
I replied to a thread previously and brought up this issue, but I think it merits its own thread. I can't find anyone else commenting on this issue in the forums or elsewhere. Here is my scenario: 4 absolutely positioned div tags that animate simultaneously to a new fixed position on page load. In Firefox, using jQuery's animate() functionality, they are very choppy. In IE, they are as smooth as butter. Here is how I am doing this: $(document).ready(function(){ $("div#wrapper div.animated").animate({left:0,top:0},1000);
[jQuery] Fixing jQuery's Memory Leak
I ran into some serious issues with jQuery leaking memory while using a fair amount of event handlers. Here is my solution that seems to quash the leak with event handlers. http://brandonaaron.net/articles/2006/09/30/fixing-jquerys-memory-leak If you know of any other current solutions or have a way to improve this, please let me know. -- Brandon Aaron _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] unchange() - how does it work?
I have a number of controls on a form that have a default onchange() function. In some places I would like to change the onchange function to something else, but I find that I have been unsuccessful in removing the default function. I have tried several different types of commands but nothing seems to work. Here is what I have so far: $("#myform").find(".inputbox").unchange().change(function() { anotherfunction(); }); <input type="text" name="filter" id="filter" value="" class="inputbox" onchange="document.myform.submit();"
[jQuery] Back/Forward support for ajax operations
Hello! Does someone tryed to make support for back/forward buttons in jquery? I'm asking because I found a example of script which is working very cool (I checked IE and FF .. and is working). http://www.onjava.com/onjava/2005/10/26/examples/examples/oreillymail/oreillymail.html Regards _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Jquery.com
What happened to the jquery.com site? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] extending existing DOM elements
hey gang-- I have a project which is using JQuery as its javascript foundation. In that project have a page of modules (div class="pmodule") that i would i like extend using Function.prototype or the JQuery equivalent. what i'd like to do is create a prototype object (with some custom methods) and then convert each of those DOM elements into an instance of that prototype object, so that each module on the page will then attain those custom methods. here's a simplified version of what i have so far:
[jQuery] Google map plugin idea
Is there any interest in a Google Maps plugin, which would allow: $("#id").makeMap({controls: controlArray, lat: latNumber, long: longNumber, mapController: var}) which would allow you to create a map, add controls, set latitude and longitude, and potentially create a mapController that could later be used to manipulate the map? <br clear="all"> -- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Interface - Scrolling Box Promo Effect
I am trying to recreate this effect in jQuery: <a href="http://www.opencube.com/samples/we_5.html">http://www.opencube.com/samples/we_5.html</a> Possible approach: Use the scrollTo function of the Interface plugin inside a scrollable div. Then I have to go back to the beginning when it's at the last node. Trying to make it scalable. Any alternate approaches one might suggest? Thanks, Glen _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] position of a character in a input field
Hi, Is there a way to get the position of a particular character within a input field? I would like to suggest tags (like autocomplet plugin) but with multiple tags I would like the autocomplete to be put under the word I was typing... Thnx, Abdul _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Rollover
Hi, I am trying to add a image rollover. I am applying it to a div before a li. <div id="navcontainer"> <ul> <div id="roll"></div><li><a href="index.php">Home</A></li> <div id="roll"></div><li><a href="news.php">News</a></li> <div id="roll"></div><li><a href="news.php?mode=edit">Edit News</a></li> <div id="roll"></div><li><a href="index.php?page=newsorder">News Order</a></li> <div id="roll"></div><li><a href="frontpage_articles.php">Front Page Articles</a></li> <div id="roll"></div><li><a href="minutes.php">Minutes
[jQuery] This mailing list software hates me
Whenever I try to turn off the email within the "mailing list options" - while I am logged in - I get an email telling me: You did not give the correct password Not authenticated My mailbox is innundated. How do I become 'authenticated' ? -- View this message in context: http://www.nabble.com/This-mailing-list-software-hates-me-tf2359614.html#a6573834 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] change a style rule
<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=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] jquery with Omniture
<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=Generator content="Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;}
[jQuery] unchange() - how does it work?
Dave Methvin schrieb:
[jQuery] Fisheye
<html xmlns:v="urn:schemas-microsoft-com:vml" 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=Generator content="Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style>
[jQuery] nth of type not working in some cases
On my jquery tutorial site, I updated to the latest version of jquery and a demo that was working prior is no longer functioning. I've done my best to narrow it down to this line: var fileName = $("input[@type=file]:nth-of-type("+n+")").val(); Full code is here: http://15daysofjquery.com/examples/multiFile/demo2.php Thank you for your assistance. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Documentation versions
Hi all devs, Is there any chance of someone coming up with some useful OFFline version of the documentation? For example a dynamically generated PDF file that could be downloaded. Having online docs is all well and good, but they can't be easily printed. I have looked at the xml/json files available via visualjquery.com, but hae no idea how to get them into some printable format (Sorry, I'm very new to JSON and my XSLT skills are virtually nonexistant!) Seems to me that one of the complaints about
[jQuery] children function breaks when there are no children
<div><BODY> </BODY></div> <div> </div> <div>$('p').children();</div> <div> </div> <div> </div> <div>breaks in sibling: function(elem, pos, not); elem parameter is null since there are no children.</div> <div> </div> <div>Is there a fix for this problem?</div> <div> </div> <div>thanks</div> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] how to if else situation with fx (tutorial request)
Hi, I was wondering how do you put if else situations in Jquery. For example: if ($(div.foo).css("display") == "none") { do this } else { do that } If something is open it needs to be closed first before something else will be openend. I have problems to get this in clear code. Maybe it could be taken up in the tutorial? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Fisheye
Wow... Animation is REALLY smooth. That seems to work really well. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Stefan Petre Sent: Friday, September 29, 2006 2:47 PM To: jQuery Discussion. Subject: [jQuery] Fisheye Sorry for starting a separate thread but the archive
[jQuery] A bug and an improvement...
First off, jQuery has (so far) been excellent to work with, and I wish I had discovered it before investing time in some of the other JavaScript toolkits that are available! So, the bug: I the process of running through the examples I have noticed that Firefox's leak monitor extension reports a leak in the same bit of code from jquery.js. I searched and apparently someone else has reported it on the list: http://jquery.com/pipermail/discuss_jquery.com/2006-May/005401.html The basic premise is that
[jQuery] children function breaks when there are no children
<div> <div><BODY> </BODY></div> <div> </div> <div>$('p').children();</div> <div> </div> <div> </div> <div>breaks in sibling: function(elem, pos, not); elem parameter is null since there are no children.</div> <div> </div> <div>Is there a fix for this problem?</div> <div> </div> <div>thanks</div></div> _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Tabs plugin: Truly bookmarkable finally
Hi all, there was one thing that always bothered me (and others on my blog) for the tabs plugin: That they weren't truly bookmarkable (only the one to start with). If I remove the "return false" from the click handler the URL is changed and you get a nice bookmark. Downside is, that the page scrolls to the element that is refered to in the hash of the url, or it scrolls to the top if you would use a hash that has no counterpart in the document. And I didn't want to use undefined hashes anyway for
[jQuery] Abort XMLHttpRequest
Scenario: after every key press in a form field, call a function on the server using Ajax and return a result. Problem: sometimes results are returned out of order, depending on how long the database query takes. For example, results may show up based on the fourth key press that are immediately replaced by the result of the third key press, which was a bit slower to get sent back to the browser. I am using the load function. I want to either abort all previously running Ajax requests or force the
[jQuery] Copy text to clipboard IE & FF
Hey! Is there any snippet of code which allows the user to press a key and the text in a div will be copied to the clipboard? I have some (non-jQuery) which only copies to the clipboard in IE (below), so something which can do it FF would be great. I'm not bothered about Safari, and Konquerer as it's an internal app and FF and IE are the only two browsers used. Cheers. IE compatible code: javascript:copyText(divname) -- View this message in context: http://www.nabble.com/Copy-text-to-clipboard-IE---FF-tf2197803.html#a6082948
[jQuery] Copy text to clipboard
Hey! Is there any snippet of code which allows the user to press a key and the text in a div will be copied to the clipboard? I have some (non-jQuery) which only copies to the clipboard in IE (below), so something which can do it FF would be great. I'm not bothered about Safari, and Konquerer as it's an internal app and FF and IE are the only two browsers used. Cheers. IE compatible code: javascript:copyText(divname) -- View this message in context: http://www.nabble.com/Copy-text-to-clipboard-IE---FF-tf2197803.html#a6082948
[jQuery] IE6 ASP.NET error from document.onload: 'this.events' is null
In IE 6 I am getting the following error when the page loads. --------------------------- Error --------------------------- A Runtime Error has occurred. Do you wish to Debug? Line: 913 Error: 'this.events' is null or not an object --------------------------- Yes No --------------------------- This does not occur in FireFox, only in IE (6). I am using ASP.NET and I believe that this is caused by an interaction between jQuery and the way ASP.NET hooks the document onload event. To fix this issue I
[jQuery] siblings() not working as expected
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 11 (filtered medium)"> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
[jQuery] unchange() - how does it work?
The un<event> can either remove just the handler passed to it as the first function, or it can remove all events if you pass it no function.
[jQuery] Widget Challenge
Dojo released a new widget today: a spreadsheet widget. and it ocurred to me that while we don't quite have anything like that yet, there are scattered widgets throughout the jQuerysphere. I figured it'd be nice for us to put together a jQuery widget package that, to the extent possible, mirrors the Dojo widget set. The challenge is this: where there is no existing widget, create it. The holy grail, at this point, would be a replication of their spreadsheet widget or their rich text editor widget.
[jQuery] next()
Hi there, I am hoping one of you can help me in what seems a simple issue, but I have been on this most of the day now. I have a table with data in it, along with cell that has a link in it, the link should toggle another cell that is found further in the table. I've tried many ways of referencing the td but with no success. I've tried with next(), siblings() next(".description") and no success. Can someone please point out how I would reference from a link that is inside a td to toggle another td
Next Page