Jump to content
Robert1995

Cumper metoda pentru JSON/AJAX

Recommended Posts

Posted

Vreau silent submit prin ajax, de asemenea vreau sa si primesc raspuns de la Email Marketing Software & Email Marketing Services from AWeber sau viperfusion . dupa ce ii dau un form , daca reusiti sa imi dati raspunsul si din iframe e ok si asa . Exemple la care as vrea raspuns.

Deci pentru urmatorul tinem un form type="submit" , in div .pio_submit_silent .


<script>
function handle_submit(){
$(".pio_submit_silent").each(function(event) {
var current_id = $(this).attr("id");
var form = $("#"+current_id+" form:first");


$.post($(form).attr("action") , $(form).serialize(), function(data) {
$(this).html(data);
} , "json");

/**
$.ajax({
type: "POST",
url: $(form).attr("action"),
crossDomain: true,
cache:false,
timeout:8000,
data: $(form).serialize(),
success: function(resp) {
$(this).html(resp);
},
error: function (responseData, textStatus, errorThrown) {
alert(textStatus);
}
});
*/

/**
$.ajax({
type: "POST",
url: $(form).attr("action"),
crossDomain: true,
data: $(form).serialize(),
}).done(function( msg ) {
alert( "Data Saved: " + msg );
});
*/

});
}

setTimeout("handle_submit()",3000);
</script>

Platesc 60$ LS , poate gasiti o portita.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...