Hey there,

I'm desperately trying to define a function to be used onclick inside
the preview block of Ubiquity. So, the following (shortened) code for
preview:

preview: function(pblock, term) {
  [...]
  pblock.innerHTML = '<a href="#" onclick="test.Test();">Link</a>';
  [...]
}

And I'm trying to declare my own function:

var test = {
    Test: function() {
      CmdUtils.log( 'Erm...' );
    }
}

But it doesn't work. So, how can I run my own functions from the
preview block?

Thanks, Oliver
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to