Guys, is it possible to refresh a part of a page in struts without using ajax. kindly let me know.
A:
You can add a JavaScript function to the page which loads a string from somewhere and assigns it to innerHtml
of some element.
To invoke the function, either use a timer or call it when the user clicks on a button or a link.
If you need a more specific answer, ask a more specific question, please.
Aaron Digulla
2010-06-25 07:18:03
@Aaron you soultion is without ajax , i.e. using iframe
Suresh S
2010-06-25 08:31:53
thanks Aaron for your comments.
Suresh S
2010-06-25 08:46:50
No iframe, just use a `DIV` or any other basic HTML element. Note that the web browser will "hang" while your code is executed (which is the main reason for AJAX).
Aaron Digulla
2010-06-25 08:48:07
@Aaron can we refresh a div element from server without refreshing whole page.
Suresh S
2010-06-25 08:59:06
Using AJAX, it's possible to change anything inside the <DIV> tag. Without refresh the whole page.
dotNET
2010-06-27 11:58:44
But the OP asked **"without using ajax"**
Aaron Digulla
2010-06-27 12:02:00