[jQuery] Re: Simple Jquery AJAX post

2009-09-30 Thread Mark Gorman
end on your input as somtimes that will brake and i never did work out why On Sep 30, 10:27 am, mattastic wrote: > Thanks very much for your reply, however, could you please tell me how > I can populate the loading div with the response text, rather than an > alert? > > Many thanks &

[jQuery] Re: Simple Jquery AJAX post

2009-09-29 Thread Mark Gorman
yay for it not showing what you said before i posted, try on your start and stop doing $(document).ajaxStart(); for some reson is can be quite silly with that also use $(document).ready(); its nicer that way and avoids unexpected issues On Sep 29, 1:52 pm, Mark Gorman wrote: > this is how

[jQuery] Re: Simple Jquery AJAX post

2009-09-29 Thread Mark Gorman
wrote: > Thanks very much for your replies. > > Could you please post the whole page code? > > So I can see how the javascript, html and ajax works together > > I'mn struggling to understand how the whole page is layed out. > > Thanks in advance > > On Sep 28,

[jQuery] Re: Simple Jquery AJAX post

2009-09-28 Thread Mark Gorman
http://docs.jquery.com/Ajax has everything you need but a simple example would be... $(document).ready(function(){ $.ajaxStart(function(){ $('.loading').show(); }); $.ajaxStop(function(){ $('.loading').hide(); }); //i have trouble with the post permiters so i always do it the {} way but you c

[jQuery] Re: Simple Jquery AJAX post

2009-09-28 Thread Mark Gorman
i did try ealer to send a reply but that did not seem to apper so heres a shorter version http://docs.jquery.com/Ajax has everything you need, to make a loading image come up on start you can just ether in your click function inlude $(".loading").show(); or use the event http://docs.jquery.com/A