• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfml preloader, is it possible? please assist

Community Beginner ,
Aug 12, 2009 Aug 12, 2009

Copy link to clipboard

Copied

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.

TOPICS
Advanced techniques

Views

847

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 12, 2009 Aug 12, 2009

Copy link to clipboard

Copied

would cfflush help?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 12, 2009 Aug 12, 2009

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 12, 2009 Aug 12, 2009

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation