473,396 Members | 1,775 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,396 software developers and data experts.

Need to redisplay a portion of the window, without using refresh

31
Hi
I have a need to constantly update a portion of the screen - containing the results of a calculation; and the calculation includes elased time - so constantly changes (increases) the result). Ideally refreshing every 1 or 2 secs.

I tried a permanent WHILE loop, but I get an error that the script is slowing the browser.

Can anyone:
- tell we which way to go,
- or give pros/cons of techniques,
- or point me to anything similar

I decided not to constantly 'refresh' the page, because the progress bar (whatever it's called?) at the bottom of the browser window is disruptive to the eye. Even refreshing a frame within a window, causes this bar to flash - or does anyone know a way to disable this?

Thanks
Sep 17 '07 #1
1 1442
iam_clint
1,208 Expert 1GB
I would do something like this
Expand|Select|Wrap|Line Numbers
  1. <script>
  2. start = 0; //start number
  3. window.setInterval("testfunction()", 1000); // 1000 = 1 second
  4. function testfunction() {
  5.  start++;
  6.  document.getElementById("nval") .value = start;
  7. }
  8. </script>
  9. <input type="text" id="nval" value="0">
  10.  
Sep 17 '07 #2

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

Similar topics

3
by: Joe Abou Jaoude | last post by:
hi, I have a search page im asp.net. the user enter the criterias in textboxes and dropdownlists and on submit i want the results to be displayed in a popup window. so the easy way is to pass...
3
by: Margaret | last post by:
How do I open a webpage in a new browser window? One that doesn't have any back button/forward button or refresh?
24
by: Andy Sutorius | last post by:
Has anyone successfully created a Hello World program without using Visual Studio.NET? If so, what IDE did you use and what namespaces did you import? Thanks! Andy Sutorius
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
7
by: mg | last post by:
I need to first open WebForm2 from WebForm1 and then close WebForm1 without the end user having to press an OK button before the close can occur. For example, possibly ...
5
by: GS | last post by:
Guys: I have a question, Is it possible to implement pop-up window without Java script, we don't want to use java script since it might get blocked by pop-up blocker. Thanks in advance. GS.
6
by: bushi | last post by:
hi everyone! i have diplayed my hyperlinks in a iframe.when i redirect to next page.the next page also open in the same frame,but i want to open a new browser window,when i click on the...
1
by: Rastra | last post by:
Hi, I am working on a ASP.NET project where I need to create and export data into excel format. I have done it by using Miscrosoft Componets for excel but now I need to do it without using...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.