Loading ...
Sorry, an error occurred while loading the content.

forms, submission, images, and properties

Expand Messages
  • rcissell@tampabay.rr.com
    I have the following form in my page:
    Message 1 of 1 , Sep 9, 2000
    • 0 Attachment
      I have the following form in my page:

      <form action="index.phtml" method="post" name="projectForm">
      <input type="hidden" name="page_id" value="22">
      <select name="blah">
      <option value="1">1</option>
      <option value="2">2</option>
      </select>
      <a href="javascript:void(view_project())"><img src="view.gif"></a>
      <a href="javascript:void(delete_project())"><img src="del.gif"></a>
      </form>

      In the head section of my page, I have:

      <script language="JavaScript">
      <!--
      function view_project()
      {
      document.projectForm.page_id.value=22;
      document.projectForm.submit();
      }
      function delete_project()
      {
      document.projectForm.page_id.value=37;
      document.projectForm.submit();
      }
      //-->
      </script>

      This form and these functions work beautifully in IE, but when I am
      testing with Netscape, I get the error: "document.projectForm has no
      properties" referencing the line
      with "document.projectForm.page_id.value=37;". Does anyone know what
      I need to change with my syntax or whatever to make this work with
      Netscape as well a with IE? Thanks in advance.

      Robert Cissell
    Your message has been successfully submitted and would be delivered to recipients shortly.