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
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
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
);
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
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
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
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);
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
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
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
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.
)
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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(
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
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/
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
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
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
I'm trying to ajaxify my forms. I'm using the forms plugin:
$(#FindHotel).ajaxForm(
{
success: showFormSubmitResult,
dataType: 'xml'
}
);
function showFormSubmitResult(responseText, statusText)
{
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
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/
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,
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,
37 matches
Mail list logo