Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile jse 1.0 search results in iframe?

    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
    alexan

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    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=chang...src+javascript

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New to the CF scene
    Join Date
    May 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Eric,

    I looked up the google link.

    I found the reference you meant it all works now.

    Many thanks

    alexan
    Last edited by alexan; 05-06-2006 at 01:43 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •