I'm using the form plugin and want do to things with the form doing
the ajax submit, after the submit has happened. Unlike the option
before:, after: doesn't seem to pass the jQuery object. Any way
around this?
Simplified example using ajaxForm() :
var options = {
after: function(data){
I'm using the form plugin and want do to things with the
form doing the ajax submit, after the submit has happened.
Unlike the option before:, after: doesn't seem to pass
the jQuery object. Any way around this?
It's a little bit asymmetrical because ajaxForm depends on jQuery.ajax for
some
You should be able to use a closure to get what you want--untested:
Thanks, Dave. It's true, the 'after' callback is invoked directly
from $.ajax so it doesn't have the context of the form. A closure
should work fine though - a simple example (tested):
$('form').each(function() {
var
var options = { ... };
$(form.severalForms).each(function(formElement){
$(this).ajaxForm($.extend(options, {
after: function(data, status) {
$(formElement).insertBefore(ajax complete);
}
});
});
Thanks for the closure tip. I come up with the code below, but your
example
Thanks for the closure tip. I come up with the code below, but your
example might be cleaner.
That will work as long as you don't have multiple forms submitting concurrently.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
$([EMAIL PROTECTED]'enabled']).click(function() { ... });See the jQuery docs for more options.BlairOn 11/7/06,
Christopher Jordan [EMAIL PROTECTED] wrote:
Hi folks,
I have a table that represents a calendar. The user will be able to
select multiple dates from the calendar, but cannot
I suggest starting off with a naked calendar, just the dates.
then jquery a class on the present future dates.
then jquery those with your new class to have all the clicks an hovers you want.
no special attributes required.
On 11/6/06, Christopher Jordan [EMAIL PROTECTED] wrote:
Hi folks,
Chris,
I haven't tried it but would $([EMAIL PROTECTED]'enabled']).click()
-Steve W
Christopher Jordan wrote:
Hi folks,
I have a table that represents a calendar. The user will be able to
select multiple dates from the calendar, but cannot select dates in the
past. I've written this
Check out the date plugin. I cant link it now, but a quick google for
jquery date picker should find it.
On 11/6/06, Christopher Jordan [EMAIL PROTECTED] wrote:
Hi folks,
I have a table that represents a calendar. The user will be able to
select multiple dates from the calendar, but cannot
Christopher Jordan schrieb:
Hi folks,
I have a table that represents a calendar. The user will be able to
select multiple dates from the calendar, but cannot select dates in the
past. I've written this code before using all JavaScript and what I did
was add several additional pieces of
I need more than a date picker... Otherwise I might have used that.
Thanks
Chris
Matt Stith wrote:
Check out the date plugin. I cant link it now, but a quick google for
"jquery date picker" should find it.
On 11/6/06, Christopher Jordan [EMAIL PROTECTED] wrote:
Hi folks,
I have
Thanks Klaus!
How does this syntax differ from other suggested syntax:
$("[EMAIL PROTECTED]'enabled']").click()
I'm curiout which is preferred, or faster. They both look clean enough to me.
Chris
Klaus Hartl wrote:
Christopher Jordan schrieb:
Hi folks,
I have a table that
Hmm... I dunno. Maybe, I'm sure it could work, but I'm under a time
crunch. Maybe when the pressure is off, I can look at doing something
like this. I'm still a noob with this jQuery stuff. I can do some
things, but you guys mostly put me to shame. :o)
Chris
wrote:
I suggest starting off
Matt, I've rethought my comment here. I don't really know what the
jQuery date picker's abilities/limitations are. Like I told Jake, I'm
under a bit of a time crunch and I need to try and stick to stuff I
know. Who knows? The date picker may be the answer to my prayers. I'll
google it and give
They are more or less equivalent, but using the jQuery select syntax is standard and probably easier to read.BlairOn 11/7/06, Christopher Jordan
[EMAIL PROTECTED] wrote:
Thanks Klaus!
How does this syntax differ from other suggested syntax:
$([EMAIL PROTECTED]'enabled']).click()I'm
Thanks Blair. So your suggestion of using
$("[EMAIL PROTECTED]'enabled']").click() is the selection syntax? Hmm... I'm
gonna look that up. Thanks! :o)
Chris
Blair McKenzie wrote:
They are more or less equivalent, but using the jQuery
select syntax is standard and probably easier to read.
Chris,
I think you would need to test for performance differences unless John
or one of the other guys with more clue have some insight.
This works by creating a jquery collection of all td objects and using
each to iterate through them, then uses the if to filter them.
Steve,
That's a great explanation of the difference between these two methods.
Thanks so much! I'll probably use the first method to begin with. It is
easier for me to read, but that's probably because of my lack of
understanding anything about xpath. Something else I'll have to do some
Blair McKenzie schrieb:
They are more or less equivalent, but using the jQuery select syntax is
standard and probably easier to read.
I was assuming that expando properties (the property is attached to the
DOM element) were used instead of real attributes...
-- Klaus
I don't think it makes any difference. jQuery accesses both transparently.BlairOn 11/7/06, Klaus Hartl
[EMAIL PROTECTED] wrote:Blair McKenzie schrieb: They are more or less equivalent, but using the jQuery select syntax is
standard and probably easier to read.I was assuming that expando
20 matches
Mail list logo