not work...
CmdUtils.CreateCommand({
name: "example",
icon:"http://thepiratebay.org/favicon.ico",
takes: {"input": noun_arb_text},
preview: function(previewBlock,input) {
Utils.parseRemoteDocument(
"http://thepiratebay.org/search/"+input.text+"/0/7/0", // URL
null, // post data
function(doc) { // success callback
//on n'affiche pas la premiere colone
jQuery(".vertTh",doc).css("display","none");
//on definit la couleur du fond de la ligne
jQuery("tr",doc).css("background","#F6F1EE none repeat scroll 0
0");
//on definit la couleur de l'autre ligne
jQuery("tr.alt",doc).css("background","#ccc none repeat scroll 0
0");
//on definit la couleur des lien
jQuery("a",doc).css("color","#000099");
//on n'affiche que les 10 premiers elements
jQuery("tr",doc).slice(10, 100).hide();
//on n'affiche pas les titres
jQuery("th",doc).slice(2, 3).hide();
//on n'affiche pas les bordure des images
jQuery("img",doc).css("border","0 none");
//on definit la couleur du text
jQuery("*",doc).css("color","#000099");
previewBlock.innerHTML = <base href="http://url.of.your/choice/"/
>.toXMLString() + jQuery("#main-content", doc).html();
},
function() { // error callback
previewBlock.innerHTML = "Error!";
}
);
}
});
On Feb 1, 5:24 pm, satyr <[email protected]> wrote:
> An E4X with single node returns its content when concatenated, in this
> case ''.
> Use XML#toXMLString or plain string.
>
> <base href="..."/>.toXMLString() + ...
>
> '<base href="..."/>' + ...
>
> > By the way, can we inspect code in the windows with firebug?
>
> Not in Ubiquity's panel, I guess. Though you could inspect it by
> opening in new window instead of inserting into the preview block.
> Try:
>
> Utils.openUrlInBrowser('data:text/html,'+ htm);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---