Ohh dear, that was a silly mistake - the CmdUtils call obviously needs to be wrapped in a function, or it'll be the return value of the call that gets assigned to Test (thus the run on load)
Also, I realized that "global" js is stored in window, not html (which was what I was doing), and I can't really figure out how to get hold of that from the preview code... Anyways, Satyrs solution is better I think, so this is probably a moot discussion :-) On Sat, May 2, 2009 at 4:28 PM, Alphawolf <[email protected]> wrote: > > Thank you guys for your quick replies! satyr's solution works for me, > while Christian Sonne's solution outputted 'hmm' every time the > preview block was reloaded. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ubiquity-firefox" 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/ubiquity-firefox?hl=en -~----------~----~----~----~------~----~------~--~---
