Can you send us the hole code?
Without knowing anything else, i say that with modifiers you should code
something like this:
//..
modifiers: { input1: noun_arb_text, input2, noun_arb_text }
and them on the preview/execute:
preview: function (input, pblock, mods){
if(mods.input1 && mods.input2){
pblock.innerHTML = "http://example.com?query=" + mods.input1.text
+ "&query2=" + mods.input2.text
}
},
execute: function (input, mods){
if(mods.input1 && mods.input2){
var url = "http://example.com?query=" + mods.input1.text + "&query2=" +
mods.input2.text
displayMessage(url);
}
}
//...
Cheers!
On 11/25/08 6:25 PM, tlob wrote:
> Hi, I try to replace 2 nouns (inputs) in an URL. Like:
> example.com/?query={Input1}&other-part-of-the-url={Input2}&and-
> another.html
>
> it has something to do with the modifiers, cant get it to work.....
>
> Sorry, beginner question!
> Thx anyway!
> tom
> >
--
Fernando "Takai"
http://flickr.com/photos/supeertakai
http://fernandotakai.jaiku.com
Get Ubiquity: https://wiki.mozilla.org/Labs/Ubiquity/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---