Firebug slow...
This is an interesting post : http://dean.edwards.name/weblog/2007/08/firebug-slow/ I tested 'javascript.options.strict' with jQuery on my site and it threw a whole bunch of errors. I don't know if this is something that the Dev team would want to or even be able to factor out - but it's interesting nevertheless. weepy
jQuery 1.1.2 Released: Happy 2nd Birthday!
On the 2nd birthday of jQuery we're happy to bring you a new release of jQuery! Here's the announcement: http://jquery.com/blog/2008/01/15/jquery-122-2nd-birthday-present/ and here's the release notes: http://docs.jquery.com/Release:jQuery_1.2.2 Enjoy - and here's looking forward to another year of excellent jQuery code! --John
1.2.2b getJSON major failure
I'm testing 1.2.2b in my application at the moment as it seems .height() is properly calculated, where dimensions 1.2 does not properly calculate window height opposed to the example on dimensions homepage, using dimensions 1.1 iirc). Thus I ran into a problem with the getJSON function, which works fine if I go back to 1.2.1, but fails with 1.2.2b. With getJSON jquery seems to produce a <script> tag instead of an AJAX request, but before calling succes() it never stores the return data where the
Syntax error in ui.slider.js
On Line 31 please remove the trailing , it triggers a syntaxerror in my IE7! @31 -change: function(e, ui) { cur[0].value = ui.value; cur[0].setAttribute("value", ui.value); }, +change: function(e, ui) { cur[0].value = ui.value; cur[0].setAttribute("value", ui.value); }
Using xhtml text fields
Sorry, new user query, and searching this forum (and the web) for an answer failed to help. What is the appropriate way to access the value of an xhtml text field? How does one access the value of that field given its id, including getting and setting it? Or, perhaps, is there a JQuery widget I missed while roaming about the svn source? Many thanks Jack
jquery xpath question, can you tell me why?
<input id="chkVideo" class="chkvideoclass" type="checkbox" operationotate="3" iswrited="True" videoid="54771"/>---i have checked it i used these code $(".chkvideoclass:input[@checked='1'][@operationotate<1]").length=1 - i don't know why i get this result,i think it's must be return 0 $(".chkvideoclass:input[@checked='1'][@operationotate!='3']").length=0 - it's ture who can tell me ,thx very much
Faster trim()
When testing performance of several JavaScript libraries, I came across an unexpected result with the trim() method. The jQuery library (as well as several others) trim using a single reg exp replace. (text || "").replace( /^\s+|\s+$/g, "" ) This seems reasonable. Why process the string twice when once will do? However, using two reg expressions is signifanctly faster. That is, each regular expression is very simple (no '|') and therefore runs much faster, making up for processing the string twice.
jquery.form and dataType json
Hi, when submitting a form with ajaxForm using dataType: json, the HTTP Accept header does not contain the json mime-type. How can I modify the request to include this? I need this since my server-side application uses content-negotiation to respond with the correct content-type. Best Regards, Mikael
1.2.2 table append problems.
Hi I have found an issue in 1.2.2 regarding inserting 'tr' rows into a table with nested tbody's. The following script should insert rows into each tbody (including the nested table), but it fails. A simple table works as expected. Also tried with a simple table that has multiple TBODY segments, and this fails also. All these scenarios worked fine in 1.2.1 Thanks Darren $().ready(function() { var b = $('table tbody'); var string = new Array(); for (var x=0; x<2; x++) { if (x % 2) string.push('<tr
a question about jquery xpath return value,can you tell me?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=gb2312"> <META content="MSHTML 6.00.3790.4186" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Verdana><FONT size=2><SPAN id=_FoxCURSOR>hi friends</SPAN></FONT></FONT></DIV> <DIV><FONT face=Verdana><FONT size=2><SPAN></SPAN></FONT></FONT> </DIV> <DIV><FONT face=Verdana><FONT size=2><SPAN><input id="chkVideo" class="chkvideoclass" type="checkbox" operationotate="3" iswrited="True"
JQuery 1.2.2 this.setArray is not a function error in firefox
Hi everyone, I just updated my site from Jquery 1.2.1 to 1.2.2 and now I am getting the following error in firefox 2.0.0.11 this.setArray is not a function http://www.abrahamsphotography.com/javascript/jquery-1.2.2.js Line 100 init([div#one8x10.layout], undefined)jquery-1.2.2.js (line 100) init("<div id='one8x10' class='layout'><table width='100%' height='100%'><tr><td class='imageTD' align='ce...", undefined)jquery.livequery.... (line 233) jQuery("<div id='one8x10' class='layout'><table width='100%'
Q.fn.show() not functioning correctly on visibility: hidden;
When I run show() on an element which is hidden it does absolutely nothing, while show (especially without a speed argument) really should make any element to 'show' imo. I suggest the following code: <code> show: function(speed,callback){ return speed ? this.animate({ height: "show", width: "show", opacity: "show" }, speed, callback) : this.filter(":hidden").each(function(){ this.style.display = this.oldblock ? this.oldblock
problem with tablesorter plugin
Hi - When using the tablesorter jQuery plugin does anyone know if it is possible to exclude certain rows from the sort. I have a table with data rows and then a summary row at the bottom. When I sort the table I want to sort all the rows apart from the summary. Any help or ideas appreciated. Thanks
Bug #1591 Still Open
<div>This bug is still open in 1.2.2. </div> <div> </div> <div>In IE 6 & 7 if you attempt to call getAttribute on an attribute that contains a ':' for a table tag and the attribute isn't present.</div> <div> </div> <div><table myns:attrib="foo"></table></div> <div> </div> <div>$('table').attr('myns:attrib') will throw an "Invalid Argument" exception if myns:attrib is not present on the table.</div> <div> </div> <div><a href="http://dev.jquery.com/ticket/1591">http://dev.jquery.com/ticket/1591</a></div>
1.2.2 events
The new "special" events api seems very solid, but is there a plan for documenting it's use? It seems straight forward enough that "$.event.add" looks for "$.event.special[event].setup" and "$.event.remove" looks for "$.event.special[event].teardown" but to use "$.event.special[event].handler" the special event author must call it specifically from within "setup/teardown"? Is it acceptable to use a scoped function instead of the long name-spaced "handler" (like is done for "$.event.special.ready")?
Loading comparison
The PBwiki team compared the loading times for the major libraries in several different scenarios. jQuery's small footprint shines through! Run the tests in your browsers to add to the overall data. <a href="http://jst.pbwiki.com/"> http://jst.pbwiki.com/</a> -- Brandon Aaron
BUG with $.ajax()/JSON in 1.2.2b2
Hi all, I just tried jquery-1.2.2b2 in one of my apps and found a strange behaviour with $.ajax/JSON requests. It seems like the success callback doesn't receive the data if and only if the request uri starts with "http://". File/document root relative path work as expected. Firebug reports an "invalid label". jquery-1.2.1 works as expected. Test case is up on: http://www.2meter3.de/jqPuzzle/dev/jsontest.html I haven't filed a bug yet, since I have no access to SVN and don't know if this was already
Crash bug in IE6 in 1.2.1 and 1.2.2b
Hi I've recently rewritten quite alot of the javascript on 64squar.es (drag n drop chess game). However I'm finding that my code seems to randomly crash IE6 (as in IE6 exits). It seems to be something to do with either piece movement, or fading in or out - as it seems to occur just before a piece moves. (IE7 and Firefox are fine) Unfortunately it happens randomly, so difficult to pin down. So I thought I'd ask and see if anyone had seem this before or might know where to try to test. Thanks Jonah
UI DatePicker v3
Hello, I decided to use the jQuery plugin "UI DatePicker" as my date picker tool, but I have some troubles with the configuration: I have the script configurated so that the date picker apperars just after clicking a button but the input - which is attatched with the date picker - is still "disabled". Are there any possibility to change the configuration in a way, that the input field is enabled that the user are also able to type a date without useing the date picker? Greetings from Vienna! -- Hannes
bug in latest accordion.js ?
not sure if I'm doing something wrong, but clicking on link "first" on this page does nothing: http://reboot.ch/js/accordion/index.html -will
1.2.2 suggestions
A few things that bug my mind for the upcoming 1.2.2 release; 1) is the annoyance resolved where in IE6 with slideUp() the element sometimes would show for a fraction of a second after it already slid up? 2) perhaps I've missed something, but shouldn't dimensions be adopted by the Core? 3) I think $.trim should be changed for 1.2.2 into the following, to not throw errors on wrong argument types (like False or anything other than string): trim: function(t){ return typeof t != 'string' ? t : (t||"").replace(/^\s
http://jquery.com/
Hi, on Safari3/Mac, the "Run" button doesn't show up i the example on the homepage. -will
performance tuning [name=...]
I had some reports where people had a ton of radio/checkbox buttons validated and experienced very poor performance. I'm still lacking a proper performance testsuite, so I can't really verify if my experiments yield anything better, so I'd like to ask for comments. So far I had this to select all elements of the same name: checkableGroup: function( element ) { return jQuery(this.currentForm).find('[@name="' + element.name + '"]'); } My improved solution is this: checkableGroup: function( element
BUG in FF introduced in rev: 4100
rev: 4100 "Greatly reduced the complexity of the width/height methods. This also fixes #2009, #1870, #1796, #1843, #1839, #1818, #1613, #1415 and #1629" breaks accordion with option {autoheight: false} The height calculated and set is too small, the accordion looks cropped at the bottom, was working fine before rev: 4100 This only in FF2/pc/mac Thank you! -will diff for convenience: --- core.js(4099) +++ core.js(4100) @@ -5,8 +5,8 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt)
2008 Roadmap?
Hello, I've been looking for a roadmap for future development and haven't been able to find one. Can someone share the future plans for jquery development?
Need Help with Draggables and Droppables
I am trying to do the following: I have a DT that is a draggable. That DT has an ID. When I drop the draggable DT on the droppable DIV, I append the words "Added!" No problem. But, Now, I want to grab the ID and append the ID to the DIV. The append is the easy part. No problem. However, the problem is what I am appending. Right now, I seem to grab everything except what I want. I think the problem lies in the draggable. Because the draggable is actually the helper, the ID is not copied when it is
What's happened to the nightly builds?
Last build was 4220 on 18th Dec. For those of us with limited access to ant or make, jquery-nightly.js is a really useful way of keeping up.
getElementsBy(attribute, value)
I'd like to propose a more useful DOM method then what getElementsByClassName is supposed to provide (http://www.whatwg.org/ specs/web-apps/current-work/#getelementsbyclassname), replacing both the need for getElementsByClassName and getElementsByName (http:// www.whatwg.org/specs/web-apps/current-work/#getelementsbyname), while having a great performance potential when used directly or via libraries. Method signature would be: getElementsBy(attribute: String, value: String, RegExp) Usage examples:
jquery.corner.js in Rails
Hi, Does anybody knows how to install jquery.corner.js in Rails? Regards, Pedro Camacho
XML namespaces on attributes
Hi all, I'm experiencing weird behavior when looking at a heavily namespaced XML doc and selecting by namespaced attribute. Im assming its my fault and am wondering where should I be looking in jquery to understand what is the expected behavior? Sent from my iPhone Chris Thatcher 202-340-9685 Christopher.Thatcher@comcast.net
contains match only substring. what about full text? thoughts and solution
Hi all. I work with jQuery to manage some XML files. suppose this XML data: <xml> <field_name>4a</field_name> <field_name>4ab</field_name> </xml> I need to find the field that contains the word "4a". not "4ab". In this case, $('FIELD_NAME:contains("4a")') will match also 4ab. Contains makes use of "indexOf", but to obtain a whole-word recognition a simple "==" operand will do the trick. I searched the documentation and the source code and I cannot find a solution, so I implemented a very small plug-in.
Interface and Sortables with child content
Hi, I am trying to use interface to order thumbnails within a gallery. The thumbnails are of different sizes and are IMG tags within LI tags of fixed width/height to make everything look nice. Yes, they are floating as well. My issue is that I can drag a single thumbnail around, but I cannot drop it anywhere. When I got rid of the LI tags and just used the IMG as the sortable items, it works fine. However, displaywise, I really want to have the LIs with child IMG tags. The only examples I can find
IE7 - Performance Problem of IE document.onready hack
Hi all, We have a problem with jQuery's document.onready event these days. The loading process of our home page delays about 15 seconds because of the request made by jQuery to the url "http://:/". Below is the related row of HttpWatch log. LoadTime Size Method Result Type Url 15.029 * GET ERROR_INTERNET_INVALID_URL * http://:/ This happens only with the first request made by the newly opened browser window. In the same browser window, after the first request, the load time decreases
jQuery Form Plugin: action="xxx" restrictions?
I started with the "html" example at Mike Alsup's page: http://malsup.com/jquery/form/#sample6 That worked fine. I then changed the form action attribute from "html-echo.php" to my own site's function library: "index.php?fnc=ajaxComments" then ajaxForm breaks on me, even though the ajaxComments function is identical to Mike Alsup's html-echo.php. This only difference is that his code was directly in a .php file, whereas mine is in a function. I've had no problems using my site's function library
Whoa...major problem with IE
Hey guys, I using jQuery on one of the <a href="http://code.google.com">code.google.com</a> pages at work. I am finding that doing a query like this: jQuery('#gc-toc .selected, ul.gc-topnav-tabs a.selected'); Takes over a second or two on this page, however when I add an id to the .selected node and do the following: jQuery('#toc-selected, ul.gc-topnav-tabs a.selected'); It executes in roughly 30 or so milliseconds. <br clear="all"> ###UPDATE### So I tracked the bug down further. It seems that in
Pagination Based On Paragraphs
I want to create a plugin for pagination based on n number of paragraphs in a document. Has anyone seen anything like this? Lemme know. Dave
Native Class Selectors...?
Greetings, I was wondering if any of the core developers had seen: http://webkit.org/blog/153/webkit-gets-native-getelementsbyclassname/ ...and if any consideration has been made yet toward using these native implementations when they are available in the browser? It seems like it may be worth it on the grounds of speed if nothing else. Perhaps something with this could be introduced with a plugin similar to how the usage of getElementById() was? Pax, - Stan
Safari and DOM-Selectors after AJAX-Request
Hello, I have got some problems with Safari 2.04. And I think this might be a bug in jQuery (or Safari). There is a span-Element in my html-Page <span id="myId">Hello World</ span>. I do an AJAX-Request and Replace the Span-Element with something new. This is an excerpt of the AJAX Response: <replaceElement id="myId"> <![CDATA[ <span id="myId">Hello again</span> ]]> </replaceElement> I read the AJAX-Response in a self-written AJAX-Plugin and do something like this: matchedElementById.replaceWith($(newElementsCData))
jQuery+jsonp+iframe
Hi there all, i have a little question ... is there anybody that used jquery in order t bypass the cross-domain policy for the iframes ? I nedd a help to understand if is possibile to take out the values of an iframe fields... an iframe thath arrive from google custom search engine. Anybody can help me please ? Thanks Denis
Focus event delegation, only one issue remaining
Hi folks, I'm trying to use event delegation for form validation, for two reasons: - Performance: Adding only a few handlers to the form is way faster then adding handlers to each element when dealing with large forms (say, more then 100...) - Ease of use: Event delegation handles dynamic forms automatically, there is no need to "refresh" anything, eg. adding the necessary event handlers to an element that just got added to the form It didn't take long to discover that neither focus nor blur events
Next Page