$.ajax() sending XML documents
With jQuery 1.1.3.1, I was sending an XML document as the data parameter (along with processData set to false) to several $.ajax() PUT and POST calls. However, I'm getting an exception with 1.1.4 inside jQuery.extend at line 358. I changed that line to not try to iterate over prop if it is an XML document, however I'm not aware of any other side-effects: if (((prop = arguments[a]) != null) && (prop.nodeType !== 9)) I checked on the docs page, and it mentions that the data parameter should be either
wrap inside
It's come up a couple times where I want to wrap some markup around the contents of an element. There doesn't seem to be an easy way to do this. Example: clicking dt makes dd toggle $(".dropdown dd").hide(); $(".dropdown dt").wrapInside("<a href='#'></a>").toggle(...) <dl class="dropdown"> <dt>question</dt> <dd>answer</dd> </dl> The other case that makes this hard is when there are multiple child objects. In that case doing .children.wrap() would wrap each child, when I want to wrap all children.
jqModal development release
As requested; I've traversed the jqModal code, deciphered functionality, and left my translations (comments) along the way. The result is a codebase that I hope is more useful to other developers wanting to tinker with the project... albiet the commenting could use further standardization. The development version of jqModal is available @ the plugin page; http://dev.iceburg.net/jquery/jqModal/ || http://dev.iceburg.net/jquery/jqModal/jqModal.dev.js I'd like to commit jqModal to jQuery SVN if it is
error in Internet Explorer
I wanted to change the type of input element with something like this" $("input[@name='url']").attr("type","password"); This suppose to change the type of an <input type="text" name="url" /> element. Works fine in Opera, FF, but in IE 6 it crashes :/
Leak-free JSONP!
Hey guys, I just got a new JSONP download technique working that is leak-free in IE and Firefox. It's based on a suggestion by Gregory Collins to do the JSON downloads in temporary hidden iframes: http://mg.to/2006/01/25/json-for-jquery#comment-2254 I've been testing it by downloading a 250KB JSON file a hundred times. That makes leaks pretty obvious - IE was shooting up to 328MB before I fixed the leaks! Now there's not even a hint of a leak (after considerable tinkering). Unlike my old JSONP plugin,
Interface plugin problems after 1.1.4
G'day all Recently updating to 1.1.4 of jquery rendered Interface useless with 'method not found' errors. I tried to see if this was a namespace issue but got lost in the codebase, everything works fine with 1.1.3.1. rworth (irc) suggested I post this here as Interface is an official pluggin etc,Please let me know what ever else you need. Thanks Michael P.S. I've tried compressed and normal files and same effect.
UI & 1.2: Go Time
Hey Everyone - I'm going to be taking a vacation from work, Aug. 25 - Sept 3 in order to be able to work on jQuery UI and jQuery 1.2 full time. I want to have all the code and everything in place by Friday the 31st so that I can spend the weekend writing up all the release information, tweaking demos, etc. (I'm also moving to a new apt. on the 1st, so that'll be fun too.) It's time for everyone to buckle down and get these releases out - the result is going to be fantastic. --John
Plugin in testing - countdown
I have written a plugin that counts down towards a date (for instance an important event, birthday, new years day etc): http://www.texotela.co.uk/code/jquery/countdown/ During testing though, I found the timing somehow seemed a bit off in Firefox (strangeley enough, IE seems to behave as intended). Two of the examples run the counter every second, but for some reason the time in seconds does not decrement each time by one (sometimes two or even three). If I only have one countdown (that runs every
Renaming the jQuery Events Expando
Hi Everyone - This is a big question that we need to answer, see ticket: http://dev.jquery.com/ticket/1523 There's two issues at play: 1) jQuery cannot coincide with other copies of jQuery, since the same expando is used. 2) jQuery has problems with Mootools, since they (apparently) are using $events as their expando name as well. I'm considering the following solution, right now: Remove all expandos from elements, except for one, which corresponds to a unique ID for the element. This would have
jQuery 1.1.4 (a2)
Hi All - I've fixed all of the bugs that were mentioned last night, so here's a new nightly: http://code.jquery.com/jquery-nightly.js http://code.jquery.com/jquery-nightly.pack.js Please let me know if you encounter any other issues with this nightly. You can view the full list of tweaks that I made, here: http://dev.jquery.com/timeline The test suite completely passes in IE 6, FF 2, Op 9, and Safari 3. Safari 3 has a weird issue where if you run the Ajax tests together with the rest of the tests,
jquery bug with gran paradiso alpha7 ?
hi i have tested a lot of jquery functions within the new gran paradiso (firefox3.0) alpha. i think there is a problem with the callback function of .load any other browser (firefox 2.0 too) starts the callback function of .load() only gran paradiso dont want to start the callback function. i have tested $.post callback function - this one works! is this a jquery problem or a problem within the firefox alpha?
docs.jquery.com seems to be down
no reply to port 80 -- Fabien Meghazi Website: http://www.amigrave.com Email: agr@amigrave.com IM: amigrave@gmail.com
rollback chain
hello everyone! so here is the idea: give user a way to rollback jQuery chain implementation in some cases is trivial but in other is just impossible so here is my suggestion: jQuery(selector [,object [,{rollback: true}]]) .css("color", "blue" /* on this step jquery object should save original value of color attribute? */) .toggle(/* just call toggle again? */) .each( function() {}, function() {} /* second function is user-made rollback if user want the transaction to be rollbackable */) i think
jQuery 1.1.4 Test Release
Hi Everyone - I'm exhausted, but I just finished a feature complete version of jQuery 1.1.4 - if you could bang on it and make sure that it doesn't explode, that'd be great. Test: http://code.jquery.com/jquery-nightly.js I snuck a whole mess of speed improvements in, along with cool stuff like wrapping jQuery in a closure. Speed Improvements: 2x - .each() 4x - $("div") 67x - $("#id") Full list of changes: http://dev.jquery.com/report/16 --John
Selector bug?
<div><span class="gmail_quote">On 8/3/07, <b class="gmail_sendername">John Resig</b> <<a href="mailto:jeresig@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jeresig@gmail.com</a>> wrote: </span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> $("div > :last") to find the last child element in a div. --John </blockquote></div> Should this return two elements if it is executed on a document
Events Guide
Hi, some time ago I documented jQuery's event normalization here: http://docs.jquery.com/Events_%28Guide%29 I lost track of the recent changes that went into jQuery, but there is now much more done for events, all of which is hardly documented. Anyone here willing to take up the task of examining what is actually normalized and documenting that on the wiki page? Would be great to be able to remove the "Things to do here" comment at the start of the page and link to it more prominently from other
plugin guidelines
Are their guidelines anywhere that cover requirements of a plugin to be posted on the Plugins site, or instructions to get code hosted in http://jqueryjs.googlecode.com/svn/trunk/plugins/ ? -- Steve Clay http://mrclay.org/
Assigning jQuery to random namespaces and the true unobtrusiveness
First, congratulations on jQuery 1.1.4! An exciting improvement in the new release is the ability to assign jQuery to random namespaces. (see <a href="http://dev.jquery.com/ticket/1393">http://dev.jquery.com/ticket/1393 </a>) This demonstrates again the unobtrusiveness of jQuery. However, besides the namespace conflict, there are other types of conflicts. e.g. window.jQuery is still being set so that it might be problematic if you run multiple versions of jQuery side by side. Although running multiple
Major Ajax Test Suite Overhaul Landed
Hey Everyone - I just landed a major overhaul of the Ajax test suite. Here's the description: Complete overhaul of the Ajax test suite, it's now passing in all browsers. In order to achieve this I had to fix a number of bugs in the suite itself, along with other random bugs that popped up. The following bugs were resolved along the way: #1236 (.extend() keeps processing when it hits nulls), #1028 (.extend() now works recursively), #1080 ($.get no longer overwrites the data parameter), #1210 (Creating
Problem with SVN Sync
Hey, There seems to be a problem with the trac over at dev.jquery.com - it's not syncing with the Google code SVN. I submitted code nearly an hour ago that I need to demo, and it's still showing as the last commit in the trunk 2 days ago. -- Tane Piper http://digitalspaghetti.me.uk This email is: [ ] blogable [ x ] ask first [ ] private
Dimensions
I see us using the Dimensions plugin a lot. It would be useful to have it in the core. I personally put it at the same importance level as ajax in the core. Feedback? ~Sean
Test Suite++
Hey Everyone - So, apparently I haven't been receiving emails from the dev list (!) which has slowed down my communication with the group. Oops. So here's what I've been up to: - Fixing lots of bugs, getting ready for 1.1.4 http://dev.jquery.com/report/16 Some notable bugs include: - The infamous "parent element is display: none, breaks getComputedStyle in Safari" bug: http://dev.jquery.com/ticket/1349 - Complete overhaul of evalScripts, fixing: http://dev.jquery.com/ticket/1410 http://dev.jquery.com/ticket/1332
jQuery selectors, input Arrays
Hey, im using an Array by using this: <input type="text" name="Array[]" value="abc" /> <br /><br /> <input type="text" name="Array[]" value="def" class="noside" /><br /
Need help for Jquery extention
Hi , I am presently working on Jquery Grid Plug in . I want to extend this plug in to add my custom function.for ex scroll bar event functions . This custom function should access all basic properties of JQueryGrid. It is some thing like inheritance in OOP's. Documentation just describes adding function to Jquery namespace . So I am confused how to work around this . I am thankful in advance -jals
Question for core developers
<div>Hi all,</div> <div> </div> <div>I have been working on jQuery for a few months now, and have been pretty active in the mailing list as well. I am telling this because, i really think jQuery is cool and want to live by it anytime. I have pursuaded a lot of friends and collegues to switch to jQuery in these months and i have been successful. But there is one question that i get repeatedly from these people that is haunting me... I would sincerely appreciate if one of you can take the time to answer
Plugin Repository
Is there an XML or JSON version of all the plugins? Perhaps just a simple structure like below. <plugins> <plugin name="Tabs" description="Tab is a simple..." file="<a href="http://jquery.com/plugins/files/jquery.Tabs.js"> http://jquery.com/plugins/files/jquery.Tabs.js</a>" /> <plugin name="Accordian" description="Accordians are our friend." file="<a href="http://jquery.com/plugins/files/jquery.accordian.js"> http://jquery.com/plugins/files/jquery.accordian.js</a>" /> </plugins> ~Sean
Setting value of hidden field on focus of other fields
My goal is to set the value of a hidden field with an element id. Every time one of these elements gets focus, I want the function to assign the id value. The elements should be any input control (text, checkbox, listbox, whatever), EXCEPT buttons (button or submit should not fire this event): So: $(All form controls except buttons).focus(function(){ $("#hidden-field-id").val($(the specific control that caused this function to fire).attr("id")); }); How do I perform those selections? Related question:
Traversing the parent nodes
Is there any way to traverse up two parent nodes, example: $(obj).parent(2) Currently I have to do: $(obj).parent().parent() Is there a better way?
efects onUnload
I this this is the place to post, but i apolagise if its not. i want to use this code: $("a").click(function(){ $("#header").hide(1000) }); to hide the header when a user clicks a link, the only problem is that the page navigates away before the animation start, if an alert box is called after the effect, this causes the page to wait for user response and you can see the animation. However i do not want the textbox, is there any way of making the browser wait for the animation
Query String Object
So recently, I needed a quick easy way to both access query string parameters as an object and to output that object as a query string. I found a meta-plugin that Joern had written a while back for parsing into an object and I decided to expand on that. The two key features I added were a 'set' method for adding new things to the object and adding a toString method so that when outputting in the context of a string the object would, by default, convert to the proper querystring representation. The
Memory leak or bad technique?
Hi. I've been noticing some strange memory profiles with (how I'm using?) jQuery. I've tested this in IE6 and FF 2.0.0.6, and while IE6 behaves oddly, the "leak" appears to occur in FF. I suppose it's possible that FF has a slow-release garbage collection scheme that I've not let run long enough (longer than say, 15-20 min). This is on Win XP Pro. If this is not a leak, please help me understand what I'm doing to cause it. Example code: <a href="#" id="clicktest">Toggle</a> <div id="test"> Lorem
shortcut for specifying constructor properties?
Say I have a constructor, and some dynamic and static methods (direct properties of the constructor): function MyConstructor() {this.foo = 'bar';} MyConstructor.prototype = { dynamic1 : function () {return this.foo;} ,dynamic2 : function () {return this.foo;} }; MyConstructor.static1 = function () {return 1;}; MyConstructor.static2 = function () {return 2;}; Is there a shortcut to specifying the static methods, maybe with the constructor itself (or all of it)? Something like this (but that works):
extend load funcion
I need a bar of individual progress in my site, where diverse divs is loaded at the same time after consults. As this is a common thing excessively, I find pertinent that it is part of the functionality standard of the function load. Something that very is not complicated to make, and nor harms the performance and the same I did not see I how to make it without modifying jquery nor making strange codes. Follows the modification and the example. load: function( url, params, callback, ifModified
Hooking up an Event Prevents Bubbling?
I am using the following script to prevent users from clicking more than once on any given page button: $(document).ready(function() { $("input.button").click(function() { $("input.button").attr("disabled", "disabled"); return true; }); }); The issue is that it's preventing the clicked button's other actions from taking place. I'm thinking it could be one of two things: 1) Disabling the button actually prevents the event from firing since the button that fires it is "disabled" -- but I don't think
iTunes minibrowser interface?
Hi all, Does anyone know of a tool to allow filtering of online files ala the intunes interface. On the fly it filters the columns depending on the data you click on? Thanks in advance, Pete
XmlHttpRequest in rhino
It's very nice to play around with the browser environment in rhino. I started working on a testsuite for jamal, a set of mvc conventions for javascript apps based on jquery. But I had an issue with the XmlHttpRequest in the env.js for rhino. The send method starts a new thread for asynchronous requests, in the current trunk it is implemented by: if (this.async) (new java.lang.Thread({ run: makeRequest })).start(); else makeRequest(); But it should be: if (this.async) (new java.lang.Thread( new java.lang.Runnable({
Animations and clearfix
There is a CSS hack for clearing floated elements, but unfortunately, animations that are applied to those elements with this applied to don't animate properly in IE6. For an example: http://www.texotela.co.uk/clearfixbug.php I can work around it by wrapping another DIV around the one with the clearfix class applied to it and animating that instead, but I wanted to know if there was a way round it without requiring extra markup (i.e. is it a bug in jQuery?)
JQuery XML Parse Bug?
As the Book "Learning Jquery" Page 132 Chapter 6 says Loading an XML Document -------------------------------------------- write like: --- $(document).ready(function() { $.get('d.xml',null, function(data) { $(data).find('entry').each(function() { alert('find'); }); },"xml"); }); --- then you got nothing. ---------------------------------------------- or you write like this: --- $(document).ready(function()
Bug when append a node like <link/> and solution
if you try this, you will got nothing. --- $("head").append('<link rel="stylesheet" type="text/css" href="www.dc9.cn.css" title="base" />'); --- the cause is line 508 in http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.1.3.1.js ---- div.innerHTML = wrap[1] + arg + wrap[2]; ---- the innerHTML attribute is a very annoying attribute. if you try to use innerHTML to write something like "<link>" "<script>" "<c>ddd</c>" "<xx/>" you will get some strange result(tested in IE7) IE will strip
Using Prototype and JQuery
Good Morning! I am working with a content managment system which use Prototype and script.aculo.us for providing effects in the frontend. Now I want to use JQuery for my own JavaScripts, but Prototype has also "$" function. Is ther any way to use both, Prototype AND JQuery? Greetings from Vienna, Hannes
Next Page