Re: [jQuery] getting children using XPath in IE
What if the elements had some data in it? Maybe it matters? Or you've probably tried that as well. Matthew Delmarter wrote: > > Hi Karl, > > I did try that - just tested it again to make sure. > > For example: > > alert( $("/xmlelement").children().length ); > or > alert( $("//xmlelement").children().length ); > > Firefox = 4 in both cases > IE7 = 0 in both cases > > The XML again was: > > > > > > > > > > Matthew Delmarter > Systems Delivery Manager > Database Communications > Level 7, 182 Wakefield Street, Wellington 6011 > Phone: +64-4-381-3093 / Mobile: +64-27-536-5627 > [EMAIL PROTECTED] > www.dbc.co.nz > > _ > > From: Karl Swedberg [mailto:[EMAIL PROTECTED] > Sent: Friday, 16 February 2007 2:30 a.m. > To: [EMAIL PROTECTED]; jQuery Discussion. > Subject: Re: [jQuery] getting children using XPath in IE > > Hi Matthew, > > Not sure, haven't tried this, but the problem might be that you have two > slashes before xmlelement. Is the document root? If so, try > it > with only one beginning slash: > > $("/xmlelement") > > > > > --Karl > _ > Karl Swedberg > www.englishrules.com > www.learningjquery.com > > > > > > On Feb 15, 2007, at 8:21 AM, Matthew Delmarter wrote: > > > > Maybe this is just not possible in jQuery yet? I find it strange how it > works fine in Firefox, but not IE7 though. > > Am I iterating incorrectly? Is there another method I should be using? I > have tried a number of different methods but simply cannot get IE to give > me > a list of child nodes that I can iterate thru. > > Any help appreciated . I am about to give up on Xpath in jQuery otherwise. > > Regards, > Matthew > > > _ > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Matthew Delmarter > Sent: Thursday, 15 February 2007 6:51 p.m. > To: jQuery Discussion. > Subject: [jQuery] getting children using XPath in IE > > Hi all, > > I am getting quite confused here with trying to use XML/Xpath in IE. > > Let's imagine that I have the following XML in my page: > > > > > > > > > How do I traverse through all the children of "xmlelement"? > > In Firefox this works fine: > > $("//xmlelement").children().each(function(e) > { > alert("hi") > }) > > In Internet Explorer (I am using ver 7) I get nothing at all. > > Any clues much appreciated. > > > Matthew Delmarter > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/getting-children-using-XPath-in-IE-tf3232079.html#a8986603 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] jQuery Nightly Builds
Nice work, (as expected). I've sometimes been wanting this. Now I don't need to want anymore, I have. :) John Resig wrote: > > This is a re-post of a blog post written by Paul McLanahan: > http://jquery.com/blog/2007/02/13/jquery-nightly-builds/ > > Hey Everyone - > > After much wailing and gnashing of teeth, we now have automated > nightly builds of jQuery ready for mass consumption. These builds came > about due to we community members who would like to experiment with > the most recent features of jQuery, on our projects, but who for > whatever reason, don't have access to the subversion repository. > > In any case, here are the gory details: You can get your > bleeding-edge-jQuery fix at: > http://jquery.com/src/nightlies/ > > This folder will simply show you a list of available files. There are > 4 files in there in which most of you will be most interested. And > they are... > > * http://jquery.com/src/nightlies/jquery-nightly.js > Pretty self-explanatory. It's the uncompressed jQuery; fresh from > the repository. > * http://jquery.com/src/nightlies/jquery-nightly.pack.js > As the more perceptive of you have already guessed, it's the packed > version of #1 > * http://jquery.com/src/nightlies/jquery-nightly.release.zip > This contains the docs, test suite, and all of the pre-built > versions of jQuery > * http://jquery.com/src/nightlies/jquery-nightly.build.zip > Is the real win for the poor souls behind the fiery-walls of the > corporate world. It contains the full jquery path from the repo, and > is everything you need to build your very own jQuery > > The nightlies folder will also fill up with dated versions of all 4 of > these files so that you can find jQuery at whatever vintage you > prefer. > > New versions of the nightlies will be added every day at 2am EST (7am > GMT), and will consist of the most recent revision from the subversion > repository at that time. > > If all of this talk of subversion, repositories, bleeding-edge, and > nightly building makes the stability craving web developer inside you > run away screaming, fear not. The stable release download you need is > still right there, waiting for you. > http://docs.jquery.com/Downloading_jQuery > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/jQuery-Nightly-Builds-tf3225149.html#a8964694 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Sortables -> Operation Aborted in IE
I'm having trouble recreating the problem with just the sortable on it so that gives your theory credibility. Hmmm.. More. I'm not including the whole interface file, but I've built a selection combined from drag, drop, sortables, transfer and autoscrolling. In what order would I include the files if I include them separately. Maybe it doesn't matter? Oli. You can view my code at www.private.is/private2/sortables.html It's almost the same without some ajax calls I've commented the code a bit as well. Stefan Petre wrote: > > Ólafur Marteinsson wrote: >> Hi everyone, >> >> I'm using jquery and interface sortables and I'm getting this weird IE >> bug, >> it doesn't always show up, though most of the time, but all it says is: >> Operation aborted. >> >> In FireFox (1.5.0.9) i'm getting another bug which seems to be related. >> It >> says script is still running and asks me if I wanna stop the script or >> continue. This 'bug' only happens occasionally. >> >> Anyone know anything about these? I'm having no luck looking for >> information >> on that one. I'm unable to provide an example as is. But I may be able to >> if >> needed. >> >> I'm initializing the sortables in document ready function. >> >> Any help would be greatly appreciated. >> >> Best regards, >> Oli. >> >> p.s. >> Running JQuery 1.1.1 and the latest build from the interface page. >> > Hi, > > I think the problem is with interface.js file. It is too big and when is > decompressed hangs the system for a while. Try to include interface as > separate files, compressed or not, and tell me if you get the same > behavior. > > Stefan > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/Interface-Sortables--%3E-Operation-Aborted-in-IE-tf3194910.html#a8871787 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Interface Sortables -> Operation Aborted in IE
Hi everyone, I'm using jquery and interface sortables and I'm getting this weird IE bug, it doesn't always show up, though most of the time, but all it says is: Operation aborted. In FireFox (1.5.0.9) i'm getting another bug which seems to be related. It says script is still running and asks me if I wanna stop the script or continue. This 'bug' only happens occasionally. Anyone know anything about these? I'm having no luck looking for information on that one. I'm unable to provide an example as is. But I may be able to if needed. I'm initializing the sortables in document ready function. Any help would be greatly appreciated. Best regards, Oli. p.s. Running JQuery 1.1.1 and the latest build from the interface page. -- View this message in context: http://www.nabble.com/Interface-Sortables--%3E-Operation-Aborted-in-IE-tf3194910.html#a8870779 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] interface : download page doesn't work?
The packed version (1.1.2) worked but I couldn't build my selection. Alexandre Plennevaux-2 wrote: > > is it just me or the download page of "interface" plugin is broken ? > > http://interface.eyecon.ro/download > > Alex. > > Using: FF2 on winXPSP2 > > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/interface-%3A-download-page-doesn%27t-work--tf3171516.html#a880 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Lil problem calling SortableDestroy()
Hiya, I've a lil problem, I'm trying to destroy a sortable. But can't seem to make it work. Maybe someone would be willing to run the code here below and see what I'm doing wrong.. It should run no prob and I've marked What it do? It's just a static ul list with 5 items which are draggable to a trash. They can be sorted when the user clicks Reorder. Then that option changes to Update. When Update is hit I want it to revert to the original state where items are only draggable to the trash but not sortable. Thanks in advance, Oli. -- Code -- $(document).ready( function () { $('#update').hide(); $('#reorder').click(function() { $('li').DraggableDestroy(); $('ul').Sortable( { accept :'sortableitem', helperclass : 'sorthelper', activeclass : 'sortableactive', hoverclass :'sortablehover', opacity:0.5, ghosting: false, fx: 800, opacity:0.5, revert: true, containment:'document' }); $('#update').show(); $('#reorder').hide(); return false; }); $('#update').click(function() { //serial = $.SortSerialize('sortables'); //alert(serial.hash); // I've tried these and they don't work... //$('li').SortableDestroy(); --> Casts an error //$('sortables').SortableDestroy(); --> Casts an error //$('#sortables').SortableDestroy(); --> Casts an error $('li').Draggable( { autoSize:true, ghosting:true, revert:true, fx: 200, onStart:function() { $('#trash').addClass("dragtotrash"); }, onStop:function() { $('#trash').removeClass("dragtotrash"); } }); $('#reorder').show(); $('#update').hide(); return false; }); $('li').Draggable( { autoSize:true, ghosting:true, revert:true, fx: 200, onStart:function() { $('#trash').addClass("dragtotrash"); }, onStop:function() { $('#trash').removeClass("dragtotrash"); } }); $("#trash").Droppable ( { tolerance:"intersect", accept:"sortableitem", hoverclass:"dropzonehover", activeclass:"sortableitem", onDrop:function(drag) { var id = "#"+drag.id; $(id).remove(); } }); }); javascript:; Update javascript:; Reorder Item 1 http://www.jquery.com http://www.jquery.com Item 3 http://www.nabble.com http://www.nabble.com Item 5 Drag to trash -- View this message in context: http://www.nabble.com/Lil-problem-calling-SortableDestroy%28%29-tf3141718.html#a8707501 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Plugin idea
What about a poll plugin? What if it would animate the current standings / results of the poll in a similiar fashion as the Poll on www.soccernet.com does. Maybe someone has already done something like this? :) One can always hope, Cheers Oli -- View this message in context: http://www.nabble.com/Plugin-idea-tf2945357.html#a8236234 Sent from the jQuery Plugins mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/