[Proto-Scripty] PeriodicalExecuter loading scripts dynamically - in order

2010-01-13 Thread gingerbbm
Dear all I am loading a number of JavaScript files dynamically by appending to the head/ element. To ensure they're added in the correct order I came up with the following code which uses a PeriodicalExecuter to step through an array of script names as and when an anticipated object in each

[Proto-Scripty] Re: PeriodicalExecuter loading scripts dynamically - in order

2010-01-13 Thread gingerbbm
Fantastic! Thank you T.J. :) Both modifications were required and the checkObjExists() function is dead handy. I really am very grateful because this is the best solution to my dynamic-loading requirement. I wanted to avoid having to rely on concatenating several scripts into one (although some

[Proto-Scripty] Effect.BlindDown on DIV with dynamic content

2009-06-18 Thread gingerbbm
Dear all I have a DIV that gets toggled using BlindDown and BlindUp as the user makes a selection from a dropdown list. The DIV contains a number of DIVs that correspond to the options in the dropdown list. Prior to calling Effect.BlindDown(), all the contained DIVs have their display style set

[Proto-Scripty] evalJSON hangs IE

2008-11-13 Thread gingerbbm
Dear all I'm looking for inspiration. Take a look at this code: http://pastie.org/313941 In a simple HTML page this does what one would expect. But the exact same code on a page in my application hangs IE7 on the evalJSON() line (eventually I get a Stop running this script? prompt). I would

[Proto-Scripty] Re: evalJSON hangs IE

2008-11-13 Thread gingerbbm
Looks like Prototype 1.6.0.3 is conflicting with an earlier version that has been integrated into another app I'm using - MapGuide Fusion. Is there a way to run two different versions alongside each other?! --~--~-~--~~~---~--~~ You received this message because