I am not trying to create a command.
Im only using ubiquity as a normal user.
I bring it up with ctrl+space and type, and in that box i cannot type
CmdUtils.getWindow.location.href ?

On Jan 9, 4:10 pm, "Christian Sonne" <[email protected]> wrote:
> On Fri, Jan 9, 2009 at 4:04 PM, pellefjant <[email protected]> wrote:
>
> > I meant like a variable i could use when i use other commands. when i
> > bring up ubiquity with ctrl+space it would be nice to be able to use a
> > variable like the this variable only it contained the current url.
>
> > I know i can select the current url and 'this' becomes that value but
> > if i wanted to select some other text and still use some other url
> > would be nice.
>
> Unless I'm still misunderstanding you, as I said in the first mail:
> CmdUtils.getWindow().location.href will give you the current url
>
>
>
> > Thanks
>
> > On Jan 9, 12:39 am, "Christian Sonne" <[email protected]> wrote:
> > > On Thu, Jan 8, 2009 at 10:06 PM, pellefjant <[email protected]>
> > wrote:
>
> > > > Hi!
>
> > > > Is there a variable i can use in when i type commands that holds the
> > > > current tabs url?
>
> > > Hi Per
>
> > > You can use CmdUtils.getWindow().location.href to access the current url
>
> > > > For example i use Ubiquity to add tasks to Remember The Milk.
> > > > I usually then select a header and pull up ubiquity and type "rtm-add
> > > > Buy this".
> > > > It would be nice if i was able to include the url to the in this case
> > > > book im going to buy like this:
> > > > "rtm-add Buy this from $url"... or something
>
> > > This guide might be of help too:
> >https://wiki.mozilla.org/Labs/Ubiquity/Ubiquity_0.1_Author_Tutorial#C...
>
> > > -- cers / Christian Sonne
--~--~---------~--~----~------------~-------~--~----~
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