Interface Sortables supported dragging <li>'s from one list to another. When I try to apply sortable() to multiple lists using jQuery UI, I can sort within each list, but not between lists. Is this something that you are considering supporting? Cheers, Chris
Well done on UI. Howcome there no callbacks for Sortables? Interface had many. The jQuery UI docs state "You can additionally supply a great range of options to make them fit your needs". This "great range" seems to be limited to just four options, which include no callbacks. Can we expect callbacks sometime soon? Cheers, Chris
Version r2 of the ContextMenu plugin has been released. ContextMenu is a lightweight jQuery plugin that lets you selectively override the browser's right-click menu with a custom one of your own. You can download it here: http://www.trendskitchens.co.nz/jquery/contextmenu/ ContextMenu is now truly context-sensitive, allowing you to enable/ disable individual items depending on the context, or you can choose dynamically to hide the menu. Changes in this version: * $.contextMenu.defaults() now works correctly * onContextMenu, onShowMenu callbacks added (thanks Dan G. Switzer, II) * drop shadow! Plus a few other changes and bug-fixes. See http://www.trendskitchens.co.nz/jquery/contextmenu/ for full changelog and documentation. r3 is currently in the works with support for nested menus, a much requested feature :) As always comments/bug reports are much appreciated! Cheers, Chris
Hi there I'm using Sortables on a calendar application. Each day on the month calendar is a "drop" container, and in each day there and between 0 and 12 "draggable" items. I have navigation that clicks me from one month to the next, and in order to keep performance (as the navigation is using ajax) I'm running SortableDestroy() on the current month before going to the next month. If I don't do this then dragging becomes slower and slower very quickly. However the current performance of SortableDestroy() leaves a lot to be desired. At present, with a month consisting of say 30 days, and about 90 draggable items all up, it takes SortableDestroy() about 15 seconds to finish! Is there any way that someone more knowledgeable than me could have a look at this function and see if it could be optimised in any way? Also a big thanks those behind Interface - it's making my life a lot easier at the moment! Cheers, Chris
Hi everyone, I'm doing something like this: $("#myDiv").load("/foo/bar.php"); Now I understand .load() evaluates script tags - are these evaluated after the content has been added to the dom? I did have $ (document).ready() calls in my attached script, but it occurred to me that there is probably no concept of a document being "ready" when dealing with an ajax call. Is this correct? Cheers, Chris
Hi everyone, It seems the new place to post plugin-related stuff is in the plugins mailing list (<a href="mailto:plugins@jquery.com">plugins@jquery.com</a>). I didn't even know about this list until just recently, so not sure how advertised it is. Anyways just a heads-up in case, like me, you didn't realise it was there :) Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Hi everyone The first version of my new ContextMenu plugin has been released. You can grab it here: <a href="http://www.trendskitchens.co.nz/jquery/contextmenu/">http://www.trendskitchens.co.nz/jquery/contextmenu/ </a> ContextMenu lets you selectively replace the browser's right click menu with one of your own. It is fully customisable and allows you to bind context-sensitive actions to each menu option. Big thanks to Joern Zaefferer whose excellent Tooltip plugin provided much inspiration. This is my first plugin for jQuery and any feedback/comments/improvements would be most appreciated! Cheers, Chris Domigan _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Hi there I posted about this a while ago but never got a response I could understand (probably my fault!). My question relates to why using .trigger(), which as of 1.1 is supposed to trigger the browser's default behaviour, gives a different result to performing the triggered event manually. An example: If I click (manually) on a checkbox, the checkbox will be checked and then the attached handler will be executed. This is great - just what you would expect. But if I do .trigger(#myCheckbox) things happen the other way around. The handler is called first and THEN the checkbox is checked. Say I have logic in my handler that checks if the checkbox is checked or not, it will get a different result depending on if the action was done manually or via .trigger(). I have thrown up a test page at <a href="http://www.trendskitchens.co.nz/jquery/trigger.html"> http://www.trendskitchens.co.nz/jquery/trigger.html</a> Any help would be appreciated, Cheers, Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Hi there I'm aware .trigger() was patched in the recent 1.1.1 update, but I'm having issues with it. If I have a checkbox, then firing trigger("click") seems to fire the bound "click" handler first, *before* unchecking the checkbox. This is a pain cos say I have some code like this: $("#myCheckbox").bind("click", function() { if (this.checked) { alert("Checked!"); } else alert("Not checked!"); }); If I manually click on the checkbox to enable it, I get alert("Checked!"). But if I then fire $("#myCheckbox").trigger("click") then the handler fires *first* (ie alert("Checked!")) and afterwards the checkbox unchecks itself. Wouldn't it make more sense for the checkbox to be checked/unchecked first before firing the handler? Any help would be most appreciated. Cheers, Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Hi there, How would I select the first ancestor of a certain type? Eg if I want to select the first div that is found while searching up the DOM from an element. Cheers, Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Hi all, I'm having a problem with John's metadata plugin. The value of the parameter arr in the jQuery.fn.get function in metadata.js is always undefined, so at this point: return arr && arr.constructor == Array ? it never branches towards the metadata logic, hence I can never access metadata properties. To ascertain this I slapped a $.log(arr) immediately after the beginning of the function, but every single jquery query is spitting out undefined at this point. What is the arr parameter, and why would mine always be undefined? Regards, Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Just playing Captain Obvious here, but <a href="http://jquery.com">jquery.com</a> seems to be experiencing some difficulties... "SQL logic error or missing database". Let's hope it's the former... Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Hi The Interface Sortables plugin was not firing on "onchange". This is because the iDroppables plugin expects a property called "onchange" but is being given one called "onChange". To change this you need to go into iSortables.js on line 242 and change the first "onChange" to "onchange". Hope this helps someone. Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Hi there I'm not clicking on why the method for sending form data via ajax is like: [{"name":"customerid", "value":"47"}, {"name":"supplierid", "value":"32"}, ...] As opposed to: {"customerid":"47", "supplierid":"32", ...} Can someone give me a clue? Cheers, Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Hi there I'm just getting my head around the whole JSON thing, so please excuse my ignorance. For a while now I've been successfully fetching JSON data from the server via ajax and using it in jquery. My question regards sending data from the client to the server. The $.post and $.get methods are limited to taking in a hash of key:value's, I assume because that's what the http GET and POST expect. My question is, is there a way to send more complex data structures - ie fully qualified JSON objects? Is there a way to serialise a JSON object for submission to the server where it can be decoded? This is probably not a strict jquery question, but any help would be appreciated :) Cheers, Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Hi I'm trying to disable focus on certain form elements using the following code: $("#id").focus(function() { this.blur(); }); but I get an error in firefox pointing to that line ([Exception... "'Permission denied to set property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: <a href="http://localhost/dev/js/job_specs.js">http://localhost/dev/js/job_specs.js</a> :: anonymous :: line 159" data: no]) I've tried substituting the function contents with "$(this).get(0).blur()" but I get the same result. Any thoughts? I don't want to use "disabled" because I need the form values to be passed to the server. Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Both these functions now do completely different things. Am I right to assume the former will be removed/renamed as the latter was recently introduced with 1.0a? Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Does jquery perform element matching faster when a context is specified? eg. is $("div.class").stuff() faster than $(".class").stuff() ? I'm having trouble deciphering the way the expression engine in jquery works, otherwise I'm sure I'd be able to figure it out from the code :) Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Hello all Since rev 153 the slideDown and slideUp behaviour has not worked for me, giving odd results. I've posted a simple example here: <a href="http://www.trendskitchens.co.nz/jquery/test.html">https://www.trendskitchens.co.nz/jquery/test.html </a> In Firefox the contents of the div do not slide up with the div, and in IE the slide fails altogether. Cheers, Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Hi there I'm trying to send some data to a server side function via $.post My code looks like this: $.post("ajax.php", {page:"mypage.php", action:"functionName", params:["param1", "param2"]}); Basically ajax.php does an include of mypage.php and calls the functionName(), passing the array of params. The problem I'm having is that when I have more than one value in the params array, the data is not sent correctly. In FireBug the XMLHttpRequest being generated from the above code is <pre selected="true" class="XHRSpyPostText XHRSpyText">ajax.php page=mypage.php&action=functionName¶ms=param1%2Cparam2 </pre>Is it the %2C stuff causing the problem? PHP is not recognising params as a valid array. Any help would be much appreciated :) Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
I'm getting this (fatal) error with the latest SVN: missing ] after element list jquery.js (line 1074) f = function(a,i){return [object Object]} This a bug? Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Is this plugin available for 1.0a? There's no link on the plugins page, and I know up until now it was included in jquery.js... _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Attn Mr Interface :) When using the Sortables plugin in a browser window that is scrolled partway down the document, the draggable item wants to drop in the wrong place. Have only tried this in Firefox 1.5+ See attached image. Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Hi Does jQuery allow me to reference elements in a specific namespace? eg $("namespace|element") Chris _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/