473,320 Members | 2,147 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,320 software developers and data experts.

refresh page

Let me just start by saying taken over someones else code that they wrote just for them to understand(no comments, documentation NOTHING) is a task on in itself.
anyway, i have a page that needs to be refreshed every 10 seconds but not looses the item selected in the drop down, how and can it be done?

example:
drop down
user selects Football
i want all the scores to be refreshed every 10 seconds but not loose football as the selection. Currently if i pick football and the page refreshed it goes to the default which is baseball, it needs to stay on football if thats what im looking at.

thx

Nov 18 '05 #1
3 2162
"=?Utf-8?B?SUdvdFlvdXJEb3ROZXQ=?="
<IG************@discussions.microsoft.com> wrote in
news:0E**********************************@microsof t.com:
anyway, i have a page that needs to be refreshed every 10 seconds but
not looses the item selected in the drop down, how and can it be done?


Use a javascript to postback the page every 10 seconds.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #2
You can do this by having the Page Post Back to itself using JavaScript.
Example:

<script type="text/javascript"><!--
function postBack()
{
document.forms[0].submit();
}
setTimeOut("postBack()", 10000); // milliseconds: 10000 = 10 seconds
// --></script>

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"IGotYourDotNet" <IG************@discussions.microsoft.com> wrote in message
news:0E**********************************@microsof t.com...
Let me just start by saying taken over someones else code that they wrote just for them to understand(no comments, documentation NOTHING) is a task on
in itself. anyway, i have a page that needs to be refreshed every 10 seconds but not looses the item selected in the drop down, how and can it be done?
example:
drop down
user selects Football
i want all the scores to be refreshed every 10 seconds but not loose football as the selection. Currently if i pick football and the page
refreshed it goes to the default which is baseball, it needs to stay on
football if thats what im looking at.
thx

Nov 18 '05 #3
there is currently a function there like this but it's loosing the selected item in the drop down

"Kevin Spencer" wrote:
You can do this by having the Page Post Back to itself using JavaScript.
Example:

<script type="text/javascript"><!--
function postBack()
{
document.forms[0].submit();
}
setTimeOut("postBack()", 10000); // milliseconds: 10000 = 10 seconds
// --></script>

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"IGotYourDotNet" <IG************@discussions.microsoft.com> wrote in message
news:0E**********************************@microsof t.com...
Let me just start by saying taken over someones else code that they wrote

just for them to understand(no comments, documentation NOTHING) is a task on
in itself.
anyway, i have a page that needs to be refreshed every 10 seconds but not

looses the item selected in the drop down, how and can it be done?

example:
drop down
user selects Football
i want all the scores to be refreshed every 10 seconds but not loose

football as the selection. Currently if i pick football and the page
refreshed it goes to the default which is baseball, it needs to stay on
football if thats what im looking at.

thx


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Scott | last post by:
I have a clickable graph that resides on page 1. If user clicks a data point on the graph, the page runs again yeilding a 2nd graph that shows a more detailed graph. Problem is, I have a...
1
by: Marco Maroni | last post by:
How to force image refresh on client browser ? Is ti possible to force the refresh of the same image (tha was changed server-side) to the client, without user press Contrl+F5 in IE ? - Marco
2
by: Jeronimo Bertran | last post by:
Hi, I have a page with a very data intensive grid which needs to be automatically refreshed constantly if a change is detected. In order to not refresh the complete page so often, I created an...
1
by: francois | last post by:
I have a ASPX form with a dropdownlist that makes a post back (to the same page of course, just a normal asp.net postback) That page also has an auto refresh javascript as it needs to refresh its...
9
by: PK9 | last post by:
I'm having an issue with the "Refresh" of an asp.net page. The refresh is actually calling my last onClick event. I thought that asp.net was supposed to be stateless in that it shouldn't...
0
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in...
3
by: Kevin | last post by:
Hi guys, I want to refresh some pages every 2 seconds. however, these html pages are not in my site, they could be any pages from yahoo.com or msn.com. I can create a page, which redirect to...
8
by: Jason S | last post by:
Hi, is there any way of getting my VB (6.0) program to automatically 'Refresh' an IE window that might be active (window status not applicable). It needs to be able to determine which active IE...
10
by: phforum | last post by:
Hi, I wrote a PHP page for user input the information to search the database. And the database data will update every second. I want to set the auto refresh to get the data from database every...
5
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi, I used the following code to refresh the parent page, and it works very well (Thanks to Peter Bromberg "). Response.Write("<script language='javascript' type='text/javascript'{...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.