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 2 of 2
  1. #1
    Regular Coder feras_wilson's Avatar
    Join Date
    Jul 2005
    Location
    Sweden
    Posts
    129
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation Help Me With Script

    Hi!
    I need help to this:
    Why it deosn't work?
    Code:
    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Ny sida 1</title>
    <script>
    function kk() {
    location.href='Sida1.htm?ServerFilter=%22ID='+ myssferas.mmm.value +'%22'
    }
    </script>
    </head>

    <body>
    <form name="myssferas">
    <input type="text" size="24" name="mmm">
    <input type="submit" value="Sök" onclick="kk()"></form>
    </body>

    </html>

  • #2
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Code:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Ny sida 1</title>
    <script>
    function kk() {
    	window.location = 'Sida1.htm?ServerFilter=%22ID='+ document.myssferas.mmm.value +'%22';
    }
    </script>
    </head>
    
    <body>
    <form name="myssferas" onsubmit="kk();return false;">
    	<input type="text" size="24" name="mmm">
    	<input type="submit" value="Sök">
    </form>
    </body>
    </html>
    This should be what you are looking for, if you compare it to your original post, you will see the differences.

    Hope this helps.

    m_n
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper


  •  

    Posting Permissions

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