[jQuery] Re: fadeout a div after a few seconds

2007-11-27 Thread guix69
I had tried that also, somewhere around my second post:) But it doesn't fade out my pdresult DIV.

[jQuery] Re: fadeout a div after a few seconds

2007-11-27 Thread guix69
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.

[jQuery] Re: fadeout a div after a few seconds

2007-11-27 Thread [EMAIL PROTECTED]
you need to use an anonymous function: success: function() { fadeoutResults(arguments) } On Nov 27, 11:56 am, guix69 [EMAIL PROTECTED] wrote: Almost found the solution... You were right about the use of success: fadeOutResponse. I had tried success: fadeOutResponse() and believe it or not it

[jQuery] Re: fadeout a div after a few seconds

2007-11-26 Thread Wizzud
Try creating a named function for the success callback...? function fadeOutResult(response){ setTimeout(function(){ $('#pdresult div').fadeOut('slow'); }, 2000); } var pdoptions = { target: '#pdresult', success: fadeOutResponse }; On Nov 24, 2:18 pm, guix69 [EMAIL PROTECTED] wrote: Thank you

[jQuery] Re: fadeout a div after a few seconds

2007-11-24 Thread guix69
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(){

[jQuery] Re: fadeout a div after a few seconds

2007-11-23 Thread Wizzud
1. I beg to differ: it's your use of my reply that doesn't work 2. You can't fadeOut() text context, you can only fade an element. Therefore if you want to keep the outer div visible, then the inner text needs to wrapped in something (like another div?), and it's that 'something' that you fade

[jQuery] Re: fadeout a div after a few seconds

2007-11-23 Thread guix69
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

[jQuery] Re: fadeout a div after a few seconds

2007-11-22 Thread Wizzud
setTimeout(function(){ $('#div').fadeOut('slow'); }, 2000); ...fades out #div after 2 seconds. On Nov 22, 9:53 am, guix69 [EMAIL PROTECTED] wrote: 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