View Single Post
  #4 (permalink)  
Old 03-02-2010, 03:00 AM
sun sun is offline
Junior Member
 

Join Date: Feb 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
sun is on a distinguished road
Question Re: control thread using javascript button in jsp

Quote:
Originally Posted by Json View Post
If you want this seamless so that the brower doesnt refresh the page when you click the button you will have to create an AJAX call.

Using jQuery for instance this makes it all really easy. See Ajax – jQuery API for more information.

Once you make the ajax call you need to have a servlet or something receiving this call and then just take it from there to pause the running state of the thread in question.

// Json

thanks for the advice.
but as i went through the Ajax books, i saw that only text-data can be passed between a server and client using jsp.
how can i locate the thread in the server and then control it ?
please suggest some coding example..
Reply With Quote