How do I stop redirection after form submittion?

Posted by Noor on Stack Overflow See other posts from Stack Overflow or by Noor
Published on 2010-04-14T18:02:27Z Indexed on 2010/04/14 18:13 UTC
Read the original article Hit count: 331

Filed under:
|
|

I had a similar question posted here a few hours ago, just now I got the answer that I should look into using AJAX to do this. Since I want to complete this part of the site today I can't afford to learn AJAX from the basics to do this now.. This shouldn't be something difficult and I thougt that I would be able to do this but I'm not skilled enough...

I have a form, when you click submit, it posts to twitter.com/statuses/update.xml and I need to be able to do so without being redirected there.

Is there an easy way to do this or do I need to learn AJAX?

Thankfull for any answer at all..!

edit:

I'm using this to submit:

$(function() {
$("#skikka").click(function() {
var dendar = "http://" + $("#usernam").val() + ":" + $("#passwo").val() + "@twitter.com/statuses/update.xml";

$("#formen").attr("action", dendar); $("#formen").submit(); alert(dendar); return false;

});
});

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about form