The Syndk8 - Black Hat SEO Paradise
Fantomaster - Industrial Strength Black Hat SEO Tools
Affiliate Earners: Affiliate Programs
Home
Help
Search
Login
Register
RSS for SEOIdiot
Welcome,
Guest
. Please
login
or
register
.
January 09, 2009, 05:46:10 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home (Index)
Level 2 Cache: Speciality Items
JavaScript Discussion & Help
.complete
Pages: [
1
]
« previous
next »
Print
Author
Topic: .complete (Read 350 times)
JasonD
Expert
Offline
Posts: 100
.complete
«
on:
September 22, 2008, 02:24:32 PM »
FF 1,2 and 3 support it as do WebKit based browsers but IE doesn't.
Do you know a work around?
Thanks
Far too rarely visiting, Jason
Logged
perkiset
Olde World Hacker
Administrator
Lifer
Online
Posts: 5326
:sniffle: Humor was so much easier before.
Re: .complete
«
Reply #1 on:
September 22, 2008, 06:09:07 PM »
Do you need to know when a page has been completely parsed? If you put a tiny javascript at the very end of the page that sets a global variable, and set an interval at the top watching for that variable, then you'd know when the whole thing's been parsed. If you're wanting to know when everything has been downloaded (ie graphics and all) then it's quite a bit tougher. If it is *vital* to know, then you could replace images with source called via javascript, where you *can* get a completed notification when graphics have been loaded.
Another thing in IE is that nothing shows up on the DOM until *after* the whole page has been parsed and processed, so you could set an interval watching for an element on the DOM at the very bottom of the page (say, an invisible DIV id="waitForMe" or something) - when you see that element exist, then the page has been processed. BEAR IN MIND that FF, Safari, any WebKit browser will see that node on the DOM immediately after it's placement in the HTML script - only IE will make you wait for it.
Hope this bumps you in the right direction. I've had to do some similar things, perhaps if you could outline a little more of what you are working on I can assist.
/p
Logged
If I can't be Mr. Root then I don't want to play.
nutballs
Administrator
Lifer
Offline
Posts: 3525
Re: .complete
«
Reply #2 on:
September 22, 2008, 07:12:19 PM »
i also have done similar things. And I didnt know about .complete. lol
I did the image loader thingy. every required image on the page was retrieved via a serverside code page, and a counter would update. when the count had been met, i then initiated the next step which was to accept an ajax call and process the next stuff.
the thing i never tried, but thought of after the fact, was to src="javascriptfunction". then you could keep all the interaction client side.
Logged
JasonD
Expert
Offline
Posts: 100
Re: .complete
«
Reply #3 on:
September 24, 2008, 03:30:38 AM »
Thank you gents.
I have solved it using a timer - It's ugly and horrible but it is also "good enough" so that will do for now
Logged
perkiset
Olde World Hacker
Administrator
Lifer
Online
Posts: 5326
:sniffle: Humor was so much easier before.
Re: .complete
«
Reply #4 on:
September 24, 2008, 08:04:40 AM »
... and you SHOULD stick around more ya bastard... we all miss your brains and tricks.
Will we be seeing you in Ireland?
Logged
If I can't be Mr. Root then I don't want to play.
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Level 1 Cache: General Discussion
-----------------------------
=> Init() - New Member Introductions
=> Callback Routines
=> freemem() & garbage collection
=> All Things General Tech
=> All Things Apple
=> All Things Database
=> All Things *nix
=> All Things Windows
-----------------------------
Level 2 Cache: Speciality Items
-----------------------------
=> AJAX, Specifically: Techniques, Code & Examples
=> ASP & .NET
=> C/++/#, Java, Delphi and other heavies
=> ColdFusion
=> JavaScript Discussion & Help
=> Javascript Code Repository & Examples
=> Music Technology
=> PERL
=> PHP Discussions / Help
=> PHP Code Repository / Examples
=> Python/Lisp/Scheme/Erlang/Obscurities
=> Regex Discussion & Examples
=> SMF Discussion
-----------------------------
phpMyIDE
-----------------------------
=> Announcements & Updates
=> Support Threads
Perkiset's Place Home
Best of The Cache
phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's
Pinkhat's Perspective
cache
mart
coder
programmers
ajax
php
javascript
Loading...