/    Sign up×
Community /Pin to ProfileBookmark

event listener for binded data island

Hiya,

I’m not sure if this is going to make sense .. but … I’m wondering how I can know when my data island has finished binding in IE!?

I have a sourceXML and a resultXML dataisland with javascript pulling relevant nodes from the sourceXML and cloning them into the resultXML before loading into datafld’s setup in a table.

With the statusbar you can see the it is “loading dataset” but if I utilise an .HTA you don’t get to see that there is something going on bar the page loading up in front of your eyes.

I have a timer graphic displaying as the binding is initialised but am unable to pull when the page has fully loaded so as to remove the innerhtml image.

I am going to try out some of the ondomload code that I’ve found around the Net tommorrow, though believe that it will only catch the document having loaded. Am I right in thinking that the document will have been loaded anyway and the dataset is just “binding” to the page? That way – the ondomload functions won’t work. . .

Anyone have any other suggestions?

Any help is greatly appreciated.

Thanks!

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@troutauthorJun 05.2007 — Heya,

Yep, it's as I feared I couldn't get an event fired after the loading of the result dataisland from any of the domOnLoad code.

The datafld's loading must be rendered after the onload and or even the DOM itself and is merely re-rendering on another as yet unknown to me event etc.?!?

Anyone have any pointers?

Thanks for any reply.
Copy linkTweet thisAlerts:
@troutauthorJun 05.2007 — ^^ I should add that I've looked at readyState == 'complete' for the loading of the resultant dataisland but didn't manage to get a trigger - or at least believe I didn't...
Copy linkTweet thisAlerts:
@troutauthorJun 05.2007 — ^^ Just relooked at that and it fires on what must be the completion of the compilation of the resultant dataisland.

However, what I really need is an event triggered, if there is one??, when the resultant dataisland has finished loading/rendering.

i.e. the part where with a massive dataset IE displays "loading dataset" in the status bar.

*waffle waffle*
Copy linkTweet thisAlerts:
@troutauthorJun 06.2007 — Just incase anyone could give a monkey's tadger ?

I solved to a degree my issue by just taking the length of the resultant XML and dividing it by six and passing this value into setTimeout. It's works more or less to the rate at which the browser renders.
×

Success!

Help @trout spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...