Here I have attached the screenshot and its code.
Actually it is .cfm file with some cold fusion code. but I am sending you code required.
please let me know whatevere is wrong.
Thanks
Main Topics
Browse All TopicsI am implementing pre-caching images before next pages loads to display images.
But iif someone does want to precach images and he wants to skip, then there is a link
"skip pre-caching".
I am calling images one by one as soon as page opens. But then this "skip pre-caching" links become unclickable until some images are loaded.Please see the attached screenshot.
why this happens?
Its really urgent. please tell me the solution.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
why I am writing everything in document.write because I do not know how to pass java script variable in HTML code.
I am storing parameters from URL to "path" variable and I want to pass this para,aters with player.cfm.
seel the line:
onClick=self.close();windo
please let me know if you know the way to pass java script variable in HTML code with out document.write.
secondthing,
how should I write onClick=self.close();windo
can I call one function on onclick and then I can define settimeout and window.close in that function.
mplungjan:
Thanks. That works fine. But still when I click on "skip pre-caching", it opens the "player.cfm" but still downloading is going on. it does not stop.
Is it because we are opening player.cfm on parent window( which has preload.cfm).
please tell me the solution. As soon as I clicked on skip. it should stop downloading.
Thanks
1. what is the name of the cfm that is currently executing the preload?
2. is it in an iframe?
If the name of the cfm is player.cfm, then the preload does not CONTINUE but is instead RESUMED
It is not possible that the preloading continues if the page that does the preload is removed from the browser - if you replace a page's parent window, then that page is unloaded and the preload stops.
If you open a NEW window or tab then of course the preload will continue and you will need to replace the preload page with a blank page or another page
yes correct..preloading is RESUMED.
well the flow is something like this..
when i click on button "launch"(which is in launch.cfm), it calls preload.cfm( which pre-caches images) and once pre-caching completes, opens up an new page "player.cfm" ( pre-cached images are displayed on this page - purpose of pre-caching) [ that works fine]
second scenario is launch.cfm calls preload.cfm .now when we click on"skip preloading", it should stop pre-caching in between and it should open up player.cfm.
player.cfm opens on parent window( where preload.cfm was executing) but it Resumes pre-caching remaining images (also it shows blank until all the images are pre-cached on player.cfm (even if some images are already downloaded before skip was clicked).
I have one idea --as I wrote settimeout function to close parent window and player.cfm was opned in another window. can I do something like that.(see the very first code submitted here)
second thing do you how to use flag. everything image starts downloading we can check value of flag andwe can set false when the "skip" is clicked. i have idea but can you please write a function???
I worry when you say parent window. does launch.cfm have an iframe in which preload.cfm is loaded?
If so, then the window you are talking about is the main browser window (_parent) and preloadin cannot continue
Can you please change this
<a href="#" target="_parent" name="newwin" class="aa" onClick="this.href='player
to this
<a href="#" class="aa" onClick="window.location.r
no ther is no ifram in launch.cfm...
The only iframe is use in preload.cfm . I have called page "link.html" in that iframe. thats all..no where iframe is used.
I used iframe to keep link clickable even if images are loading in preload.cfm however it does not work really..
I mean still link remains unclickable while image starts dowloading. can please give me solution.
Business Accounts
Answer for Membership
by: mplungjanPosted on 2009-10-30 at 03:37:04ID: 25701619
We need to see the other code
Why are you using document.write and why are you closing the page with the script in the middle of executing another script?
That is not a safe way