"finally" in order to avoid leaks in IE6 ?
Hi all, I guess all of you saw this article : http://www.hedgerwow.com/360/dhtml/ie6_memory_leak_fix/ I was wondering if the finally statement could replace the .remove() calls here and there in jquery core ? -- Fabien Meghazi Website: http://www.amigrave.com Email: agr@amigrave.com IM: amigrave@gmail.com
jQuery External UI Reference
I was doing a checkout of the trunk ( http://jqueryjs.googlecode.com/svn/trunk ) and I ran into trouble with the external reference for the trunk. it is trying to checkout themes => http://jquery-ui.googlecode.com/svn/trunk/ui/themes Looking at the repository for the ui it appears that the location for the theme directory has changed to be in the trunk directory instead of the ui/themes. Could someone change the svn:externals property on the trunk to point to http://jquery-ui.googlecode.com/svn/trunk/themes/
innerWidth() returns 0 in firefox with visibility: hidden
I noticed in upgrading to 1.2.6 that in Firefox (2) that innerWidth returns 0 when the parent is set to visibility: hidden. This changed from 1.2.3+dimensions. Two test pages are provided: <a href="http://jdsharp.us/jQuery/debug/scrollbar-1.2.6.html">http://jdsharp.us/jQuery/debug/scrollbar-1.2.6.html</a> <a href="http://jdsharp.us/jQuery/debug/scrollbar-1.2.3-dimensions.html">http://jdsharp.us/jQuery/debug/scrollbar-1.2.3-dimensions.html</a> The following ticket is open: <a href="http://dev.jquery.com/ticket/3011">http://dev.jquery.com/ticket/3011</a>
Jquery and ViaMichelin Maps Api Problem
Hi all, I'm a new member so... nice to be here, I'm Adriano from Rome (Italy). My problem is the following: I have to use the ViaMichelin maps APIs, but when i include together the two library, the jquery plus the viamichelin, firebug gives me this error "tF.call is not a function". The maps work, but jquery doesn't any more... Trying to isolate the error cause I simply set up an html document that simply import the two scripts: <script type="text/javascript" src="jquery.js"></script> <script src="http://api.viamichelin.com/apijs/js/api.js"></script>
About createWrapper in effects.core.js
Hello, In this function, we check whether top and left property of the wrapped elements are Number : var top = parseInt(el.css('top'), 10); if(isNaN(top)) top = 'auto'; var left = parseInt(el.css('left'), 10); if(isNaN(top)) left = 'auto'; In which case aren't they numbers ? Thank you for taking time answering this question : )
JQuery Development
www.freeservice6.blogspot.com
New Test page for the test runner
Hi folks Due to the recent problem with Scriptaculous (or is it Prototype?). I added the option to run the test suite, along with more libraries. To do that, instead of going to /jquery/test/, go to /jquery/test/ polluted.php. You'll get a form with all the available libraries (added the last of prototype, mootools and scriptaculous). Check those you want to include and hit submit, the test will start and those libs will be included. It's very simple to add new libraries or versions. Just throw in
JQuery selectors not working -
Hi all I'm using jQuery in a client project which loads custom javascript code through the Firefox Greasemonkey Plugin. The script itself appends some custom code and elements to the body element. Everything worked well until one or two days ago, but suddenly the append of this code fails. There are no javascript error messages. The I assume this problem relates to a recent update of Firefox or JQuery. Currently I have the following versions installed: - Firefox 2.0.0.14 - Greasemonkey Firefox Add-On,
jQuery in GWT?
Did you see this over at Ajaxian in the GWT discussion? @polterguy, GWT will create more optimal code in general than hand written in JS in non-trivial projects. To beat GWT, you’d have to write ugly, non-idiomatic JS, which would be a pain to maintain. GWT interns all strings, folds expressions at compile time, devirtualizes polymorphic methods and shortens or eliminates prototype chains, significantly speeding up JS execution. Any hand written JS library that uses mixins or prototype inheritance
IE onload again and again
<html> <head> <style> .hmmessage P { margin:0px; padding:0px } body.hmmessage { FONT-SIZE: 10pt; FONT-FAMILY:Tahoma } </style> </head> <body class='hmmessage'> <P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><FONT face=Arial color=#000000 size=3>Hi,<BR><BR>I’ve been getting weird behaviour in IE6 and it is related to a previous post.<BR><BR>i am using this fix for the problem outlined:<BR><BR></FONT><A href="http://dean.edwards.name/weblog/2006/06/again/"><U><FONT face=Arial color=#800080 size=3>http://dean.edwards.name/weblog/2006/06/again/</FONT></U></A></P>
jQuery warnings
I just discovered JQuery yesterday so I still learning. I went to http://www.malsup.com/jquery/cycle/int2.html for examples. The code is generating a lot of warnings in FireFox's Error Console and eventually locks up Firefox. My implementation using version 1.2.6 generates similar volumes of errors My code <div id="maincontent" style="height:400px"> <div id="s1"> <img src="<?php echo $Path;?>/SiteAssets/Jpeg/dressA.jpg" alt="eat your peas lenox" width="50%" border="0" class="image"
Ticket 1591 - TABLE non-existent namespaced:attribute throwing "Invalid parameter" in IE6 & 7
Reopened this ticket, attached is a patch (also attached to the ticket) that resolves this issue and includes the unit test. <a href="http://dev.jquery.com/attachment/ticket/1591/">http://dev.jquery.com/attachment/ticket/1591/</a> Feedback / thoughts / comments? Cheers, -Jonathan
call function.method()
I'm trying to create a function and methods within it. What I want to do is to develop a form validation plugin. I want to accomplish the following: if ( $("#field_id").validate.isFullName() ) { alert("is full name"); } else { alert("is not full name"); } what I've come up with is this: $.fn.validate = { isFullName: function() { if ( $(this).val.match(/^[a-z]+$/i) ) { return true; } else { return false; } } } but it doesn't work. Does anybody know how I can fix that?
Performance issue with HTML selector
Hi all, I've come across a performance issue when using the HTML selector in jQuery 1.2.6. We are doing an AJAX call that returns a fairly large chunk of HTML. To insert this output into the page, we are taking that HTML and making it into a jQuery object ... $.get(someURL, function(data) { // Convert the HTML string into jquery so that we can do stuff with it later var newrows = $(data); ... } The problem is with the $(data) function. In IE7, an 80kb data string takes 20 seconds to process. The
Integration with jQuery.CssRule?
Hello all devs, My porpuse is create some integrations with all plugins that need CSS manipulation to get things working. For example: Tabs - jQuery plugin for accessible, unobtrusive tabs http://stilbuero.de/tabs/ by Klaus Hartl To use this plugin the developer need to link a CSS file, but we don't need it more, with jQuery.CssRule we can declare all CSS rules by JavaScript. Check out the sample: <script src="jquery-1.1.3.1.pack.js" type="text/javascript"></script> <script src="jquery.cssrule.js"
Please Inform Users of New UI Trac
I think we should (temporarily) add a note somewhere on the new ticket page for core's Trac that informs users of UI's Trac.
jQuery documentation...
I am learning jQuery... The official documentation is helping me on every step but it's far away from being complete. Day after day I am finding answers to my question (by myself or by asking people on jQuery irc channel). And finding those answers is verry time expensive sometime since important aspects of jQuery library are sometimes not in the documentation. My ideea is simple: I answer the jQuery developers to create a jQuery wiki where the users can contribute to the documentation. If you will
Jquery conflicting with adwords conversion tracking
Hi, I think when the jQuery library and the AdWords tracking code are on the same page it stops conversions being tracked, or at least interferes some how. I recently added jquery to the head of all our pages and on the day i added it our conversions in AdWords dropped very significantly (about a 90% drop) although they did not drop completely. As soon as i removed jquery our conversions picked up again and were back to normal levels. I think the reason why we didnt have a total drop in conversion
IE Onload problem
Hi, Was there ever a fix in JQuery for the following problem: http://dean.edwards.name/weblog/2006/06/again/ Thanks Paul
document.write with $(document).ready()
Hi, I have a question because I went into a problem after a small change on a website and I want to understand why. Where in the DOM object tree is jQuery when it fires the ready function on document $(document).ready() ? If you put this small script into a page, it will destroy the content of the page in IE and FF. And on FF the browser is showing that it is loading something (but nothing actually): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/ TR/xhtml11/DTD/xhtml11.dtd">
How the effects works ?
I'm trying to figure out how the effects (from ui/enchant) works. At this point I need some explanations from people who have a deep understanding of the enchant library code. What I think I understood (for a simple effect like 'clip' for example) : We save some properties of the element on which we gonna apply the effect, & We show it (why ?), We create a wrapper for the element (why ?), We animate the element, As soon as the animation is done, we restore the properties of the element and we remove
jQuery throwing error with applet on page in FF 2.0.0.13
I just tried adding an applet to a page with jQuery v1.2.3. Now that the applet is on the page, jQuery throws an error when the page loads. If I create a page that just loads an applet and loads jQuery, I have the same problem. This seems to be only happening in Firefox v2 (but I've only tested with v2.0.0.13 specifically.) The error I get is on the lines of (line 674): Java class ImageClipboardApplet has no public field or method named "jQuery1207156682718" Sometimes I also get a message like (line
Possible bug in Opera 9.27
I was toying around with jQuery to get to know it (and I must say I am quite impressed). But when I tried to run my tests in opera nothing happened. To be sure I tried a couple of pages in jqurey.com[1][2] and the the jquery test suite [3] The test suites reported: Tests completed in 63712 milliseconds. 0 tests of 1157 failed. But the examples on the jquery documentation pages does not work. regards -- [1] http://docs.jquery.com/Attributes/html [2] http://docs.jquery.com/Ajax/jQuery.getJSON [3] http://jquery.com/test/
ie onload problem still happening
<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> Somebody gave me a fix involving a domready type fix.<BR><BR>The problem is still happening.<BR><BR>I am going to revert to this fix <BR> <BR> <A href="http://blog.outofhanwell.com/2006/06/08/the-windowonload-problem-revisited/">http://blog.outofhanwell.com/2006/06/08/the-windowonload-problem-revisited/</A><BR> <BR> Anybody
jQuery selectors and text nodes
Hi, I have a question about what is either a missing feature or a design rationale. jQuery selectors appear to be centered around elements and do not include text nodes. For instance, if I have HTML such as this one: <li><b>ISBN-10:</b> 0743226720</li> and I would like to select the next text node after the <b> element that contains ISBN-10, I'd have to do: var isbnBLabel = $("b:contains('ISBN')"); var isbnVal = isbnBLabel[0].nextSibling.nodeValue; I'd much rather do something like var isbnVal =
Introducing QUnit
Hi devs, I'd like to introduce to you QUnit: The jQuery unit testrunner. Actually its nothing new at all, apart from the same, and quite some cleanup. The interesting part: If you want to run the jQuery testsuite, you need to checkout the new project "qunit"! http://dev.jquery.com/view/trunk/qunit/ Why this change? First, to remove all the duplicated copies of testrunner.js and testsuite.css. There is now a single place where those files can be found and maintained. Second, to document and promote
use of jQuery in environments where window properties do not appear in global scope
Hi, I am using jQuery in an environment (*) in which window properties such as "navigator", "clearInterval", etc. do not appear in the global scope, so accessing "navigator" (like jQuery does) instead of "window.navigator" leads to an undefined error. Is there a reason why jQuery does not prefix such properties and if not, could it be changed to facilitate the use of jQuery in such environments? - Godmar
Plugin compatibility and update check
Are you thinking about a system to notify the programmer when a plugin or jQuery itself is not outdated? I was thinking to put in the website a page which contains the latest version of jquery and into each plugins a url to check the latest version available. Also a property "compatibleWith" to indicate wich is the miminum version of jQuery required by a plugin. When I put a global variable "checkjquery" to true each plugins (includind jQuery itself) report its status... Would be possible?
Has 1.2.5 been released?
The http://jquery.com/ homepage is now linking to 1.2.5 - has this been officially released? I can't find a changelog or blog post or even an announcement on the mailing list about it - what's new? Cheers, Simon
constructor vs typeof
Hi Team I've been wondering, why is that x.constructor == y is always used instead of typeof ? Is this a speed, size or browser quirks optimization ? I personally prefer typeof, the contructor requires one to first check that x isn't null. Also, referring to String, Array.. etc should be slow as they're properties of window and the interpreter needs to lookup for them on each scope in the chain before finding them. Just being curious :) Cheers -- Ariel Flesler http://flesler.blogspot.com
1.2.5 regression: attr returns null for undefined attributes, was undefined
Unfortunately I haven't tested this before the 1.2.5 release... It looks like we have a regression in the behaviour for attr: Previous to 1.2.5, attr returned undefined for attributes that were undefined. Now it returns null. A simple test. test("attr", function() { ok( $("#main").attr("doesnotexist") === undefined, "validation relies on attr returning undefined for undefined attributes" ) }); This breaks the validation plugin, which relies on that behaviour, therefore the error reports about
Aborting $.ajax causes uncleared setInterval in $.ajax & ongoing CPU usage
Hi, I have submitted a ticket regarding an issue with aborting ajax requests: http://dev.jquery.com/ticket/2935 I thought I'd post it here in case anyone has any additional feedback. Regards, Ian ------------------ Issue: Aborting an ajax request results in $.ajax having an uncleared setInterval which causes ongoing CPU usage (jQuery 1.2.5). Test code: var myajax = $.ajax(...); myajax.abort(); Details: When using abort() on a returned xhr object from $.ajax(), the xhr will be successfully aborted,
Server error at jQuery (Flexigrid) search
All: I am integrating Flexigrid with Django. And not sure if this is a jQuery (flexigrid) issue or a Django issue. Hopefully one of you will help me. I am able to display the flexigrid and populate the rows. However, I'm encountering an error at search. If I do the below (at the server code): query = 'cep' qfld = 'publisher' if (query): qfilter= {"%s__contains" % qfld : query} books = Book.objects.filter(**qfilter) the values are correctly populated. However when I get the query from request.POST,
Possible bug introduced ajax load() in 1.2.2 (using Rails and Safari)
Hi all,<div> </div><div>We've come across a problem using load() for ajax requests using Rails and Safari (3.1.1). This problem only exists in jQuery versions 1.2.2 and newer.</div><div> </div><div>I think it may have something to do with this changeset incorporated into the 1.2.2 release:</div><div> </div><div><a href="http://dev.jquery.com/changeset/4155" target="_blank">http://dev.jquery.com/changeset/4155</a></div> <div> </div><div>After this change, the load() function forces a dataType of "html"
method empty() for tables
Hello, I would like to know for the method empty() if it would be interesting to add a special case for tables to remove the rows with the method deleteRow ? Would it be faster? did you already test that? Cheers, Sylvain
Keyhandling on FF2/Mac, autocomplete issue
Hi devs, I just fixed most outstanding bugs in the autcomplete plugin, but there is one issue that I can't reproduce and therefore have no idea how to fix: http://dev.jquery.com/ticket/2761 According to that, the event.preventDefault() call inside the keydown-handler doesn't work and the cursor is still moved. I don't have a Mac and therefore can't reproduce it, nor do I have any idea how to fix it. The keyhandling implementation is here: http://dev.jquery.com/browser/trunk/plugins/autocomplete/jquery.autocomplete.js#L92
1.2.4 missing patches?
I was just upgrading from 1.2.3 to 1.2.4 and noticed that the diff is relatively small compared to the list of closed tickets that are supposed to be in this release at http://dev.jquery.com/report/27. I looked at one ticket in particular (http://dev.jquery.com/ticket/2567) and confirmed that the patch is not in the 1.2.4 jquery.js. Bad build?
Common Security issues?
Hi devs, what are the important security issues a jQuery developer should know about? Consider this a kind of brainstorming, any ideas are welcome. Regards Jörn
enhancement proposal: make jQuery bfcache friendly
Hi, I noticed something a little bit annoying when jQuery is loaded on a page: Firefox bfcache is turned off because an unload handler is attached on the window to prevent memory leaks in IE: jQuery(window).bind("unload", function() { jQuery("*").add(document).unbind(); }); See http://developer.mozilla.org/en/docs/Using_Firefox_1.5_caching for more detail about the bfcache and when it is turned off. Having the bfcache turned off is particularly visible if you go back to a large page: Firefox
Auto complete
I am looking for some code to "auto populate (Auto complete ) " the dropdown box using the jquery and struts , If you have any idea please let me know.
Next Page