Welcome Guest ( Log In | Register)



3 Pages V  < 1 2 3 >  
Reply to this topicStart new topic
> Image Preloader With Progress Bar Status, Pure Client-Side JavaScript tested in 4 Browsers!
Iarkalwen
post May 5 2005, 10:37 PM
Post #11


Newbie [Level 2]
**

Group: Members
Posts: 28
Joined: 4-May 05
Member No.: 6,634



I've been looking for a tutorial for an image preloader!

Thanks! biggrin.gif
Go to the top of the page
 
+Quote Post
SystemWisdom
post May 6 2005, 12:27 AM
Post #12


Advanced Member
*******

Group: Members
Posts: 117
Joined: 3-May 05
From: A Canadian South of the 49th Parallel
Member No.: 6,544



Glad to hear you guys like it, thanks!

I finally have a web host again, Trap17! biggrin.gif

So I have posted a working sample of this script on my site. The sample is just a rough copy sample, once I get my site integrated with Trap17 the sample will be a part of my actual site.

View the Sample Progress Bar Here!

Enjoy! biggrin.gif
Go to the top of the page
 
+Quote Post
Kai
post May 28 2005, 03:46 PM
Post #13


Newbie
*

Group: Members
Posts: 2
Joined: 24-May 05
Member No.: 7,463



QUOTE(SystemWisdom @ May 5 2005, 05:27 PM)
Glad to hear you guys like it, thanks!

View the Sample Progress Bar Here!


Hi,

Very nice tutorial; much appreciated. In particular I like the CSS progress bar.

One minor problem though. The sample link works just fine in Firefox and IE, but doesn' seem to be working properly in Safari (Mac). According to the browser status bar, it it is pre-loading the images, although no visual progress is shown in the progress-bar. After pre-loading is done, it just stays on the pre-loading page. The only way to advance is by clicking the "Skip Intro" link.

Any ideas?

Kai
Go to the top of the page
 
+Quote Post
rvalkass
post May 29 2005, 11:38 AM
Post #14


apt-get moo
Group Icon

Group: [MODERATOR]
Posts: 2,056
Joined: 28-May 05
From: Hertfordshire, England
Member No.: 7,593
Spam Patrol



Thanks very much for this tutorial. I have seen others but thay have not worked as well or look as good as this script. I am astounded you are willing to provide this script for free, as I have seen others on the Internet costing upwards of $10. Thank you very much and good luck with any more coding you do! smile.gif
Go to the top of the page
 
+Quote Post
SystemWisdom
post May 29 2005, 02:42 PM
Post #15


Advanced Member
*******

Group: Members
Posts: 117
Joined: 3-May 05
From: A Canadian South of the 49th Parallel
Member No.: 6,544



QUOTE(Kai @ May 28 2005, 11:46 AM)
One minor problem though. The sample link works just fine in Firefox and IE, but doesn' seem to be working properly in Safari (Mac). According to the browser status bar, it it is pre-loading the images, although no visual progress is shown in the progress-bar. After pre-loading is done, it just stays on the pre-loading page. The only way to advance is by clicking the "Skip Intro" link.

Any ideas?


Thx for the input and I'm glad you liked it for the most part, but I have never had the opportunity to test or even view this script on a Mac. I am guessing Safari handles the DOM differently than other browsers... Now that I know there is a problem with Mac's Safari browser processing my script I will look into resolving the issue (and here I thought it worked perfectly! lol).

I am glad you pointed out the actual problems for me, which makes fixing it one step easier! I will reply as soon as I figure out a solution. Hopefully you can test it out again for me on your Mac Safari!! biggrin.gif


QUOTE(rvalkass @ May 29 2005, 07:38 AM)
Thanks very much for this tutorial. I have seen others but thay have not worked as well or look as good as this script. I am astounded you are willing to provide this script for free, as I have seen others on the Internet costing upwards of $10. Thank you very much and good luck with any more coding you do! smile.gif


I couldn't imagine charging people money for my tutorials (they probably wouldn't get read!), I mainly write them so that I can add them to my Resume/portfolio, maybe they will help land me a job!

I'm especially glad to see such positive feedback from this tutorial (makes me want to write more)!
Go to the top of the page
 
+Quote Post
Kai
post Jun 10 2005, 06:30 AM
Post #16


Newbie
*

Group: Members
Posts: 2
Joined: 24-May 05
Member No.: 7,463



QUOTE(SystemWisdom @ May 29 2005, 07:42 AM)

I am glad you pointed out the actual problems for me, which makes fixing it one step easier!  I will reply as soon as I figure out a solution.  Hopefully you can test it out again for me on your Mac Safari!! :D

*


Just let me know if you would like me to do any further testing, or provide additional info if needed to make your job easier to find a fix.

~ Kai
Go to the top of the page
 
+Quote Post
SystemWisdom
post Jun 13 2005, 12:42 AM
Post #17


Advanced Member
*******

Group: Members
Posts: 117
Joined: 3-May 05
From: A Canadian South of the 49th Parallel
Member No.: 6,544



I haven't figured it out yet sad.gif

Mac confuses me tongue.gif

Do you know any Javascript at all? It sounds like a few javascript functions are not being recognized by Safari, amd I am having alot of trouble finding out which ones.. Theoretically, it should work fine, unless Safari browsers haven't followed basic standards for DHTML.. sad.gif

Maybe it has to do with it being on a Mac? Did you test it with IE and Firefox from Mac too, or was that on Windows?

I am almost at the point of resolving to detect the Safari browser on Mac and just skip preloading altogether, so it doesn't cause problems... sad.gif

Well, ima keep looking for an answer, wish me luck! tongue.gif
Go to the top of the page
 
+Quote Post
nonon
post Jun 16 2005, 04:05 PM
Post #18


Member [Level 3]
******

Group: Members
Posts: 97
Joined: 30-November 04
From: Portugal
Member No.: 2,485



Well i will check this out cool.gif ...processing on the client side free's up the server and this script can come quite handy on slower connections blink.gif ...

Thanks m8, if it works wrong i will came back to you for help rolleyes.gif

Best Regards

Nuno
Go to the top of the page
 
+Quote Post
Riton
post May 15 2007, 10:02 PM
Post #19


Newbie
*

Group: Members
Posts: 1
Joined: 15-May 07
Member No.: 43,162



Hi

In fact, the problem is that Safari seems to not support self-reference in javascript class.
The two last variables in ImagePreload.prototype.OnLoad are marked as "undefined".

For those who wants to debug in Safari with MacOS, type "defaults write com.apple.Safari IncludeDebugMenu 1" on a terminal and then restart Safari. A "debug" menu will be present on the top of the screen.

I think it's a safari bug, but it should exists a workaround.

Regards,
Riton

QUOTE(SystemWisdom @ Jun 13 2005, 02:42 AM) *
I haven't figured it out yet sad.gif

Mac confuses me tongue.gif

Do you know any Javascript at all? It sounds like a few javascript functions are not being recognized by Safari, amd I am having alot of trouble finding out which ones.. Theoretically, it should work fine, unless Safari browsers haven't followed basic standards for DHTML.. sad.gif

Maybe it has to do with it being on a Mac? Did you test it with IE and Firefox from Mac too, or was that on Windows?

I am almost at the point of resolving to detect the Safari browser on Mac and just skip preloading altogether, so it doesn't cause problems... sad.gif

Well, ima keep looking for an answer, wish me luck! tongue.gif