[jQuery] Re: jQuery Form Plugin - "success" callback function isn't called

2009-01-22 Thread Sander Manneke | Internet Today

Right, didn't think of that.

I think I'll tackle that using Yahoo's suggested solution
http://developer.yahoo.com/javascript/samples/proxy/php_proxy_simple.txt

Thanks..



-Oorspronkelijk bericht-
Van: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] Namens
Mike Alsup
Verzonden: donderdag 22 januari 2009 15:11
Aan: jQuery (English)
Onderwerp: [jQuery] Re: jQuery Form Plugin - "success" callback function
isn't called


> Topic is somewhat old, but I'm stuck on the same thing.. 'success' isn't
> called
>
> I've managed to narrow it down somewhat
on:http://www.manneke.com/ajaxform/test.php
>
> The first form is to an external php file that echoes 'hello' afterwhich
> success IS NOT called.
>
> The second form is to a php file on the same server that also echoes
'hello'
> afterwhich success IS called.
>
> The only apperant difference is the fact that the receiving php file is on
> my local server and the other post is to an external php file..


That is x-domain browser security kicking in.

No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.10.12/1908 - Release Date: 21-1-2009
21:15



[jQuery] Re: jQuery Form Plugin - "success" callback function isn't called

2009-01-22 Thread Mike Alsup

> Topic is somewhat old, but I'm stuck on the same thing.. 'success' isn't
> called
>
> I've managed to narrow it down somewhat 
> on:http://www.manneke.com/ajaxform/test.php
>
> The first form is to an external php file that echoes 'hello' afterwhich
> success IS NOT called.
>
> The second form is to a php file on the same server that also echoes 'hello'
> afterwhich success IS called.
>
> The only apperant difference is the fact that the receiving php file is on
> my local server and the other post is to an external php file..


That is x-domain browser security kicking in.


[jQuery] Re: jQuery Form Plugin - "success" callback function isn't called

2009-01-22 Thread Redzzzzz


Hello, 

Topic is somewhat old, but I'm stuck on the same thing.. 'success' isn't
called 

I've managed to narrow it down somewhat on:
http://www.manneke.com/ajaxform/test.php

The first form is to an external php file that echoes 'hello' afterwhich
success IS NOT called. 

The second form is to a php file on the same server that also echoes 'hello'
afterwhich success IS called. 

The only apperant difference is the fact that the receiving php file is on
my local server and the other post is to an external php file.. 

Some help would really be appreciated 

malsup wrote:
> 
> 
>> Actually if you put a debugger;  statement there and debug with
>> firebug you will see that it actually gets called. But for some reason
>> the alert does not work. But other js code will work so you can show
>> your messages somewhere else on the page if you want or need to.
> 
> Post a link so we can see it in action.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jQuery-Form-Plugin---%22success%22-callback-function-isn%27t-called-tp20130127s27240p21604545.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: jQuery Form Plugin - "success" callback function isn't called

2008-12-09 Thread Mike Alsup

> Actually if you put a debugger;  statement there and debug with
> firebug you will see that it actually gets called. But for some reason
> the alert does not work. But other js code will work so you can show
> your messages somewhere else on the page if you want or need to.

Post a link so we can see it in action.


[jQuery] Re: jQuery Form Plugin - "success" callback function isn't called

2008-12-09 Thread [EMAIL PROTECTED]

Actually if you put a debugger;  statement there and debug with
firebug you will see that it actually gets called. But for some reason
the alert does not work. But other js code will work so you can show
your messages somewhere else on the page if you want or need to.

On 7 nov, 15:34, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > Theformsubmits as it should, using an AJAX call. When I add a
> > beforeSubmitcallbackfunction to the options array, that gets called
> > as well, as it should. Only the successcallback(the alert) isn't
> > called and I don't know why.
>
> Maybe the call wasn't successful.  Can you post a link?


[jQuery] Re: jQuery Form Plugin - "success" callback function isn't called

2008-12-09 Thread [EMAIL PROTECTED]

I have the same problem here and the call sure is successful, because
the rest of the commands get executed.
The weird thing is that only the alert that does not get executed.
I have even inspected the response with firebug and repeated the tests
using selenium with and without the alert so I´m sure that the alert
does not work on these callbacks (including error and complete ones
either).

On 7 nov, 15:34, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > The form submits as it should, using an AJAX call. When I add a
> > beforeSubmit callback function to the options array, that gets called
> > as well, as it should. Only the success callback (the alert) isn't
> > called and I don't know why.
>
> Maybe the call wasn't successful.  Can you post a link?


[jQuery] Re: jQuery Form Plugin - "success" callback function isn't called

2008-11-07 Thread Mike Alsup

> The form submits as it should, using an AJAX call. When I add a
> beforeSubmit callback function to the options array, that gets called
> as well, as it should. Only the success callback (the alert) isn't
> called and I don't know why.

Maybe the call wasn't successful.  Can you post a link?


[jQuery] Re: jQuery Form Plugin - "success" callback function isn't called

2008-11-07 Thread jscheel

Hrm, I'm having the same problem. Anybody have any ideas?

On Oct 23, 6:34 am, Sebastian <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> I'm working with the "jQueryFormPlugin" and I'm having some trouble
> with it.
> In my HTML I have a button, which, when clicked, inserts aformvia
> jQuery. To then register theform'ssubmitevent, I use the
> "livequery"pluginin my "(document).ready" function:
>
> (document).ready(function($) {
>   var options = {
>         target:         '#editable_content',   // target element(s) to
> be updated with server response
>         success:       function(responseText, statusText)
> { alert(responseText); },  //post-submitcallback
>     };
>   $('.edit_contact').livequery('submit', function() {
>         $(this).ajaxSubmit(options);
>         return false;
>       });
>
> });
>
> Theformsubmits as it should, using an AJAX call. When I add a
> beforeSubmit callback function to the options array, that gets called
> as well, as it should. Only the success callback (the alert) isn't
> called and I don't know why.
>
> Can anyone help???
>
> Regards,
>
> Sebastian