PDA

View Full Version : JSE Search Engine Help


dtck
12-17-2002, 03:07 PM
Hi,

I need help with regards to JSE Search Engine script found on JavascriptKit site.

http://javascriptkit.com/script/script2/jse/index.shtml

My website is designed using frames and the search form for JSE search engine is loaded in one of the frame name="search"

I would like the results of the search be loaded in the frame name="main"

Is that possible?

As I am not a Javascript expert, I have pulled my hairs out after trying to figure out how to do that.

Will appreciate any help and suggestions.

Thanks in advance!
:)

Spudhead
12-17-2002, 05:18 PM
This is a bit of a shot in the dark, but:

change the form tag to something like:

<form name="whateverMyFormIsCalled" target="main">

That might work.

dtck
12-18-2002, 11:51 AM
Hi, thanks for the suggestion. Tried but it did not work :confused:

Perhaps it will help if you examin the form tag:

<form name="jse_Form" onsubmit="search_form(jse_Form);return false">

and also attaching the source code for the search function

Thanks in advance for the help!

glenngv
12-18-2002, 11:58 AM
function search_form(jse_Form) {
if (jse_Form.d.value.length > 0) {
document.cookie = "d=" + escape(jse_Form.d.value);
top.frames["main"].location.href = results_location;
}
}

dtck
12-19-2002, 11:32 AM
Thanks for all the help! :)

My problem is solved!