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.
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
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.
Thank you for your detailed answer which fits what I had understood
from the documentation.
So the #pdresult div is updated with
div id=pdresult1Your personal details have been saved/div
and I use
var pdoptions = { target: '#pdresult', success:function(response)
{ setTimeout(function(){
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
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.
My select looks like this :
select multiple= size=6 name=locations[] id=locations
option value=parisparis/option
option value=londonlondon/option
option value=madridmadrid/option
/select
I would like to have this in the textfield
paris;london;madrid
or even
;paris;london;madrid
since it would
Thanks for your reply !
But firebug says join is not a function..what the...
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
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 ? :)
13 matches
Mail list logo