submitting forms by code (sometimes)

Results 1 to 2 of 2

Thread: submitting forms by code (sometimes)

  1. #1
    Join Date
    Dec 1969

    Default submitting forms by code (sometimes)

    Using VBscript in code you can submit a form after doing other chores by<BR>&#060;FORM Name=frm Method=post&#062;<BR>&#060;input type=button name=codeandsubmit value=&#039;submit after other code&#039;&#062;<BR>..<BR>&#060;script language=vbscript&#062;<BR>function codeandsubmit()<BR> ... other code ...<BR> frm.submit()<BR>end function<BR>&#060;/script&#062;<BR><BR>On some pages this works FINE on other pages i get "object doesn&#039;t support this property or method" when the submit line is executed. How come???<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default The only time that I've..

    .. ever had issues with this is due to:<BR><BR> - Page not being loaded completely.<BR> - Invalid HTML.<BR><BR>Check for those 2 things and hopefully you&#039;ll see why your other pages do not work.<BR><BR>(Oh, and a side note - VBScript on the client-side isn&#039;t common and requires the user to use IE. JavaScript is the "defact-o" standard and is supported by a majority of the browsers out there.)

Posting Permissions

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