jQuery Nightlies
The jQuery 'Nightlies' link from the download page does not return a nightly build. The version returned is a few iterations older than the current stable release. http://code.jquery.com/nightlies/jquery-nightly.js There are several posts in the Dev list about the nightly builder not being up to date or not functioning correctly, and a couple of active tickets that go back a few months. http://dev.jquery.com/ticket/2129 http://dev.jquery.com/ticket/1769 Is this a known and accepted issue, or am I
IE gotcha with jQuery.clean()
Here's a fun IE issue I just chased down today. In some cases $(...).load() worked in FF but not IE. Specifically, the element's contents were being replaced by an empty div. I've traced it down to the fun combination of jQuery.clean() and an extraneous </div> at the end of the markup coming back from the ajax request. Here's the relevant part of jQuery.clean() (In the following, wrap has the value [ 1, "div<div>", "</div>" ].): // Go to html and back, then peel off extra wrappers div.innerHTML
UI Dialog r379 Buttons not showing inside of the dialog area
I am not sure when it started to happen but in one of my dialogs the buttons are not showing up inside of the visible area when using the modal option. It seems to be caused by the height 100% on the div.ui- dialog-container. The height is set on line 45 or revision 379. When I remove the 100% I get the behavior that I used to have.
trim redux
Hi all, I was recently debugging some slowness when using $(...).load(), and found the culprit to be, of all things, jQuery.trim(). In some cases, trim was taking up to 19 seconds to return a value. I was able to resolve things locally by replacing jQuery's trim with trim12 from [1]. I know trim performance has come up before[2][3], but it looks like (as of the 1.2.6 release, anyway) trim hasn't been updated à la trim12. Is this something you'd consider? Ted 1. http://blog.stevenlevithan.com/archives/faster-trim-javascript
Browser version regex fix
We've had some IE7 users with a user agent like: "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322)" which jquery incorrectly identifies as IE 6.0. I found this ticket: http://dev.jquery.com/ticket/2784 but the originally proposed regex breaks a couple of the Opera tests. I've uploaded a patch to that ticket that passes all current tests (plus the above
domManip causes double event binding
I have a pice oj javascript that is on a page to bind an event handler to a button, somthing like: ---- <script type="text/javascript" charset="utf-8"> $(document).ready( function() { $("#cancelpopup").click( function(event) { $('#eventId')[0].value='cancelpopup'; $('#xform').submit(); } ); } ); </script> --- It uses jqModal plugin, which calls domManip in this case. domManip seems to have code in it to execute each <script> element, which seems to cause the click event handler to get bound twice,
special event configuration
I would like to request that the special event setup function calls get passed the data parameter as a means to configuring the special event. The change would be made on line 1883 of 1.2.6: ... jQuery.event.special[type].setup.call(elem) ... would become ... jQuery.event.special[type].setup.call(elem,data) ... http://dev.jquery.com/ticket/3112
Pages with many objects take unusually long time to leave
Hello all, Our team is using and learning JQuery 1.2.6, IE6, IE7, and Firefox 2. We've noticed that when the page has a large number of objects (20,000 objects), it takes a long time to unload (leave) the page; somtimes 2 seconds, often long enough that the browser presents the "Script is taking a long time - continue?" dialog. This delay occurs even if nothing has been bound to the objects. This page demonstrates our problem: <pre> <html> <head> <script type="text/javascript" src="<c:url
<script> elments executed twice, once when document is "ready", and again when domManip gets called
I have a pice of javascript that is on a page to bind an event handler to a button, somthing like: ---- <script type="text/javascript" charset="utf-8"> $(document).ready( function() { $("#cancelpopup").click( function(event) { $('#eventId')[0].value='cancelpopup'; $('#xform').submit(); } ); } ); </script> --- It uses jqModal plugin, which calls domManip in this case. domManip seems to have code in it to execute each <script> element, which seems to cause the click event handler to get bound a second
Suggestion : IE, events, and currentTarget attribute.
The attribute currentTarget is not defined in IE Event object. Is it possible to include this attribute in the IE event object in next versions of jQuery according to W3C standards ? Thanks, Galou.
[Announce] Early Access to Claypool JavascriptApplication Framework
I'd like extend an invitation to the jQuery Developers to examine and provide feedback for Claypool, A Javascript Web 1.6180339... Javascript Application Framework. Claypool is built on jQuery and it's goal it to provide a small MVC, IoC, AOP, and Category Logging library for building large, long-lived client-side applications like Gmail, integration with technologies like Gears, and most importantly advancing jQuery as the ideal library to build the next generation of client-side applications.
Flickr replace url with regular expression. Help!
I'm trying to use a regular expression to change the url string from flickr. I want to print the big "_b" images but get an error "replace is not a function". Any ideas? $.getJSON("http://api.flickr.com/services/feeds/groups_pool.gne? id=81799453@N00&lang=en-us&size=b&format=json&jsoncallback=?", function(data){ $.each(data.items, function(i,item) { var regexp = /_m\.jpg/g; $("<img/>").attr("src", item.media.m).replace(regexp, '_b.jpg').appendTo("#images").fadeTo(1800,
Thoughts about delegation
So I really want event delegation in jQuery 1.3: http://docs.jquery.com/JQuery_1.3_Roadmap I've been thinking of ways that we can make it better and more jQuery like (especially with the new .selector property that I propose). I have a couple thoughts: Binds to $("#container") and watches for all clicks, filtering against the expression "div" - a fast LiveQuery substitute: $("#container div").delegate("click", function(){}); Binds to document look for all div: $("div").delegate("click", function(){});
My plugin/project doesn't show up
Must be something i did, but my plugin doesn't show up under "My projects". Also i can't find it when searching for it. http://plugins.jquery.com/project/jquery-roundcorners-canvas I still can edit the page. Can someone help me?
jQuery.each on array of strings or numbers and this in callback
Hi, I noticed that jQuery.each(['abc', 'cde'], function() { ... }), the "this" in the callback work as the strings in the array, but are indeed objects if you use typeof() to check. if I use the function(i, v) {} form of the callback, the v is then correctly the original primitive in the array. Is this (the object-wrapped this) the intended behaviour? If so the example in the callback argument in http://docs.jquery.com/Utilities/jQuery.each#objectcallback is incorrect as it states "this; // == valueOfElement"
$.each() against standard for?
I realize this is not really directly a jQuery problem, as my example will bear out, but I think it's a question the development team might want to consider. If I am iterating over a given array and wish to dynamically remove elements from that array, I would expect to be able to do that. For example: var arr = [1,2,3,4,5]; for ( var j=0; j<arr.length; j++ ) { if (arr[j] == "3") arr.splice(j,1); } This would make a new array in the arr variable with the elements [1,2,4,5]. This is all great for a
Improving the speed of outerWidth()/outerHeight()
Hi guys, the jQuery UI team is in desperate need of improving these two functions. Please read the created ticket for more information: http://dev.jquery.com/ticket/3082 Any input is appreciated. Thanks a lot, Paul
FF3 implementing Opera behavior on image "load" events
I believe this may be of interest too for FF3 and Safari users: http://developer.mozilla.org/en/docs/Gecko_1.9_Changes_affecting_websites Opera has been the first to implement this logic, Safari seems to implement it too. It seems that "load" event from images can now bubble up to the document, so: document.addEventListener( 'load', fn, true): will allow devs to have a notification for each image loaded in the page (not in CSS) -- Diego Perini
Cross Browser Problem?
Hi All, I'm new to jQuery and using jQuery 1.2.6 right now. I have problem in AJAX parsing XML which has different behavior in IE7 and Firefox. I have 1 html which contain jQuery script and 1 php which is generating XML, they are located in http://www.komputasiawan.com/jquery/index.html and http://www.komputasiawan.com/jquery/generatexml.php. The generatexml.php will output a standard xml result : ------- <?xml version="1.0" encoding="UTF-8" ?> <message> <author>Feris</author> <text>Adios...</text>
jQuery ignores external stylesheet in FF3
Hi, I've been developing a site using jQuery and over the last few weeks have hit against a bug in Firefox 3. I've managed to trace the bug back and it is caused because jQuery seems to run it's document.ready functions before external stylesheets have finished loading. I've put an example up at: http://dev.cognite.net/sandbox/jquery.html Is this a bug (in jQuery or Firefox 3) or a feature? Any ideas on a work around? Thanks, David.
Bind multiple data to same handler
Hi, I found a bug[1] when you want to bind multiple data to the same handler. I think it should be fired for every bind, and not only once with the last data binded as it is at the moment. The issue isn't that trivial, thus I come also up with it on the dev list. I'm not completely convinced with my patch I think it can be impreoved. Additionally I've only the test suite with FF2 and FF3beta, it would be nice if someone could run the (patched) suite also with other browsers. A small explantion for
Extensions
Hi there. I was just thinking about the numerous plugins and extensions that are being written for JQuery. I really like this framework but I think it will soon have some naming problems with new plugin functions. My solutions was to create some kind of namespace system that would structure JQuery a little more. For example if you want to create several functions concerning a tabbed panel like the following: $("#someselector").createTabPanel(...) $("#someselector").showTab(...) $("#someselector").hideTab(...)
$.fn.show() not working on visibility:hidden is a bug, not a feature
Hi people, I once again want to get attention for what I consider a flaw in jquery. It's been addressed several times and can be found here with references to earlier posts: http://groups.google.com/group/jquery-dev/browse_thread/thread/d77c38d197368e89/4883dd2e85689dc8?hl=en#4883dd2e85689dc8 The problem is built into the $.fn.show() function, which ignores the CSS property visibility, but only works on display: none;. Even to those who believe this is design, a choice or a feature (I haven't found
Error in line 1772 in ver 1.2.6?
Hi, I am using versiion 1.2.6 of JQuery.js. Firebug notifies me that there is an error in line 1772 of JQuery.js. The message that I am getting is; "fn is not a function" The statement in line 1772 is "return fn(elem, i, m, r);" Should this be "return function(elem, i, m, r);"? Thanks
Selection bug in Firefox?
I have a simple jQuery script designed to filter a nested <ul> to show only the items that you want. Everything works fine in IE7, but in Firefox 2.0.0.14 the script doesn't work. Here's an example showing the problem. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>status</title> <script type="text/javascript" src="http://code.jquery.com/jquery- latest.js"></script>
Mix of bgiframe and opacity in IE
Hey devs, has anyone ever tried to apply opacity to an overlay element, eg. via css("opacity", "0.5") while the bgiframe-plugin is applied to that element? The effect I'm getting: A white overlay, nothing else. If anyone has a solution for this, please share it. Otherwise I'll just exclude the opacity in IE, maybe depending on bgiframe plugin being present. Thanks Jörn
jQuery.extend in 1.2.6
Hi all, Sorry I have been quiet for awhile (or probably that's a good thing ;)) but I'm trying to update a project I've been working on to use jQuery 1.2.6. One function I use heavily is .extend and after revision 5599 it appears to cause infinite recursion (or at least 'too much recursion') in at least firefox. Because I havent seen an out puring of similar issues I'd venture I was somehow implicitly relying on the old behavior and didnt realize it. I've tried following through in firebug but its
for core commiters: version.txt
Hi devs, for anyone commiting to core: The version in version.txt must always be reflecting the current state of trunk. If it says "1.2.6" the trunk revision must be the same as the one tagged as 1.2.6. Upon the first commit thereafter, version.txt must be updated, eg. to 1.2.7pre. If it is unclear whether the next release will be a point release or not, just change it to 1.2.6post. I guess there could be a better naming convention than appending "pre" and "post", but the important thing is to have
Firefox 3 error
Hello everybody I installed FF3 and for my big surprise :) I noticed that my plug-in FlexiGrid don't work anymore. Here is the error FF3 throw: Erreur : [Exception... "'JavaScript component does not have a method named: "onRefreshAttempted"' when calling method: [nsIWebProgressListener2::onRefreshAttempted]" nsresult: "0x80570030 (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)" location: "<unknown>" data: no] Anyone aware of this kind of error? Thanks in advance :) d'Artagnan
bug in the offset() for a div postion:absolute / display:none
Hi, I am switching from interface to jquery-ui and I am blocked for the transfer effect. After investigations, it appears that the offset from JQuery returns (left:0,top:0) for a div in a absolute position and display: none. If I change from display:none to visibility:hidden it works, but I cannot apply the effect as it uses display:none/block to run. I created a ticket with a test case attached. http://dev.jquery.com/ticket/3037 Please could you help me? Cheers, Sylvain
The data necessary to complete this operation is not yet available in IE6
<html> <head> <style> .hmmessage P { margin:0px; padding:0px } body.hmmessage { FONT-SIZE: 10pt; FONT-FAMILY:Tahoma } </style> </head> <body class='hmmessage'> Hi,<BR><BR>I get this error intermittently on IE6 when making an <FONT size=2>$.ajax call.<BR></FONT><BR> <FONT size=2>I dd find this post which seems to describe what I think is happening:<BR><BR><A href="http://www.nerdyhearn.com/blog.php?id=56">http://www.nerdyhearn.com/blog.php?id=56</A><BR><BR>I am running jquery 1.2.3.<BR><BR>Is there
semicolon at the start of jquery + plugins
Hi I've talked about this before, but I've just had the same problem again. It's common practice to concatenate javascript files for a web app into 1 large file. For example Rails does this in production. It speeds up downloads considerably. However there is a problem with Javascript syntax around closures. If some code is not properly finished (i.e. a semicolon) and a closure is opened, the interpreter breaks. E.g. this is what happened to me just now ... --- all.js --- snip ---- ss=(s=this.getSeconds())<10?('0'+s):s;
bug in jquery.form.js / function cb()
Hello, I was trying file uploads with the current jquery.js and jquery.form.js, and file upload in form.js fails (FF3/Mac); I located the problem in function cb() where $.httpData is called with two arguments only. A quick patch is to add a third argument {} in the call on line 270, but I have no idea if it's the correct way to do it. jquery.js: * $Rev: 5726 $ jquery.form.js * Revision: $Id: jquery.form.js 5718 2008-06-07 15:02:19Z malsup $ quick patch: - data = $.httpData(xhr, opts.dataType); +
jQuery bug: IE leaks prevention causes content-loss when coming back.
I found a bug in jQuery. == Short summary == * Interactively (by mouse clicks) add content to a page (with .after(content)). * Go to another page (e.g. by following a link). * Hit the back button to come back to the interactive page. ==> Note: The dynamic changes are lost! This bug is caused by code that prevents memory leaks in IE: when I remove three lines from jQuery.js, the bug disappears. == Example == * I have tested this with Firefox 3. I don't know whether it shows up with other browsers.
More JSON functionality in core
I was wondering if there was ever going to be the addition of some more JSON methods into jQuery's core. The functionality is mainly exposed in the jquery-json plugin (http://code.google.com/p/jquery- json/), however I believe that at least the toJSON method would be a good addition to the core. I understand that serialize and serializeArray cover the use cases of form serialization, however neither method is capable of turning a generic Javascript object into JSON serialized text (if they are, do
jQuery.each weird results
Hey folks, I'm working on some code at the moment, and i'm using jQuery.each quite a bit through it. I'm getting some weird results. It seems that when I do a closure within the each, depending on the input the count value returns as either a number or a string: test1 = {'one':1, 'two':2, 'three':3, 'four':4 }; test2 = [1,2,3,4]; // typeof i returns as string jQuery.each(test1, function(i, item){ console.log(typeof i) }); // typeof i returns as number jQuery.each(test2, function(i, item){ console.log(typeof
Posting
Hi, I just submitted a post on google groups. Its about a possible bug in line 1772 of the JQuery.js code. Does it take a while for my comment to appear? Thanks, Amrith
Creating a Website Survey using Jquery
Hello, We have the need to create a website survey for our visitors. Nothing major just a few simple questions that I will use html/css to write. However I would like to use JQuery for implementation. We only want site visitors to see the survey once, meaning returning visitors don't get it neither are visitors bothered on every page. Also, we want it to be time based so that people have to be on the site for about 3 minutes before it comes up. Does anyone have any ideas how I could implement this?
Triggers JSONP an IE memory leak?
Hello together, I have observed a problem using jQuery's JSONP functionality and the Internet Explorer 7. The following example can be used to let the (virtual) memory size of the IE grow constantly until Windows refuse to allocate any more memory. Running the example using Firefox 3 does not show any conspicuities. <html><head> <script src="jquery-1.2.6.js"></script> <script> $(document).ready(function() { setInterval(loadData, 1000); }); function loadData() { $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?
Useless check ?
Hi, this ain't a major issue, but a couple of opinions on this won't hurt. http://dev.jquery.com/ticket/3033 Cheers -- Ariel Flesler http://flesler.blogspot.com
Next Page