You are probably correct, at least regarding the image sizes etc. Fortunately for the thing I'm working on at this moment I already know all the sizes for "container" elements like a div, for images. For images I use the asset plugin that fires events onload, so I have enough information regarding size (if I would need it).
Thanks for the ala link,will check it out. On Dec 1, 5:48 pm, ibolmo <[email protected]> wrote: > images, script, and object/embeds (I would expect) are not as > synchronous. > > For images you'd likely get the smallest DOM box model (with no > dimensions) until some bytes of the headers have been received by the > client. If you run the fx and you have an effect on the width/height > then you'd better consider this little dilemma. > > Same could go with embeds that you'd like to resize, for example > Youtube videos. I saw an article in alistapart, though, so you could > look into > it:http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ > > On Nov 30, 2:40 pm, Roman Land <[email protected]> wrote: > > > > > ewwww hate hacking my code.. especially for the sake of IE! > > > On Mon, Nov 30, 2009 at 9:33 PM, Rolf -nl <[email protected]> wrote: > > > Not tested in IE yet, but so far I've -indeed- found out that it's all > > > synchronous. I can run the fx init after calling the function that > > > creates the simple elements (4 or 30 doesn't matter). > > > > I remember working on a site in 20008 though where (at least for IE) I > > > had to put in some delays here and there to get things working. > > > > On Nov 29, 11:38 am, Rajeev J Sebastian <[email protected]> > > > wrote: > > > > On Sun, Nov 29, 2009 at 2:46 PM, Rolf -nl <[email protected]> > > > wrote: > > > > > I think I will have to do some testing to see how it goes. There's no > > > > > way really to fire an event when creating dom elements is complete. > > > > > That's why I mentioned some sort of periodical functions that runs and > > > > > checks if elements are "available" which in turn can fire an event... > > > > > ahwell.. > > > > > The best way to do this is to simply run your fx code right after > > > > constructing all your elements. As a previous poster wrote, > > > > modification of the DOM is done synchronously. > > > > > If for e.g., your JSON object is loaded using Request.JSON. then in > > > > the 'complete' event handler, construct your DOM and start the Fx. > > > > > Regards > > > > Rajeev J Sebastian > > > -- > > --- > > "Make everything as simple as possible, but not simpler." > > > - Albert Einstein
