File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes refresh page itself without flickering Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "refresh page itself without flickering" Watch "refresh page itself without flickering" New topic
Author

refresh page itself without flickering

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

<%response.setHeader("referesh", "8, url=xyz");%>

is there any way without flickering?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56174
    
  13

Depending upon the browser, there's likely to be some flicker as the page is repainted.

Why are you refreshing the whole page like it's 1998? Ajax was introduced to update on-page data without a whole-page refresh almost a decade ago.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Bear Bibeault wrote: Ajax was introduced to update on-page data without a whole-page refresh almost a decade ago.

i am not sure about ajax, but ajax response for an event. and i need to perform this refresh every x minutes. i can also do this onload of a page but limiting time delay on java script ok?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

JavaScript knows timers too.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56174
    
  13

Seetharaman Venkatasamy wrote:i am not sure about ajax,

Long past time to fix that.

but ajax response for an event.

Don't know what you mean by this.

and i need to perform this refresh every x minutes.

Use a JavaScript interval.

i can also do this onload of a page but limiting time delay on java script ok?

Subject has given an uncodable response.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: refresh page itself without flickering
 
Similar Threads
Swing Application Flickering?
flickering in java
avoiding flickering
Buffering in Java
Image Viewer Applet