very cool. ...another function he has on there, 'whenDOMReady', looks pretty slick as well: http://design-noir.de/webdev/JS/whenDOMReady/
On 6/4/07, Steve Loeppky <[EMAIL PROTECTED]> wrote: > > > Check out: http://design-noir.de/webdev/JS/loadScript/ > > His loadScript function works perfectly with all browsers. I have > encapsolated his logic into my own classes, and it has worked great. > > On Jun 2, 12:32 pm, "Thomas K. Nielsen" <[EMAIL PROTECTED]> wrote: > > > You could use unique IDs for each of your required JS files and then > > > one for the "Modules" or "Widgets" in your case.. > > > > > you could then call this like LoadJS(file, scriptid) --- // you would > > > need to modify the function of coarse... > > > > > That way you could be loading more than just one file per call and > > > you could load the dependent files as the first lines of the widget.js > > > > > Does that make any sense?? > > > > Sure it makes sense :) > > Thanks I will take a look at that. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
