Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Is it possible to get the text from browser location bar *before*navigation (e.g. not location.href)

Reply
Thread Tools

Is it possible to get the text from browser location bar *before*navigation (e.g. not location.href)

 
 
Alex Bird
Guest
Posts: n/a
 
      05-08-2008
Hi,
Possibly I am searching for the wrong thing, but my googling has been
futile.

I want to get the contents of the browser (FF) location bar *before* I
have navigated to that location. location.href / window.location have
not been set at this point.

Scenario: I want to be able to paste an address in, and hit a button
to change certain parameters and navigate to the page. I can do this
by popping up a dialogue box and pasting the address in, but that
isn't very clean, and precludes having several modifier bookmarklets.

This could help my debugging speed immensely!

Cheers
 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      05-08-2008
Alex Bird wrote:
> Possibly I am searching for the wrong thing, but my googling has been
> futile.


A quite pointless statement without telling what keywords you have used.

> I want to get the contents of the browser (FF) location bar *before* I
> have navigated to that location. location.href / window.location have
> not been set at this point.


You can't. This code would run in the sandbox which, literally, prevents
you from spying on the property.

> Scenario: I want to be able to paste an address in, and hit a button
> to change certain parameters and navigate to the page. I can do this
> by popping up a dialogue box and pasting the address in, but that
> isn't very clean, and precludes having several modifier bookmarklets.


I don't follow. As you can paste the address and hit a button, you can type
the keyword of the bookmarklet and paste the address as its parameter. You
can have any number of modifier bookmarklets this way. I currently use
about 100 of them.


HTH

PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$(E-Mail Removed)>
 
Reply With Quote
 
 
 
 
Alex Bird
Guest
Posts: n/a
 
      05-08-2008
On May 8, 6:35*pm, Thomas 'PointedEars' Lahn <(E-Mail Removed)>
wrote:
> Alex Bird wrote:
> > Possibly I am searching for the wrong thing, but my googling has been
> > futile.

>
> A quite pointless statement without telling what keywords you have used.


You're weird.

Thanks for answering the question though,

A.
 
Reply With Quote
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      05-09-2008
Alex Bird wrote:
> [...] Thomas 'PointedEars' Lahn [...] wrote:
>> Alex Bird wrote:
>>> Possibly I am searching for the wrong thing, but my googling has been
>>> futile.

>> A quite pointless statement without telling what keywords you have used.

>
> You're weird.


In this place, you are. See http://catb.org/~esr/faqs/smart-questions.html

> Thanks for answering the question though,


You're welcome.


PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse Location to Text line or Text line to location kuna.subramaniyam@gmail.com Javascript 2 04-14-2008 01:46 PM
Location, location, location =?Utf-8?B?VHJhY2V5?= Wireless Networking 2 02-17-2007 08:37 PM
Re: disable title bar, status bar, and address bar of a browser window John Hann ASP .Net 0 08-21-2004 05:07 AM
disable title bar, status bar, and address bar of a browser window Matt ASP .Net 0 08-21-2004 03:50 AM
Encrypit the query string value in location bar /Status bar idsplay Jawahar Rajan ASP General 5 07-17-2003 02:02 PM



Advertisments