pre load URL
I'd like to have a bit of code in the document head that will cache a URL to be accessed in the future, much like preloading images. I'm new at JS, but perhaps some variation of simple image preloading code?
[This message has been edited by jbottero (edited 16 February 2000).]
AndyB posted this at 00:47 — 17th February 2000.
They have: 344 posts
Joined: Aug 1999
Huh??
Could you explain the purpose of the request or what performance/repsonse you need from this 'pre-load' and then maybe someone can provide a solution to your problem.
jbottero posted this at 01:00 — 17th February 2000.
They have: 9 posts
Joined: Feb 2000
The purpose is to allow a "Panic Button" for people viewing the site at work or some other "inappropriate" location. The pre-loading is to insure quickness. The boss walks in, the new page is loaded PDQ, our visitor retains his/her employment in good standing.
[This message has been edited by jbottero (edited 16 February 2000).]
AndyB posted this at 02:38 — 17th February 2000.
They have: 344 posts
Joined: Aug 1999
If it's a Windows environment then the Alt and Tab keys pressed together switch to the next task in the task list (try it now).
So the extra html would be .... a message in the status window perhaps that says
Press alt-tab when boss approaches
jbottero posted this at 16:44 — 17th February 2000.
They have: 9 posts
Joined: Feb 2000
Well, all are good suggestions, but it has to be a link, I can not assume my users know anything more than how to click on a gif of a "panic button". The Idea is to cache a different site, so that it looks as if you had been surfing that site (ie cnn, microsoft...).
Would there be a way to script the alt-tab idea into a button or graphic with an href?
[This message has been edited by jbottero (edited 17 February 2000).]
Jim Shilt posted this at 00:11 — 18th February 2000.
They have: 268 posts
Joined: May 1999
How about opening a new window that is 10X10 pixels with the url of a page you want to use and then using the onload command to shut the new window. Then the BOSS button would only have to call the page that had already been loading.
Short scripting.
Someone here probably knows how to put the new window in the back of the current browser even.
------------------
My goal in life is found in Phillipians 4:8-9
My goal in life is found in Phillipians 4:8-9
shoutingrock.org/troop214
jbottero posted this at 01:46 — 18th February 2000.
They have: 9 posts
Joined: Feb 2000
Well, this is kind of a low tech solution, but I've settled on loading the dummy html document into a frame element that has no dementions. It may then be called via a link with the target as _top. Since this site does not and will not have a noframes version, it's not a problem. Now for the next step: disable the back button and dump the history folder when the target site loads... in both Netscape and IE...
You all may think this is a strange feature, but these days when surfing the net at work can mean your job, I see no problem with it. Personally, I think it's ugly stupid to hook people up to the net at work, and forbid them to surf now and then, or to send e-mail.
[This message has been edited by jbottero (edited 17 February 2000).]
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.