Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Include time for running script and please wait-fu
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 14 April 2005 :  06:11:29  Show Profile  Visit Roger Fredriksson's Homepage
how is that done?. I have a xxx.js-script collecting and processing a large amount of data. The result is a table shown inside Snitz/Images latest portal forum. The page showing up ignores the time the script is running and therfore generation-time at the bottom of the page is annoying low for people waiting at least 3 times as long. Can this be done in a way showing exact time för generation?

Even if that is possible I need a calming Please wait message script, any idea where I can get one? Is the Please wait already in Snitz somewhere?


rf/www.avgifter.com

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 14 April 2005 :  06:34:29  Show Profile
The problem there is you're trying to add the time it takes the server to process a script to the time it takes somebody's browser to render a page. There's no easy way to do so other than reading the page generation time into a javascript variable then initiating a new, javascript counter before anything else on the page is processed and using the onload event to stop the javascript timer, add the two figures together and write them on screen somewhere.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 14 April 2005 :  07:10:24  Show Profile  Visit Roger Fredriksson's Homepage
1 000 thx, you saved me a lot of time to figure something out that I in the end wouldn´t be capable of doing anyhow. How about the Please wait - script, is there one in Snitz or should I search the net?

rf/www.avgifter.com
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 14 April 2005 :  07:20:49  Show Profile
You're welcome

Haven't I seen a loading message as part of Image's Portal Mod? I've definitely seen it on a couple of Snitz sites which I think were running it, will keep an eye out for you.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 14 April 2005 :  08:48:04  Show Profile  Visit Roger Fredriksson's Homepage
OK, I´ll ask the Image-team.

rf/www.avgifter.com
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 14 April 2005 :  18:09:25  Show Profile
How about adapting something like this to suit your needs Roger?: http://www.dynamicdrive.com/dynamicindex4/preloadimage2.htm

It seems to work well.

Cheers,

David Greening
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 14 April 2005 :  20:04:43  Show Profile  Visit Roger Fredriksson's Homepage
Exactly what I was looking for. It´s two o´clock in the morning here in Sweden. That explains perhaps why I didn´t get it to work as I´ve seen it work on other sites. I am using inc_header on the page and tried to put the script there but something went wrong. I'll fight it tomorrow. Thank you and good morning to you!

rf/www.avgifter.com
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 14 April 2005 :  20:08:54  Show Profile  Visit Roger Fredriksson's Homepage
impressiv use of Snitz on your site. I really like the look - professional, compact, modern design!

rf/www.avgifter.com
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 15 April 2005 :  04:04:04  Show Profile  Visit Roger Fredriksson's Homepage
Still failing to use the script, probably due to my poor knowledge in web-programming. I did however found an other one that I managed to go to work as I wanted: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6333&lngWId=4

rf/www.avgifter.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07