Log in

View Full Version : Search Box code help.



ModernRevolutions
03-02-2009, 12:13 PM
Okay I am using the search box code from here (http://www.javascriptkit.com/script/script2/jse/).

I am trying to use it here (http://www.modernrevolutions.vivid-avenue.net) and get a search bar like this (http://www.outspoken-kate.com).

What did I do wrong? Or forget to add?

Snookerman
03-02-2009, 02:12 PM
The jse_form.js (http://www.modernrevolutions.vivid-avenue.net/jse_form.js) file doesn't exist. There could also be other issues. Try to follow the instructions provided in the doc.txt file.

Good luck!

ModernRevolutions
03-02-2009, 11:21 PM
The directions where confusing. The file is there now and I put the HTML in the results (http://www.modernrevolutions.vivid-avenue.net) page.

However, it is still not working... why does Javascript have to be so confusing!? lol

Nile
03-02-2009, 11:34 PM
In jse_script.js, you have to put the locations of your files and the keywords:


s[0] = "JSE^form.html^Enter JSE in the example above ...^open source, free, client side";
s[1] = "JSE DOCUMENTATION^doc.txt^JSE is a client-side local site search engine. Written entirely in JavaScript 1.3 it works with browsers from Netscape 4.7 to Microsoft Internet Explorer 6.0 ...^ faq, docs, instructions";

I suggest using PHP, considering you have to insert every page. (first you type the name of the document, then the location, then the description, then the key words, all separated by '^'s)

ModernRevolutions
03-03-2009, 12:34 AM
so your saying i have to add everypage by hand like that??? i will be here for days hahaha

Nile
03-03-2009, 12:35 AM
Yupp. :)

If you gimme a while, I can get a php one going for you... But like I said a while...

ModernRevolutions
03-03-2009, 01:00 AM
about how long is a while? like a few days or a month? hahaha i need on with less "hands on" work.

Nile
03-03-2009, 01:01 AM
I dont know how long a while is.. Try searching google for free php search scripts.