On Tue, Dec 2, 2008 at 5:01 AM, svd <[EMAIL PROTECTED]> wrote: > > Thanks, I will try that! > > I tried to put JS code into templated defined as string, but it didn't > help, will try file template... BTW, if I want to distribute such > command, how the template will be distributed? > > Best Regards, > Slava
I have written the whole template in a string, and renderTemplate can render is well. my code is placed at github, http://gist.github.com/25703 hope is useful. ^_^ > > On Dec 1, 8:20 pm, "Douglas Nogueira" <[EMAIL PROTECTED]> > wrote: >> Take a look in the command "map", he defines a html template for the preview >> (map.html). >> I hope that helps! >> >> ---- >> Doug >> >> 2008/11/29 svd <[EMAIL PROTECTED]> >> >> >> >> > Hello, >> >> > I'm trying to make a new command which displays some data in preview >> > panel, and I'd like to have it "dynamic". Particularly, I have some >> > check boxes there and I need to perform some actions when checkbox >> > state is changes. I have something like this: >> >> > var text = "<input type='checkbox' onchange='myFunction();'/> >> >> > I have myFunction() defined in the Ubiquity's command editor, but it >> > is not accessible from the preview panel. Is it possible to access it >> > somehow? >> >> > I could assume that it is possible to define html template for the >> > preview and have JS function identified there, but I would like to >> > reuse code from the commands and do not want to have it duplicated. >> >> > Thanks. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
