|
||
|
|||
|
how to control threads in a jsp page using javascript button?
when i click on a button, i should be able to pause a thread. i have tried writing code in a function using <% ... %> tags, but they are executed automatically on page load. and when i click on the button, nothing happens.
|
|
||||
|
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 |
| Sponsored Links |
|
|||
|
Quote:
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.. |
![]() |
| Tags |
| javascript, jsp, thread |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Control Browser Back Button | Ganezan | JavaServer Pages: JSP & JSTL | 2 | 01-01-2010 01:21 PM |
| control Browser Back Button | Ganezan | JavaServer Pages: JSP & JSTL | 0 | 30-12-2009 12:49 PM |
| process control | ttsdinesh | Java Native Interface | 6 | 27-10-2009 11:29 PM |
| how to put session in javascript | rajani | JavaServer Pages: JSP & JSTL | 2 | 08-07-2009 05:46 PM |
| javascript issue in eclipse JEE ganymede 3.4.2 | katty | Java IDEs | 3 | 18-05-2009 08:45 AM |
|
100 most searched terms
Search Cloud
|
| 2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java actionlistener java actionlistener jbutton addactionlistener addactionlistener java avatar hardware id convert double to integer java double format java double to int java double to integer in java double to integer java eclipse shortcut keys eclipse tutorial for beginners exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.outofmemoryerror: java heap space format double java get mouse position java hardware id avatar java 2 dimensional arraylist java 2d arraylist java actionlistener java addactionlistener java button actionlistener java convert double to int java convert list to map java double format java double to int java double to integer java for beginner eclippse java format double java forum java forums java get mouse position java ipod touch java jbutton java list to map java programming forum java programming forums java sendkeys java.lang.reflect.invocationtargetexception java.util.arraylist jbutton actionlistener jbutton java programming forums string to int java two dimensional arraylist java writing apps for ipod touch |