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

Re: [JavaScript] What is wrong with this code snippet?

Expand Messages
  • visagan_k
    This code is Working the Problem is the name of the submit button.
    Message 1 of 4 , Apr 30, 2003
    • 0 Attachment
      This code is Working the Problem is the name of the submit button.

      <FORM name="myform" action="" method="POST">
      <select name="MaxRows" size="3" onclick='document.myform.submit();'>
      <option value="5" >5</option>
      <option value="10" >10</option>
      <option value="25" >25</option>
      <option value="50" >50</option>
      <option value="100" >100</option>
      </select>
      <INPUT type="submit" name="Sunil" value="Submit">
      <INPUT type="reset" name="reset" value="Reset">
      </FORM>

      Regards
      Visagan.K
      Polaris Software Lab Limited
      766 Anna Salai
      Sakthi Towers - 2nd Floor
      Chennai - 600 006.
      Phone No 28525507 - Ext- 93 6411




      --- In javascript_official@yahoogroups.com, Garvin Casimir
      <khing2@y...> wrote:
      > when you say input type=submit , there is no need to
      > name it submit like you did here...just remove that
      > line. i am still wondering why it would give you that
      > error though...i believe it has something to do if a
      > function or method having the same name with an
      > element. i will do some testing.
      >
      > name="submit" is what is wrong with your code...
      >
      > --- sudheer_chvr <schakka@k...> wrote:
      > > Hi everybody,
      > >
      > > What is wrong with the below code snippet?
      > >
      > > I have been working on that in the last 3 days. I am
      > > getting this
      > > error:
      > >
      > > 'Error:Object doesn't support this method or
      > > property'
      > >
      > > <FORM name="myform" action="" method="POST">
      > > <select name="MaxRows" size="3"
      > > onclick='document.myform.submit();'>
      > > <option value="5" >5</option>
      > > <option value="10" >10</option>
      > > <option value="25" >25</option>
      > > <option value="50" >50</option>
      > > <option value="100" >100</option>
      > > </select>
      > > <INPUT type="submit" name="submit" value="Submit">
      > > <INPUT type="reset" name="reset" value="Reset">
      > > </FORM>
      > >
      > >
      > >
      > > It will be really grea if somebody can help me with
      > > this.
      > > Thank you in advance,
      > > Sudheer Chakka
      > >
      > >
      >
      >
      > =====
      > HTTP://SILASCO.PORT5.COM/TONES/
      >
      > __________________________________
      > Do you Yahoo!?
      > The New Yahoo! Search - Faster. Easier. Bingo.
      > http://search.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.