HighDots Forums  

Jquery forms ajaxsubmit- 'success' function callback failswith IE

jQuery jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.


Discuss Jquery forms ajaxsubmit- 'success' function callback failswith IE in the jQuery forum.

Reply
 
Thread Tools Display Modes
  #1  
Old   
desitech123
 
Posts: n/a

Default Jquery forms ajaxsubmit- 'success' function callback failswith IE - 11-16-2009 , 10:19 AM






Hello I am havign problem with using a callback function on the 'success'
parameter of the ajaxsubmit function . The callback works fine in FF but
not in IE 6-8 here my code

$( "#signinform" ).ajaxSubmit({ success: FormResponse});

function FormResponse( responseText, statusText )
{
//Code accesses the responseText

}

Syntax taken from jquery forms plugin page

I tried 'success :FormResponse()' which is able to call the function but it
wont pass the parameters that i need . How is correct syntax to do
register callbacks for IE and also how do I access the rpeonseText that my
server code is printing on a page

--
View this message in context: http://old.nabble.com/Jquery--forms-...p26374698.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.


Reply With Quote
  #2  
Old   
justin
 
Posts: n/a

Default Re: Jquery forms ajaxsubmit- 'success' function callbackfails with IE - 11-17-2009 , 03:49 PM






I was having this same problem where my success function wouldn't be
called on ajaxSubmit. I ended up looking at the jquery forms plugin
code and line 65 forces your ajaxSubmit to use a GET if you haven't
specified <form method="post". If your form is fairly large the get
will fail. So the work around is to use method="post" on your form
element.

On Nov 16, 10:19*am, desitech123 <rahil... (AT) gmail (DOT) com> wrote:
Quote:
Hello I am havign problem with using a callback function on the 'success'
parameter *of the ajaxsubmit function . The callback works fine in FF but
not in IE 6-8 here my code

$( "#signinform" ).ajaxSubmit({ success: FormResponse});

function FormResponse( responseText, statusText )
{
//Code accesses the responseText

}

Syntax taken from *jquery forms plugin page

I tried 'success :FormResponse()' which is able to call the function but it
wont *pass the parameters that i need *. How is correct syntax to do
register callbacks *for IE and also how do I access the rpeonseText that my
server *code is printing on a page

--
View this message in context:http://old.nabble.com/Jquery--forms-...ess%27-functio...
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.