Web Browser Discussion - FlashPeak Online Forum

Web Browser Software Forum. Discuss FlashPeak software products: SlimBrowser, IntelliComplete, BlazeFtp, etc.
It is currently Sun Jan 21, 2018 12:27 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject:
PostPosted: Sun Feb 16, 2003 4:50 am 
Offline
Advanced Member

Joined: Sun Feb 09, 2003 9:51 am
Posts: 43
Just copy the following into notepad and save it has a .js file.....Then go to google or some other search engine and run the script. It will put it in the correct format for englist.ini Just another fun little SlimBrowser addon by davinci.

Copy below this line
--------------------------------------------------------------------------------------------------------------------------


// Name It

var Caption = prompt("Under what name would like this to be displayed?","Search Name");


// Grab Main Form Action (e.g /cgi-bin/search)

var MainAction = document.forms[0].action;


// Put Action in Correct Format

if (MainAction.indexOf("http://") == 0) {
Action = MainAction;
}
else if (MainAction.indexOf("/") == 0) {
Action = "http://" + location.hostname + MainAction;
}
else {
Action = "http://" + location.hostname + "/" + MainAction;
}


// Grab Method (POST or GET)

if (document.forms[0].method == "null") {
Method = "get"
}
else {
Method = document.forms[0].method;
}


// Grab Action Form Name (You must click on the Search Box!)

CurrentName = window.document.activeElement.name;


// Compile Final

Final = Caption + ";" + Action + "?" + CurrentName + "=$key" + ";" + Method;


// Output

alert(Final);


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 17, 2003 2:50 pm 
Offline
Advanced Member

Joined: Sat Jan 25, 2003 5:26 pm
Posts: 366
Good job. I guess I will do a search engine wizard too.

_________________
Stephen Cheng
FlashPeak Support
Email: support AT flashpeak.com


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 09, 2003 2:12 pm 
Offline
Advanced Member

Joined: Sun Feb 09, 2003 9:51 am
Posts: 43
Found it buried in the list.. lol


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 09, 2003 7:11 pm 
Offline
Advanced Member

Joined: Tue Mar 04, 2003 9:39 pm
Posts: 995
Location: Las Vegas
Nice. I have no clue how to do even the most rudimentary of programming.

Can you tell it to stick the text into the clipboard as well? Open englist.ini maybe? Or would that be pushing it?

_________________
Slimbrowser Demo Videos

Relationships are ours to make; we define them, day by day,
by who we choose to love and how we choose to love them.
And, by these choices, define ourselves. ~~~Richard N. Patterson


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 09, 2003 8:12 pm 
Offline
Advanced Member

Joined: Sun Feb 09, 2003 9:51 am
Posts: 43
It needs to be recoded I posted it to give a rough bases for others to work off of. If I got some free time later this week I can attempt to do that for you. I'm not that great with javascript I program in win32 languages such as vb, delphi, and am currently working with the new .net platforms.

But if i get some free time sure :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group