[jQuery] Re: jquery HTML file reading

2009-10-18 Thread Evgeny Bobovik
See example: $.ajax({ type: "POST", url: "SERVLET.do", data: "id=1&location=Minsk", success: function(msg){ //'msg' - is your returned html file $(document).html(msg); // this function replace your current page to returned page } }); Gk___ 2009/10/18 ajith...@gmai

[jQuery] Re: jquery HTML file reading

2009-10-19 Thread Ajith G
will this refresh the page ? On Sun, Oct 18, 2009 at 10:33 PM, Evgeny Bobovik wrote: > > See example: > $.ajax({ > type: "POST", > url: "SERVLET.do", > data: "id=1&location=Minsk", > success: function(msg){ > //'msg' - is your returned html file > $(document).html(msg); // th