Skip to main content
Known Participant
August 12, 2009
Question

cfml preloader, is it possible? please assist

  • August 12, 2009
  • 1 reply
  • 893 views

Hello;

I have a page on a site that is mostly images. One big image cut up in pieces with a couple of cfwindows going in them.

I want to preload the page before it appears because it looks terrible when it is loading up. Is it possible to use a pre-loader for an html page to do this? Better yet is there an html preloader out there?

I am trying to use this code, but it is not cutting it.

<script type="text/javascript">

_cf_loadingtexthtml="<div align='center'><img src='hig_progcircle_pending.gif'/>";
_cf_contextpath="";
_cf_ajaxscriptsrc="/CFIDE/ajax";
_cf_jsonprefix='//';
_cf_clientid='CAEFC4EBBACACC9E9920EB79DFC39CE9';

</script>

anyone have a better idea or even know if what I want to do is possible?

thank you.

This topic has been closed for replies.

1 reply

Inspiring
August 12, 2009

would cfflush help?

Known Participant
August 12, 2009

How would I use cfflush to act as a preloader? would it help in making the page load all at once?

August 12, 2009

I think I know what you mean.

You want all the images to load on the client before "showing" the client the page, so the user experience is pleasant.

It would all be JS, this page has an example along the lines of what I'm thinking.

http://articles.techrepublic.com.com/5100-10878_11-5214317.html

Basically preload the images using image objects

using the onload event for the image object fire a function to set the .src value of your img tags to the image urls.

Byron Mann

mannb@hostmysite.com

byronosity@gmail.com

Software Architect

hosting.com | hostmysite.com

http://www.hostmysite.com/?utm_source=bb