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
.
December 01, 2008, 02:38:36 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home (Index)
Discussion Boards
JavaScript
.complete
Pages: [
1
]
« previous
next »
Print
Author
Topic: .complete (Read 285 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: 5211
: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
Online
Posts: 3431
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: 5211
: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:
-----------------------------
Welcome to The Cache
-----------------------------
=> Init() - New Member Introductions
=> Efficient Cache Access Functions (aka User Tips)
=> I/O Protocols (Forum Rules)
=> Callback Routines
=> Coder's World Beat
=> The Tao of Programming
=> freemem() & garbage collection
-----------------------------
phpMyIDE
-----------------------------
=> Announcements & Updates
=> Support Threads
=> Tips, Tricks & Techniques
-----------------------------
Discussion Boards
-----------------------------
=> AJAX
=> ASP & .NET
=> C/++/#, Java, Delphi and other heavies
=> ColdFusion
=> Database Discussion (MySQL, Oracle and such)
=> General Discussion
=> JavaScript
=> Mac & iPhone Stuff
=> Music & Music Technology
=> PERL Coding & Best Practices
=> PHP
=> Python, Lisp/Scheme
=> *n[ui]x & OS-X
=> SMF Discussion
=> All things Windows
-----------------------------
Code Repository
-----------------------------
=> C / C++ / C#
=> ASP / .NET
=> Cold Fusion
=> Javascript & AJAX
=> Lisp (++Scheme) and such
=> PERL
=> PHP
=> Python
=> Regex
=> Shell Scripting
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...