Discussion:
[jQuery] ajaxsubmit dosn´t send the response to the defined target
Piet
2010-02-12 11:43:42 UTC
Permalink
Dear all,

I´m using ajaxSubmit to send a form (incl. fileuploads) to my server.
Everthings works well but the response from the server will not
displayed in the defined target (<div id="Preview">). Instead of the
response is display in target="_blank".

What could be wrong???

The submit bind is

$(document).ready(function() {
$('#store').bind('submit', function() {
$(this).ajaxSubmit({
target: '#Preview'
});
return false;
});
});

Greetings

Peter
Marty Jones
2010-02-12 13:18:03 UTC
Permalink
I know this may sound silly but do you have a div element with a id of
'Preview'?
Post by Piet
Dear all,
I´m using ajaxSubmit to send a form (incl. fileuploads) to my server.
Everthings works well but the response from the server will not
displayed in the defined target (<div id="Preview">). Instead of the
response is display in target="_blank".
What could be wrong???
The submit bind is
   $(document).ready(function() {
    $('#store').bind('submit', function() {
     $(this).ajaxSubmit({
      target: '#Preview'
     });
     return false;
    });
   });
Greetings
Peter
Jonathan Vanherpe (T & T nv)
2010-02-12 13:26:05 UTC
Permalink
And more importantly, does it have the same case?
Post by Marty Jones
I know this may sound silly but do you have a div element with a id of
'Preview'?
Post by Piet
Dear all,
I´m using ajaxSubmit to send a form (incl. fileuploads) to my server.
Everthings works well but the response from the server will not
displayed in the defined target (<div id="Preview">). Instead of the
response is display in target="_blank".
What could be wrong???
The submit bind is
$(document).ready(function() {
$('#store').bind('submit', function() {
$(this).ajaxSubmit({
target: '#Preview'
});
return false;
});
});
Greetings
Peter
--
Jonathan Vanherpe - Tallieu & Tallieu nv - ***@tnt.be
Piet
2010-02-15 08:26:14 UTC
Permalink
Yes the div with id "Preview" is available. If I use the
standard .serialize and .load from jquery it works well but
unfortunately .serialize does not handle file uploads.

Peter
Post by Jonathan Vanherpe (T & T nv)
And more importantly, does it have the same case?
Post by Marty Jones
I know this may sound silly but do you have a div element with a id of
'Preview'?
Post by Piet
Dear all,
I m using ajaxSubmit to send a form (incl. fileuploads) to my server.
Everthings works well but the response from the server will not
displayed in the defined target (<div id="Preview">). Instead of the
response is display in target="_blank".
What could be wrong???
The submit bind is
    $(document).ready(function() {
     $('#store').bind('submit', function() {
      $(this).ajaxSubmit({
       target: '#Preview'
      });
      return false;
     });
    });
Greetings
Peter
--
Loading...