[jQuery] Break out of each loop

2007-03-30 Thread Dmitrii 'Mamut' Dimandt
This is a question I got from a friend of mine: $(##players tr:gt(0)).each( function() { s = parseFloat($(td:eq(0), this).text()); } ); How do I break out of this loop? I don't need to go to the very end. ___ jQuery mailing list

Re: [jQuery] Break out of each loop

2007-03-30 Thread Dmitrii 'Mamut' Dimandt
That's a leftover from ColdFusion :) I didn't test whether your solution works, but I guess it should (from a quick look at jQuery code) Thank you! Erik Beeson wrote: Also, what is that ## selector about? --Erik On 3/30/07, Dmitrii 'Mamut' Dimandt [EMAIL PROTECTED] wrote

Re: [jQuery] the pitfalls of jquery

2007-03-16 Thread Dmitrii 'Mamut' Dimandt
Wow. The best description of jQuery. Ever. :two thumbs up: Benjamin Sterling wrote: Javascript isn't bad it's jquery that is bad. I've seen whole cities go under because of it. First it's just a few kids experimenting, trying to have a good time. No harm right? Well, they get other kids

Re: [jQuery] Local XML

2007-03-15 Thread Dmitrii 'Mamut' Dimandt
); throw e; } var ok = doc doc.documentElement doc.documentElement.tagName != 'parsererror'; $.taconite.log('conversion ', ok ? 'successful!' : 'FAILED'); return doc; }; Dmitrii wrote: Anyone? Help! :) Dmitrii 'Mamut' Dimandt wrote: Yup. This works under

Re: [jQuery] Local XML

2007-03-15 Thread Dmitrii 'Mamut' Dimandt
The key is 'local' :) I need a local HTML file loading local XML files :) Ⓙⓐⓚⓔ wrote: what kind of header are you getting? The $.ajax complete call back gives back the entire request, including the headers, (Function) complete - A function to be called when the request finishes. The

Re: [jQuery] the pitfalls of jquery

2007-03-15 Thread Dmitrii 'Mamut' Dimandt
That's easy :) Spend 2-6 weeks doing nothing, pretending you're busy working on your code. In the mean time get to know internals of jQuery really well. Then on some sunny afternoon take the jQuery library and do the following: Search and Replace jQuery with, say, JSUtilityLib or something that

Re: [jQuery] Append bug?

2007-03-14 Thread Dmitrii 'Mamut' Dimandt
I got bitten by this yesterday. Appending selects anywhere fails. However, the contents of a select are appended; Here's the code that illustrates this: function appendFail() { var myDiv = $(div/div).appendTo(#myid); var sel = $(select name=\any_name\/select);

Re: [jQuery] Local XML

2007-03-14 Thread Dmitrii 'Mamut' Dimandt
Anyone? Help! :) Dmitrii 'Mamut' Dimandt wrote: Yup. This works under FF and Opera. Under IE this fails. The returned data is of type object the is not enumerable (hence I cannot see it's properties using, for instance, DP_Dump). :( Benjamin Sterling wrote: I would use the $.ajax function

Re: [jQuery] Local XML

2007-03-12 Thread Dmitrii 'Mamut' Dimandt
Yup. This works under FF and Opera. Under IE this fails. The returned data is of type object the is not enumerable (hence I cannot see it's properties using, for instance, DP_Dump). :( Benjamin Sterling wrote: I would use the $.ajax function and set the dateType to xml. -- Benjamin

[jQuery] Local XML

2007-03-10 Thread Dmitrii 'Mamut' Dimandt
I need to load and process a local XML file from a page displayed locally. However, if XML is loaded through .get, it is passed to the processing function as text, not as a document. How can I ensure that the XML that is loaded gets parsed and presented as DOM? That is, I need to to something

Re: [jQuery] Manipulating several independent elements at once

2007-03-01 Thread Dmitrii 'Mamut' Dimandt
I guess that would be: $(#a, #b, #c).show(); Bernd Matzner wrote: Hi, is there a way to manipulate different selectors in one step? $('#a').show(); $('#b').show(); $('#e').show(); I.e. I don't want to replicate the show() part three times, but sort of group the #a, #b, #e selectors.

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-27 Thread Dmitrii 'Mamut' Dimandt
) It always feels good to get validation from the maker of the library. ;o) Rey... Dmitrii 'Mamut' Dimandt wrote: Ok. I'm at loss here. $.ajaxStart() is invoked for every ajax call that's made on the page. However, for one ajax call I need to display a loading... in one place

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-27 Thread Dmitrii 'Mamut' Dimandt
Stephen Woodbridge wrote: Dmitrii 'Mamut' Dimandt wrote: Mike Alsup wrote: $.ajaxStart() is invoked for every ajax call that's made on the page. However, for one ajax call I need to display a loading... in one place, for another ajax call - a loading... in another place

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-27 Thread Dmitrii 'Mamut' Dimandt
Mike Alsup wrote: This is still like a proctologist performing an eye surgery How so? You have control over everything in the settings object. And you can add any properties to it that you wish. So consider: $.ajax({ url: myUrl, type: 'post', indicatorId:

Re: [jQuery] jQuery + ColdFusion - auto complete examples?

2007-02-27 Thread Dmitrii 'Mamut' Dimandt
Wow. This is very nice. And fast. Thank you! Rey Bango wrote: James!!! Welcome bud. I see you posting on my blog all of the time. Glad to see you came on over to jQuery. For autocomplete functionality, I've sued this one successfully: http://www.dyve.net/jquery/?autocomplete Also, look

Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha

2007-02-27 Thread Dmitrii 'Mamut' Dimandt
totally agree with all of the below. agent2026 wrote: I feel similarly about the slideshow - I wouldn't expect it, and would like to view the image I clicked for as long or short a time as I want to. But, it's a sensible option. And I agree, click=next is not something you'd necessarily

Re: [jQuery] ANNOUNCE: Thickbox Reloaded alpha

2007-02-27 Thread Dmitrii 'Mamut' Dimandt
Whoa! :) What I would really like to see is thickbox gracefully changing its size to accommodate the loaded content. Klaus Hartl wrote: Hi jQuerians, I just committed what I would call Thickbox Reloaded alpha version. It may look the same pretty much, but is a complete rewrite. Here's

[jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-26 Thread Dmitrii 'Mamut' Dimandt
Ok. I'm at loss here. $.ajaxStart() is invoked for every ajax call that's made on the page. However, for one ajax call I need to display a loading... in one place, for another ajax call - a loading... in another place and for yet a third ajax call a loading in a third place. How can I do this

Re: [jQuery] Multiple Ajax calls and multiple loading... boxes

2007-02-26 Thread Dmitrii 'Mamut' Dimandt
Mike Alsup wrote: $.ajaxStart() is invoked for every ajax call that's made on the page. However, for one ajax call I need to display a loading... in one place, for another ajax call - a loading... in another place and for yet a third ajax call a loading in a third place. How can I do this

Re: [jQuery] Some jQuery tips and tricks

2007-02-17 Thread Dmitrii 'Mamut' Dimandt
I've changed the examples and their look a bit. Also, added RSS 2.0 feed: http://dmitriid.com/jquery/en/rss.xml Dmitrii Dimandt wrote: Hi all I've started collecting some examples I've come across while solving problems using jQuery. I guess they could be interesting to the community as a

Re: [jQuery] Some jQuery tips and tricks

2007-02-16 Thread Dmitrii 'Mamut' Dimandt
for the confusion! Rick *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Dmitrii 'Mamut' Dimandt *Sent:* Thursday, February 15, 2007 3:50 AM *To:* jQuery Discussion. *Subject:* Re: [jQuery] Some jQuery tips and tricks Yes, thank you. I will change the example to include

Re: [jQuery] Some jQuery tips and tricks

2007-02-16 Thread Dmitrii 'Mamut' Dimandt
I personally prefer writing $(document).ready(fn) in full because it is easier to spot agent2026 wrote: Why wouldn't you use $(fn) here instead of $(document).ready(fn)? Adam Karl Swedberg-2 wrote: $(document).ready(function() { $('#wrapper p').hide() $('#wrapper

Re: [jQuery] Some jQuery tips and tricks

2007-02-15 Thread Dmitrii 'Mamut' Dimandt
Yes, thank you. I will change the example to include different approaches Rick Faircloth wrote: I saw the comments made about your markup on a recent problem in an email you sent to the list, and when I went to look at the problem code at your site, it looked exactly like the code

Re: [jQuery] Some jQuery tips and tricks

2007-02-15 Thread Dmitrii 'Mamut' Dimandt
Thank you! I will incorporate those changes! Kenneth wrote: Interesting site, I was actually thinking of compiling something similar myself, but more to do with either obtuse uses of $(). However, I did notice a few things about your examples and thought I'd mention them to you. These are

Re: [jQuery] Taconite Plugin - New and Improved!

2007-02-12 Thread Dmitrii 'Mamut' Dimandt
Dan G. Switzer, II wrote: However, the verbose XML language is both a plus and a negative. It's very easy to read and determine what's going on, but it also means you end up with much large data packets you need to transfer between the client and server. This is not a problem if you

Re: [jQuery] Queueing animations

2007-01-31 Thread Dmitrii 'Mamut' Dimandt
That's exactly what is needed! On a side/flame note. Who needs prototype/scriptaculous now? :) John Resig wrote: It should be noted that animations are queued only on the element level. You can have simultaneous animations occur on different elements, but only one set of animations can be

[jQuery] Acess DOM object properties

2007-01-31 Thread Dmitrii 'Mamut' Dimandt
How do I access dollarified object's DOM properties without using each()? That is, let's say, I have a select on my page: select id=myselect option value=11/option option value=22/option /select How can I access its selectedIndex property without resorting to $(myselect).each(

Re: [jQuery] Acess DOM object properties

2007-01-31 Thread Dmitrii 'Mamut' Dimandt
Thank you! Sam Collett wrote: On 31/01/07, Dmitrii 'Mamut' Dimandt [EMAIL PROTECTED] wrote: How do I access dollarified object's DOM properties without using each()? That is, let's say, I have a select on my page: select id=myselect option value=11/option option value=22

Re: [jQuery] Acess DOM object properties

2007-01-31 Thread Dmitrii 'Mamut' Dimandt
Thank you! Simon Proctor wrote: I think this should work. $('#myselect').get(0).selectedIndex; But you'd want to check that the $() matched. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] Queueing animations

2007-01-29 Thread Dmitrii 'Mamut' Dimandt
Sciptaculous has this: new Effect.Fade(id, {queue: end}); This ensures that if events are triggered before an animation is completed, there are no glitches when another animation is begun on the same element. This is especially true for accordion-type elements. loading indicators and the

Re: [jQuery] Queueing animations

2007-01-29 Thread Dmitrii 'Mamut' Dimandt
Jörn Zaefferer wrote: Dmitrii 'Mamut' Dimandt schrieb: Sciptaculous has this: new Effect.Fade(id, {queue: end}); This ensures that if events are triggered before an animation is completed, there are no glitches when another animation is begun on the same element. This is especially

Re: [jQuery] How to find out if form was submitted via Ajax?

2007-01-25 Thread Dmitrii 'Mamut' Dimandt
Thank you! This worked beautifully Dr. Tarique Sani wrote: On 1/24/07, Dmitrii 'Mamut' Dimandt [EMAIL PROTECTED] wrote: When I use the Form plugin, how can I find out on the server that the form was submitted via Ajax? if using PHP then testing env('HTTP_X_REQUESTED_WITH

[jQuery] Problem with form plugin and xml

2007-01-25 Thread Dmitrii 'Mamut' Dimandt
I'm trying to ajaxify my forms. I'm using the forms plugin: $(#FindHotel).ajaxForm( { success: showFormSubmitResult, dataType: 'xml' } ); function showFormSubmitResult(responseText, statusText) {

Re: [jQuery] Problem with form plugin and xml

2007-01-25 Thread Dmitrii 'Mamut' Dimandt
anyone? Dmitrii 'Mamut' Dimandt wrote: I'm trying to ajaxify my forms. I'm using the forms plugin: $(#FindHotel).ajaxForm( { success: showFormSubmitResult, dataType: 'xml' } ); function

[jQuery] How to find out if form was submitted via Ajax?

2007-01-24 Thread Dmitrii 'Mamut' Dimandt
When I use the Form plugin, how can I find out on the server that the form was submitted via Ajax? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] How does one add children to a DOM element using jQuery?

2007-01-20 Thread Dmitrii 'Mamut' Dimandt
I'm slightly confused. How does one add children to a DOM element using jQuery? There are append*, prepend*, insert* methods, but none of them seem to actually add a child *inside* a jQuery/DOM element. Why do I need this? I need to create a list inside a div from some data that comes, say,

[jQuery] How does one add children to a DOM element using jQuery?

2007-01-20 Thread Dmitrii 'Mamut' Dimandt
I'm slightly confused. How does one add children to a DOM element using jQuery? There are append*, prepend*, insert* methods, but none of them seem to actually add a child *inside* a jQuery/DOM element. Why do I need this? I need to create a list inside a div from some data that comes, say,