[jQuery] Re: Can I override ui.draggable?

2009-01-17 Thread Jesse Skinner
You can attach data to each draggable HTML element (eg. a big div or table) using the .data() jQuery function. Then when an element is dropped, you can use .data() again to retrieve the object attached to it and use that data for processing/saving/etc. I hope that helps. Cheers, Jesse Skinner

[jQuery] Re: abort an animation?

2009-01-17 Thread Jesse Skinner
You can call .stop() to stop an animation, and .css('opacity', 1) to remove transparency. Cheers, Jesse Skinner www.thefutureoftheweb.com On Sat, Jan 17, 2009 at 11:13 AM, Stephan Veigl wrote: > > How can I abort an animation? > > I have a slow fadeOut() on an element. U

[jQuery] Re: simple Jquery Ajax XHR async request for XML and JSON please

2008-02-17 Thread Jesse Skinner
I am looking for some basic examples showing how to do simple XHR's with both XML and JSON datatypes. How do you parse the XML vars using Jquery? I am looking for simple examples that I can learn from. Just use the $.ajax function, and set the dataType option like this: $.ajax({ url

[jQuery] select value lost after clone in IE

2007-06-04 Thread Jesse Skinner
It seems that after a jQuery clone(), the value of select boxes are lost in IE (but not Firefox). Try this out: one two $(function(){ $('div').clone(true).appendTo('body'); }); The first option will be selected in the cloned select. Do

[jQuery] Re: XML Problems

2007-04-19 Thread Jesse Skinner
. Perhaps you meant to do this: n = $('test', $('Passed!')); I hope that helps. Cheers, Jesse Skinner http://www.thefutureoftheweb.com/

[jQuery] Re: Multiple .bind

2007-04-17 Thread Jesse Skinner
#x27;, {mode: 'toggle'}, function(e){ tocDisplay(e); }); $('#toc_content a').bind('click', {mode: 'hide'}, function(e){ tocDisplay(e); }); -- Jesse Skinner http://www.thefutureoftheweb.com DaveG wrote: I'm binding a click function. If I incl

[jQuery] Re: Building HTML and binding to an inner element.

2007-04-17 Thread Jesse Skinner
"["+task.client.code+"] "+task.project.name+ ""+task.name+""+ "Remove"+ "" ).find("a.removeTask").bind('click', {taskid: task.id}, function(){ return remove_task.apply(this, arguments); }).end().appendTo(&q

[jQuery] jQuery tutorial on IBM DeveloperWorks

2007-04-11 Thread Jesse Skinner
I wrote a jQuery tutorial for IBM DeveloperWorks which went live today: http://www.ibm.com/developerworks/library/x-ajaxjquery.html Cheers, Jesse Skinner www.thefutureoftheweb.com