473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

reload only middle portion of web page without header and footer images

365 100+
I´m trying to display certain page without header image or footer image (I need to reload only variable values). Is there any way of disabling them in html code?, I am using refresh now, it reloads whole page, when it reloads I get one second white screen pf that page. my page looklike:


header.img

variable v1 = 9.0

variable v2 = 10.0


footer.img
Oct 13 '10 #1
11 4792
Death Slaught
1,137 1GB
If I'm not mistaken you already have a similar thread to this posted. Please do not double post threads.

I'm assuming that you want your variables to update automatically? Without page refresh and without the user having to do anything. What are you currently doing/using to update the page (other than refreshing it)? Are the updated variables coming from a server?

Thanks, Death
Oct 13 '10 #2
tvnaidu
365 100+
sorry fro that.

it is plain html code, I used refresh tag at the beginning to refresh page for every 5 seconds without user do anything, but this reload loads whole page, I can see blank page for a second.
Oct 13 '10 #3
tvnaidu
365 100+
Yes, all varialbles coming from server (on network)
Oct 13 '10 #4
Death Slaught
1,137 1GB
Okay, as mentioned before you can use an iframe so only the variables are refreshed but that probably isn't what you're looking for -it's the same thing that you are already doing. However, this can be done by using, say PHP, to retrieve that data from the server and update the variables on the fly. I'm sure that other languages can achieve this, but I'm not entirely sure which ones.

Thanks, Death
Oct 13 '10 #5
tvnaidu
365 100+
Thanks. MIne is very simple code, I just want to read values from http server and I need to update them without reload page. I am not familiar with html thatmuch. I have my code, can I post here, for some expert this may be simple, middle values I need to update.
Oct 13 '10 #6
Death Slaught
1,137 1GB
No problem, you can post your code if you want incase anyone else wants to throw anything else in. Like I said, this would probably be easiest to accomplish with PHP, so you might want to ask over there.

Thanks, Death
Oct 13 '10 #7
tvnaidu
365 100+
This is running on micro-controller, it won't support CGI / PHP.
Oct 13 '10 #8
Death Slaught
1,137 1GB
Ah, that could present a problem. I'm sure there are plenty of work arounds. I'll ask a few people to take a look and see if they can help you.

Thanks, Death
Oct 13 '10 #9
tvnaidu
365 100+
Thanks, appreciated. THis is my code (right now it reload the whole page include footer.gif and header.gif - also one second white page between reloads, I want to avoid that and reload only my values (Three volatges, four currents and four powers)

Expand|Select|Wrap|Line Numbers
  1.  
  2. <html>
  3.  
  4. <head>
  5. <meta http-equiv="refresh" content="10">
  6. <title>BPS</title>
  7. </head>
  8.  
  9. <body>
  10.  
  11.  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  
  12.  <br>
  13. <div id="header">
  14.     <CENTER><a title="BPS"><img src="header.gif" alt="BPS" width="800" height="64" border="0" /></a> </CENTER>
  15. </div> &nbsp;  &nbsp;  &nbsp; 
  16.  
  17. <div align="left">
  18.     <a href="/plugv3.htm" onMouseOver="window.status='';return true;"><strong>Click here for Receptacle Controls</strong> </a>
  19.  <br>
  20.     <a href="/admin_status.html" onMouseOver="window.status='';return true;"><strong>Click here for Receptacle Status</strong> </a>
  21.  <br>
  22.     <a href="/board1_info.htm" onMouseOver="window.status='';return true;"><strong>Click here for Receptacle Currents & Powers</strong> </a>
  23. </div>
  24.  
  25. <div align="center">
  26.     <b><font size="3"> BOARD VOLTAGES (RMS), BOARD CURRENTS (RMS) and BOARD ACTUAL POWER readings </font></b>
  27.     <br><br>
  28. </div>
  29. <br>
  30. <br>
  31.  
  32. <div align="center">
  33. <TABLE>
  34. <tbody>
  35. <tr><td><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FIRST BOARD (Receptacles 1-8) VOLTAGE (V1)   :  </strong></td><td>1     Volts</td> </tr>
  36. <tr><td><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SECOND BOARD (Receptacles 9-16) VOLTAGE (V2) :  </strong></td><td>97    Volts</td></tr>
  37. <tr><td><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;THIRD BOARD (Receptacles 17-24) VOLTAGE (V3):  </strong></td><td>1     Volts</td></tr>
  38. </tbody>
  39. </TABLE>
  40.  
  41. <br>
  42. <br>
  43. <TABLE>
  44. <tbody>
  45.  
  46. <tr><td><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FIRST BOARD TOTAL CURRENT (RMS):  </strong></td><td>0     </td><td>.</td><td>6     Amps</td></tr>
  47. <tr><td><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SECOND BOARD TOTAL CURRENT (RMS):  </strong></td><td>0     </td><td>.</td><td>6     Amps</td></tr>
  48. <tr><td><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;THIRD BOARD TOTAL CURRENT (RMS):  </strong></td><td>0     </td><td>.</td><td>4     Amps</td></tr>
  49. <tr><td><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TOTAL CURRENT (RMS):  </strong></td><td>0     </td><td>.</td><td>8     Amps</td></tr>
  50.  
  51.  
  52. </tbody>
  53. </TABLE>
  54. <br>
  55. <br>
  56. <TABLE>
  57. <tbody>
  58.  
  59. <tr><td><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FIRST BOARD POWER:  </strong></td><td>0     Watts</td></tr>
  60. <tr><td><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SECOND BOARD POWER:  </strong> </td><td>4    Watts</td></tr>
  61. <tr><td><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;THIRD BOARD POWER:  </strong> </td><td>0    Watts</td></tr>
  62. <tr><td><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TOTAL BOARD POWER:  </strong> </td><td>4    Watts</td></tr>
  63.  
  64. </tbody>
  65. </TABLE>
  66. </div>
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73. <br><br>
  74.  
  75. <div align="center">
  76.     <input type="button" value="Refresh" onclick="window.location.reload();" />
  77. </div>
  78. <br><br><br>
  79.  
  80. <form name="input" action="/plug_login.htm" method="get">
  81. <div align="center">
  82. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <input type="button" onclick="if (confirm('Sure you want to Logout?')) submit();" value="Logout"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  83. </div>
  84. </form>
  85.  
  86. <br><br><br> 
  87. <tr> <CENTER>
  88.         <td align="center" width="100%" colspan="2">
  89.             <img border="0" src="footer.gif" width="800" height="25"></td> </CENTER>
  90.     </tr>
  91. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<td> . 
  92.  
  93.  
  94.  
  95.  
  96.  
Oct 13 '10 #10
YarrOfDoom
1,247 Expert 1GB
I believe the perfect way to solve this would be AJAX, as it is made for things like this. You might need to learn a little Javascript, but there's always the Javascript/AJAX/DHTML forum for that ;)

You can start learning AJAX here.
Oct 13 '10 #11
tvnaidu
365 100+
Thanks. Let me learn littlebit AJAX and solve it.
Oct 14 '10 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: ad | last post by:
How can I set the page's header, footer of IE when IE in preview or print mode?
11
by: Peter Wu | last post by:
Hello, I want to create a Header and Footer for every ASPX page I build. I created 2 Web user controls respectively and placed them in an ASPX page. The problem is that I cannot position the...
0
by: ashj | last post by:
i have created an asp page and print it using window.print () comand. But in the printout i m not able to remove header like 'page1of 1 ' and footer. Is there any way to remove it dynamically?
0
by: ad | last post by:
How can I set the page's header, footer of IE when IE in preview or print mode?
2
by: LilBuh | last post by:
hi there :) i ve been looking for some time a way to print an html file from vb.net i came up with this code for printing and removing the header and footer from IE then once the printing is done...
0
by: LilBuh | last post by:
Hello :) this is a repost... i ve been looking for a way since last week ... i have a template html file that i modify from my code... i need to print this file without IE's Header and Footer or...
4
by: jmalvika | last post by:
Hi all, I'm trying to generate an excel report from an ASP web page using .. "response.ContentType = "application/vnd.ms-excel" .... I need to add a custom header & footer to the excel...
1
by: nrajeshatwork | last post by:
Hi I need to print a page without header and footer. Can it be done without changing the page settings in the browser. If so plz mail me. Regards,
4
by: stevesj | last post by:
I have a web form that generates 4 or 5 printed pages of html and a few images. I know how to insert CSS page breaks. Is there a way to calculate on the server where the page will break - like...
5
by: tvnaidu | last post by:
I have header and footer images part of html page,. loading the same page for every 2 seconds, because of these two images, it is taking more time, I need to replace them with some text, may be like...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.