Hello all, I am working on adding in some functionality for being able to copy between sortable lists when you use the ctrl + drag/drop yet still have it function as normal otherwise.
It would be nice to have it not lose the original item instead of having to clone it and insert it back in, but I'm not really sure how that would be done.
If you anyone has suggestions on how it could be improved I would appreciate it!
How do you clone elements that have an autocomplete and have the autocomplete apply separately to the new element?
Right now I clone the element withDataAndEvents but the autocomplete triggers the original input instead of the cloned input. Is there some way to avoid this behavior?
I have a dialog window that I have defined as: var top = 50; var left = 35; $('#commandMenu').dialog({ draggable: true, height: 70, width: 180, position: [left, top] }); When I open the dialog box and firebug inspect it the style for the height is auto. Once I have dragged the dialog the height gets set to the right size. Is there some setting that I am missing that tells it to resize on the first open? I'm using the latest 1.3.2 of jQuery and the 1.7.1 or jQuery UI.
With the code being stored on Google ( http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery ) would it not be beneficial to have that information shown next to the download area so people know that they can link to the version on google's servers. The only time I can think when you really have to store the script locally is when you are using SSL. Any thoughts? Randy
I was using the jQuery() to create a DOM element using HTML, then tried to use a selector on the new DOM element and noticed that the selection did not recognize the root element... is that supposed to be that way? For example: $tempForm = $('<form><input type="submit" value="Go!"></form>'); $('form', $tempForm).submit(function(){ alert('I was here'); return false; }); Does nothing. But if you make it so the form is not the root element (eg '<div><form><input type="submit" value="Go!"></form></div>') then the selector works fine... Thanks, Randy
I was just playing with the sortables in the 1.5 release and was curious what changed from the 1.5rc1 to 1.5 that caused links in the handles to not work? I was trying to look at some of the tickets closed for the 1.5 release but didn't see anything directly related. Anyone have any insight into what has changed? I know that i could make it so that just a portion of the div was draggable but it would be preferrable to have the entire div be draggable and keep the link inside it working. Thanks, Randy
I am working on a plugin and was trying to figure out what was happening to break my code.. I have in my plugin functions similar to the following: $.fn.pluginName = function() {} $.fn.pluginName.oneThing = function () { ... } $.fn.pluginName.anotherThing = function () { ... } I try to call it like so: $('#idOfElement').pluginName.oneThing(); The problem is that the this.each() is 'not defined' when I use it in the oneThing or anotherThing methods. If I do the methods as: $.fn.oneThing and $.fn.anotherThing it works fine... but not when they are under the pluginName. Why would this happen and is there a way to fix it? or am i trying to do the wrong thing to namespace the methods? Thanks in advance.
What would have to be done to the slider to make it so that you can pass an array into the startValue option? I have a slider that has two slider handles, which is fine, but when I try to set the startValues it doesn't work when you have multiple slider handles... is there no way to add more than one start value for the handles? Thanks, Randy
I am trying to create an XML document similar to the one that is found on the http://visualjquery.com/index.xml where it is basically an XML document of all the methods in jQuery. But when I downloaded the code from the repository and ran the ant file all the XML documents that were generated had a blank <doc/> element in the xml file. Is there something in the process that I am missing?
I have been trying to implement a set of sortable elements and the elements have iFrames in them. I am pretty new to jQuery but I figured out how to create the sortable but when you try to drag an element with the iFrame in it the frame is reloaded when you drop it. What can i do to remedy this? Can I not use iframes in a sortable without it refreshing the page on drop? Thanks