I just loaded an external command called java that uses google to get
a java api... Now i wanted to do some modifications to it and i
noticed, that it contains:

jQuery.get( url, params, function(data) {
var numToDisplay = 3;
var results = data.responseData.results.splice( 0, numToDisplay );
pblock.innerHTML = CmdUtils.renderTemplate( {file:"google-
search.html"},
                                                  {results:results}
                                                );
      }, "json");

but it does not display anything in the preview...

after some googling I found

jQuery.get( url, params, function(data) {
var numToDisplay = 3;
var results = data.responseData.results.splice( 0, numToDisplay );
pblock.innerHTML = CmdUtils.renderTemplate( {file:"templates/google-
search.html"},
 
{results:results, searchTerm:searchTerm}
);
}, "json");

but this does nothing either... I can'tfind any help about templates,
and the few cases where i found them used were "makeSearch" commands
and this is just a normal preview...
Any hint what's wrong here?
--~--~---------~--~----~------------~-------~--~----~
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