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

how to Auto reload page on load complete?

1
Hi,

Is it possible to auto reload a page after all div's completed loading? i.e not time triggered but completion triggered.

Thanks
Aug 7 '11 #1
2 3218
Rabbit
12,516 Expert Mod 8TB
The onload event occurs after a page has finished loading. But why would you want to do this? The page would just keep reloading and the user won't be able to interact much with the page.
Aug 7 '11 #2
Frinavale
9,735 Expert Mod 8TB
To clarify what Rabbit has said:

The JavaScript onload event occurs after the page finishes loading.

The C# or VB.NET onload event occurs on the server near the beginning of the ASP.NET life cycle.

So, if you want to reload the page after it's been rendered/loaded in the Browser (strange but ok) you would have to implement a JavaScript method that handles the Body's onload event that sends a request to the server to refresh the page (you could even call the ASP.NET's __doPostback() method to post back to the page)

Please be aware that you may cause an infinite loop doing this...it's probably not a good idea.

Why exactly are you trying to do this?

-Frinny

(edit: Please note that if you are using Ajax the solution should be solved differently)
Aug 8 '11 #3

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

Similar topics

2
by: Mark Anderson | last post by:
Problem in short: user is moving (clicking a link) from my page before some JS code is run (to write a cookie). The code does not run (in Body's onLoad event) until the page loads as there are a...
15
by: H00ner | last post by:
Hello All Hope you can help Been pulling my hair out about a popup problem in ASP.NET. One of the forms i wrote requires the user to select a product from a list in a popup web form. the...
8
by: MaryA | last post by:
I have an aspx page that loads twice inspite of using the IsPostBack i removed all controls from the page and still the page_load event is called twice I appriciate any help coz i have lost...
6
by: ¿ Mahesh Kumar | last post by:
Hi groups, Control name : ListboxID (lstCertification), selection mode=mutliselect. On Pageload i'm assinging string lstSplit="1/3/6/8" of the previously selected listindex id's. Now on the...
1
by: Sumantra Bhattacharyya | last post by:
Hi Forum, Application auto reload after on cold boot: Is there any possibility of autoreloading pocketpc application on cold reboot. The conditions, and configuration could be stored in some...
2
by: Zeba | last post by:
Hi ! How do I distinguish a page reload event ( i mean a page_load due to some clicks, etc. which dont cause a postback) from a page load event ( the first time the page loads) ?? Thanks !
7
by: John Gault | last post by:
I experimented with a snippet of JavaScript that will display a "Please Wait" message and graphic while the results of a cgi script is running (the script grabs a bunch of data and formats it in a...
2
by: RobertTheProgrammer | last post by:
Okay, here's another one for you. Hopefully I can articulate my problem well enough... I've got a GridView (with C# code behind) that is having some page load issues. Users can enter and...
30
by: fuchsia555 | last post by:
Is there code to auto reload images if it doesn't load at first time in users browser ?
3
by: tvnaidu | last post by:
How to auto refresh page for every 3 minutes by passing command part of URL?. I need to refresh one page automatically by passing that refresh command part of url, for example if I want to refresh...
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...
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...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.