Many Thanks all. Tobie, didn't think of using window (although silly me I do actually test for window.widgetName beorehand to check if the class exists), many many thanks.
Cheers Gareth On Jan 16, 10:50 am, Tobie Langel <[EMAIL PROTECTED]> wrote: > Try: > > var myWidget = new window[widgetName](widgetParam1, widgetParam2); > > best, > > Tobie --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
