25 users online (2 members and 23 guests)  


  Results 1 to 1 of 1

Related

  1. Needing help like usual =/    Forum: HTML Forum
    Replies: 2
  2. New and needing advice and information.    Forum: Introduce Yourself
    Replies: 2
  3. i'm a newbie    Forum: Web Hosting Forum
    Replies: 2
  1. #1
    joolzg's Avatar
    New User

    Status
    Offline
    Join Date
    Jun 2007
    Posts
    1

    Newbie needing help

    Generated Code posted below.

    What i am trying to do is to make the dynamic page be updated whenever the checkbox is changed.

    I want to be able to diable all controls after the checkbox.

    Now i can do this in my c code which produces the code but when the user changes the checkbox he has to save (submit) the page and then i refresh the page with the changes, i would like to be able to refresh the page automatically when they change the state of the checkbox.

    any ideas?

    joolz

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/htm14/strict.dtd">
    
    <html>
    
    <head>
    
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    <meta http-equiv="pragma" content="no-cache">
    
    <title>Input</title>
    
    <script type="text/javascript">
    
    <!--
    
    window.onload=function()
    
    {
    
      document.getElementById('cb_input_transfer').onclick.function()
    
      {
    
        alert( 'clicked');
    
      }
    
    }
    
    //-->
    
    </script>
    
    <link href="Style.css" rel="stylesheet" type="text/css">
    
    </head>
    
    <body>
    
    <h1>Input Settings</h1>
    
    <form name="input" method="get">
    
    <table>
    
    <tr>
    
      <td>Region:</td>
    
      <td colspan="2">
    
        <select name="input_region" size="0">
    
          <option value="0" selected="selected">Europe</option>
    
          <option value="1">China</option>
    
          <option value="2">USA</option>
    
          <option value="3">Canada</option>
    
          <option value="4">Japan</option>
    
          <option value="5">Austrailia</option>
    
          <option value="6">Italy</option>
    
        </select>
    
      </td>
    
    </tr>
    
    <tr>
    
      <td>Rf Channel:</td>
    
      <td colspan="2">
    
        <input name="input_rf" value="22" size="3">
    
      </td>
    
    </tr>
    
    <tr>
    
      <td>Fullstream:</td>
    
      <td colspan="2">
    
        <input type="Checkbox" id="cb_input_transfer" name="input_transfer" value="0"  onchange="documents.forms[0].submit()">
    
      </td>
    
    </tr>
    
    <tr>
    
      <td>Channel:</td>
    
      <td colspan="2">
    
        <select name="input_name" size="0">
          <option value="0">SVT2 Sydnytt</option>
          <option value="1">SVT24 Sydnytt</option>
          <option value="2">.SVT2 V.stnytt</option>
          <option value="3">SVT1 Tal txt</option>
          <option value="4">SVT2 Tal txt</option>
          <option value="5" selected="selected">SVT1</option>
          <option value="6">Barn/Kunskapsk.</option>
          <option value="7">SVT Extra</option>
          <option value="8">Boxer Navigator</option>
        </select>
      </td>
    </tr>
    <tr><td colspan="3"><input type="Submit" value="save"></td></tr>
    </table>
    </form>
    </body>
    </html>
    Last edited by vinyl-junkie; 06-08-2007 at 07:41 PM. Reason: Added code tags



Tags for this Thread