Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Embedding: 'ready' event

Hi, John.
Indeed we are currently using page load to do all kinds of initialization of our basic services as well as configuring the particular page.

You could use dom mutation and look for nodes getting added to "editorContainer" but that seems kind of scary because some of those nodes could still appear before everything else is initialized.

Our js editor component fires "onInputChange" when it's fetching new content. You may get more than one of those (depending on how you are using coding.html) but I think most everything should be initialized by the time this event fires. I'm not sure how much hacking you've had to do to make the embed work, so I don't know if you have js code that has access to our js components in order to connect to this event. Do you need a pure DOM event? We could look at publishing some custom event on the editor dom node when we're done initializing.

I've cced you on a bug discussing the initialization sequence [1].

susan

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=334197
Inactive hide details for "John J. Barton" ---03/25/2011 09:34:32 AM---My embedding of coding.html suffers from timing problems"John J. Barton" ---03/25/2011 09:34:32 AM---My embedding of coding.html suffers from timing problems. I wire up to the page on web page "load",

From: "John J. Barton" <johnjbarton@xxxxxxxxxxxxxxx>
To: Orion developer discussions <orion-dev@xxxxxxxxxxx>
Date: 03/25/2011 09:34 AM
Subject: [orion-dev] Embedding: 'ready' event
Sent by: orion-dev-bounces@xxxxxxxxxxx





My embedding of coding.html suffers from timing problems. I wire up to
the page on web page "load", but I guess that coding.html is using
'load' to configure the page. If I get called first I lose.

I imagine that I should be looking for another event. I could use DOM
mutation events, but perhaps you have something better?

jjb
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/orion-dev

GIF image


Back to the top