malsup wrote:
>
>
>
> success: function(responseText, status, $form) {
> var id = '#review_' + $form.attr("id");
> $(responseText).prependTo(id).effect("highlight", {}, 9000);
> }
>
> Mike
>
>
>
HUZAH!!! So I was close! Ah, thank you. Four days later straight.
But it's
> With out $(this) or scoping the current form I have no clue how to get it to
> target te proper ID.
So you need access to the form element? In one of your other examples
you had correctly discovered that the 3rd arg to your success handler
is the form element (wrapped in a jQuery ojbect). So
malsup wrote:
>
>
>> And here is the current setup of codehttp://www.pastie.org/299446
>
> You forgot to declare 'responseText' as an argument to your success
> handler function.
>
>
shoot! Ok, updated. http://www.pastie.org/299610
So now that starts to work. But the Problem of the code
> And here is the current setup of codehttp://www.pastie.org/299446
You forgot to declare 'responseText' as an argument to your success
handler function.
malsup wrote:
>
>
> This is also not valid. 'this' in the success handler is not an
> element, it is the options object (assuming you have the latest
> version of the form plugin; in prior versions it was the window
> object). From your code I can't really tell what you expected 'this'
> to
> http://www.pastie.org/299081
This code is not correct. This line is invalid:
options = { target: update_id, clearForm: true, success:
update_area(responseText)}
it should be:
options = { target: update_id, clearForm: true, success: update_area }
You need to set the success property to a fu
To further expand on my example. I now add in a fake html page that details
the idea in html
http://ldbss.com/rails/fake.html
one Folder has many files. I need the folder form to target the files list
and update their.
The number of Folders is dynamic and can span many.
tripdragon wrote:
>
To add to it. Here a different example
http://www.pastie.org/299106
It sort of holds the var but can not find where it is in the dom, or it does
not use $(this)
--
View this message in context:
http://www.nabble.com/trying-to-get-ajaxForm-to-use-a-dynamic-class-or-id-to-prependTo-tp20135944s
malsup wrote:
>
>
> Can you post a link that shows the problem that you're having. I
> didn't really understand your explanation.
>
> Mike
>
So here is what ntasfi and I worked on last night. By view of it it looks
like it would work despite a typo thats in there
http://www.pastie.org/29
Can you post a link that shows the problem that you're having. I
didn't really understand your explanation.
Mike
On Oct 23, 1:36 pm, tripdragon <[EMAIL PROTECTED]> wrote:
> This code at this moment prependTo to a static id. But I need to get it to
> use something like this
> $(this).parents('.
10 matches
Mail list logo