Sign in to follow this  
Followers 0
LAttilaD

Sending Smart Keywords to Firefox

4 posts in this topic

I'm trying to create a utility which sends URLs to Firefox, using Firefox UDF by Thorsten Willert. A nice UDF, but it doesn't know something I would like to do.

If I type non-valid URLs in Firefox's address bar, it evaluates them into valid URLs: "bear" turns to a Google search and "rocket" to a Wikipedia article. A very comfortable feature. But when I send such queries with _FFOpenURL, they result in an empty page only.

Is there any solution to send text to the address bar directly and execute it, letting Firefox to discover what to do with it?

Thank you in advance.


Láng Attila D., LAttilaD.org

Share this post


Link to post
Share on other sites



Here is a try now I failed with:

_FFCmd("gBrowser.loadURI('"&$url&"');")

When $url was "albert einstein", what ought to lead me to the Wikipedia article on Einstein, I got an error saying

__FFSend: try{gBrowser.loadURI('albert einstein');}catch(e){'_FFCmd_Err';};

__FFRecv: _FFCmd_Err

_FFCmd ==> Error return value: _FFCmd_Err


Láng Attila D., LAttilaD.org

Share this post


Link to post
Share on other sites

By the way, finally I found in the Mozilla documentation that the feature I want to use is called Internet Keyword search:

http://support.mozilla.com/en-US/kb/Location+bar+search


Láng Attila D., LAttilaD.org

Share this post


Link to post
Share on other sites

I believe I've saved my problem. :) Firefox uses the Google Browse by Name service, so I added

http://www.google.com/search?ie=UTF-8&sourceid=navclient&gfns=1&q=

before the URL. Now it works.


Láng Attila D., LAttilaD.org

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0