auto-refresh problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have a product that has an Ethernet module on it.  A customer wants to  
be able to access the product using browsers.  I'm not very familiar  
with html coding, but I have been able do that for him by loading .htm  
files into the module.  That part works OK.

The pages need to be refreshed on a regular basis as the data being  
displayed changes (which happens every few seconds).  I found some html  

<meta http-equiv="refresh" content="10">

which causes the page to refresh.

The problem is that the entire page goes blank momentarily then  
refreshes with this approach.  This cause an annoying flicker whenever  
the refresh occurs.

Can anyone tell me if there is a way to refresh just a small part of the  
page?  Or, another solution would be if there is a way to do a refresh  
without having the page go blank.

Also, is this the best newsgroup to ask this type of question, or are  
there other newsgroups that anyone would recommend?

Brad McMillan

Re: auto-refresh problem

On Mon, 05 May 2014 23:42:36 -0700, Brad McMillan wrote:

Quoted text here. Click to load it

There are methods to just display the new data, yes. They usually involve  
scripting on both the client and the server, typically the web page will  
incorporate javascript code to make in your case a periodic ajax request  
to a specific script on the server for the updated data, and then insert  
the updated data into the web page.

There are plenty of explanations and example code out there.

Denis McMahon,

Re: auto-refresh problem

On Tue, 6 May 2014 12:30:50 +0000 (UTC), Denis McMahon wrote:
Quoted text here. Click to load it

To eliminate scripting, you could frame the "small part of the page"  
and refresh _that_ .


  Marvin L Jones    | jonz          | W3DHJ  | linux
   38.24N  104.55W  |  @ | Jonesy |  OS/2
    * Killfiling google &

Re: auto-refresh problem

On 5/5/2014 11:42 PM, Brad McMillan wrote:
Quoted text here. Click to load it

Thank you for the responses.  I've been able to make a lot of progress,  
but still have some issues to resolve.  I created a stripped-down  
version of an .htm file to load into the Ethernet module and experiment  

Here it is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
" ">
<html xmlns=" ">
<meta http-equiv="refresh" content="10">

    <table bgcolor="#FFFFFF" border="20" height="525" width="100%" >

          <td width="25%" valign="center" align="center" height="50" >
             <p align="center"><font face="Arial" >Test:</font>
          <td border="0" height="420" width="75%">
        <iframe border="0" height="420" valign="center"
             <font face="Arial" src="/../temp_cgi.htm"</font>>

When I load the file in it refreshes every 10 seconds.  The outer frame  
and the left pane (with "Test:") do not go blank, so that part is good.

The right pane gets its data from some C code that is loaded in when the  
project is loaded. This part does go blank when the update occurs and is  
annoying.  Can anyone tell me how I can get this data to not go blank  
while it is being updated (or at least not go blank for so long)?

Also, is there a way to call temp_cgi.htm without using iFrame?  It  
seems like iFrame changes the formatting and this makes it difficult to  
line everything up properly.

Brad McMillan

Site Timeline