[Project_owners] Question

Evelio Tarazona Cáceres neoetc at gmail.com
Tue Nov 14 07:18:12 PST 2006


This object gURLBAr is only accessible in a .js of you extensión include in
the .xul file of you extension... I don't understand how you try to do...
greetz

On 11/14/06, Amin <amin.eft at gmail.com> wrote:
>
> type this in your addressbar !!!!
>
> javascript:alert('hi');
> you will see alert box that contain "hi"
>
> but !!
>
> type this one
>
> javascript:alert(gURLBAr.value);
>
> do you see a alert box that contain "javascript:alert( gURLBAr.value)" ?
> i dont see any thing
>
>
> On 11/9/06, Evelio Tarazona Cáceres <neoetc at gmail.com> wrote:
> >
> > ohh!! is more easy..... you can use:
> >
> > gURLBar
> >
> > it is a global var than is the Object XulElement you can get the value
> > do it:
> >
> > gURLBAr.value
> >
> > see the browser.js type chrome://browser/content/browser.js in the
> > adrresbar  ;0D
> >
> > and it was tested... :0D
> >
> > greetz from Paipa, Colombia!
> >
> >
> > On 11/9/06, Amin < amin.eft at gmail.com> wrote:
> > >
> > > i test it but doesn't work ??
> > >
> > > On 11/9/06, Evelio Tarazona Cáceres < neoetc at gmail.com> wrote:
> > > >
> > > > Hi, I am a newbie in it but... if you want to get the text of
> > > > adressbar see the browser.xul  file, in it you can see a textbox
> > > > with id "urlbar"...
> > > >
> > > > maybe you can do it:
> > > >
> > > > var adrbar = window.getElementsbyId('urlbar') ; //or
> > > > document.getElementsbyId('urlbar')
> > > > var txadrbar=adrbar[0].value ; //tada!!
> > > >
> > > > Luck!
> > > >
> > > > greetz from Colombia! ^_^
> > > >
> > > >
> > > > On 11/8/06, Amin < amin.eft at gmail.com> wrote:
> > > > >
> > > > > Hi
> > > > > I want to get the text of addressbar not url can any body help me
> > > > > ?
> > > > >
> > > > > _______________________________________________
> > > > > Project_owners mailing list
> > > > > Project_owners at mozdev.org
> > > > > http://mozdev.org/mailman/listinfo/project_owners
> > > > >
> > > > >
> > > > >
> > > >
> > > > _______________________________________________
> > > > Project_owners mailing list
> > > > Project_owners at mozdev.org
> > > > http://mozdev.org/mailman/listinfo/project_owners
> > > >
> > > >
> > > >
> > >
> > > _______________________________________________
> > > Project_owners mailing list
> > > Project_owners at mozdev.org
> > > http://mozdev.org/mailman/listinfo/project_owners
> > >
> > >
> > >
> >
> > _______________________________________________
> > Project_owners mailing list
> > Project_owners at mozdev.org
> > http://mozdev.org/mailman/listinfo/project_owners
> >
> >
> >
>
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20061114/aa78d7bc/attachment.html 


More information about the Project_owners mailing list