Juste adding some info:)
I also use the Validate plugin to validate the form before submission.
$("#pdform").validate({
event: "blur",
debug : true,
rules: {
},
messages: {
}
});
Partially replying to myself :
I now use this success: cachepd() inside pdoptions and cachepd is this
simple function :
function cachepd() {
$('#pdresult').fadeOut(5000);
};
But it seems like fadeOut deletes the div from the DOM because it's
not updated anymore
if I submit the form again...
another weird thing is that the cachepd function is executed as soon
as the page loads
so the #pdresult div gets hidden after 5 seconds... why is that ? :)
My select looks like this :
paris
london
madrid
I would like to have this in the textfield
paris;london;madrid
or even
;paris;london;madrid
since it would be easier :)
The goal is to have one variable with all the options of my SELECT so
that I can pass the
values to a php script... Mayb
Thanks for your reply !
But firebug says join is not a function..what the...
Great ! Thanks !:D
Hello all !
I have a DIV which I update after an ajax form submit (form plugin).
This DIV is filled with a message like "Your details have been saved".
I would like to fade out the text in this DIV after a few seconds.
How can I do that ?
Thanks !
G.
Thanks for your reply but it doesn't work.
I'm using the form plugin with its ajaxForm method so I have these
options :
var pdoptions = { target: '#pdresult', success:
hidediv('pdresult')};
and I bind them to the form with :
$('#pdform').ajaxForm(pdoptions);
the hidediv function contains
Thank you for your detailed answer which fits what I had understood
from the documentation.
So the #pdresult div is updated with
Your personal details have been saved
and I use
var pdoptions = { target: '#pdresult', success:function(response)
{ setTimeout(function(){ $('#pdresult div').fadeOut('
I had tried that also, somewhere around my second post:)
But it doesn't fade out my pdresult DIV.
Almost found the solution...
You were right about the use of success: fadeOutResponse.
I had tried success: fadeOutResponse() and believe it or not it
doesn't produce
the same result !
I don't know why but when I use success: fadeOutResponse() the
function is
executed as soon as I load the page. (
Damn it I was sure I had tried something like that !:)
And THANKS because it's working now, so for those who are interested
and who will find this page,
the winner is ...
var pdoptions = { target: '#pdresult', success:function()
{fadeoutdiv('#pdresult1')} };
with
function fadeoutdiv(div) {
Hello,
I know that thanks to jQuery's ajax functions it's possible to modify
part of a webpage after an ajax request. But is it possible to change
the text inside the input elements of a form after a request ?
What I need to do is the following :
- I have 2 forms on a page. One to send a file and
Hello,
I need to build a page with a form to send a file to a server and take
the (XML) data sent back from this server and dispatch them to several
form fields.
How can I do that with jQuery and its Ajax functions ?
Thanks a lot
G.
14 matches
Mail list logo