• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP auto refresh flickering problem

 
Vignesh Babu M.J
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anyone tell me how to avoid flickering problem when a jsp page get refreshed automatically ( every 1 seconds ).
every second java bean is being called in that jsp page..


Regards,
Vignesh.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has nothing to do with JSP. It's just the browser redrawing the page. The only way to avoid it is not to do it.

Why are you refreshing the page so often? Without more information, how can anyone suggest alternatives?
 
Vignesh Babu M.J
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Here is the code.



Is there any better way to avoid flickering problem?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You did not answer my question: why? Without knowing what you are really trying to accomplish, it's hard to suggest alternative solutions.
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming you need to refresh the page for some reason, one possible solution would be to use Ajax. Using Ajax, you can send a request to the server, get the response, and apply it to your page elements - all without refreshing the page.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly why I asked for clarification. If all that is necessary is for the data on the page to be periodically updated, an Ajax solution would be perfect.
 
Vignesh Babu M.J
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Exactly i wanted some portion of the page need to be updated periodically( say, once in every second ). Finally i could able to accomplish using AJAX.
Thanks for your valuable support. Really it helped me a lot...... thanks again...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic