View Full Version : jse 1.0 search results in iframe?

05-05-2006, 10:46 AM
Hi everyone,

I'm new here and I don't know anything about javascript.

So this is my problem!!! I downloaded jse1.0 and it works very nice only I want the search results to appear in another iframe.

My page has three iframes. In the left one I want the search form and in the middle I would like the results to appear.
There has to be a way to do this?? I looked all over the internet, found some things but I can't get it to work. And it is such a small code!?

Here is the code:

var results_location = "results.html";

function search_form(jse_Form) {
if (jse_Form.d.value.length > 0) {
document.cookie = "d=" + escape(jse_Form.d.value);
window.location = results_location;

Can anyone help me?
I do not know the script language.
And other languages are no option because of my ISP

I hope I'll hear from you all.

many thanks

05-05-2006, 02:35 PM
don't use window.location, instead use a reference to the iframe. If you are still clueless with that: http://www.google.com/search?q=change+iframe+src+javascript


05-05-2006, 05:08 PM
Hi Eric,

I looked up the google link.

I found the reference you meant it all works now.

Many thanks