SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: submit() issues

  1. #1
    SitePoint Addict
    Join Date
    Jan 2002
    Location
    Omaha, NE
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    submit() issues

    I have to be missing something obvious with this simple script. When I click the Send Notification button I get the confirm dialog box to pop up but it then throw an error sayting the the object does not support the submit function! Any ideas on what I am doing wrong?

    All help is very much appreciated


    Code:
    <script language="JavaScript">
     function SendGridEmail()
     {
      if (confirm ("Are you sure you want to send the email concerning Grid Update Notifications?"))
       {
    	gridNotificationForm.GridEmailFlag.value = 1;
    	gridNotificationForm.submit();
    	  }
     }
    </script>
     
     
    <form method="post" action="emailGridReturnNotification.cfm" name="gridNotificationForm">
       <input type="hidden" name="GridEmailFlag" value="0">
    			<tr>
    				<td width="100%" align="left">
    					<table width="100%" class="navyBorder" cellpadding="0" cellspacing="0">
    						<tr class="tanBackground"><th align="left" class="pageSubHeader">&nbsp;&nbsp;Grid Update Notifications</th></tr>
    						<tr>
    							<td>
    		<table width="100%" class="basic">
    									<tr><td>&nbsp;</td></tr>
    									<tr>
    										<td width="2%">&nbsp;</td>
    										<th align="right" width="25%"><b>Display Notification:</b><input type="Checkbox" name="displaygridnotification" value="1" <cfif CheckGridParam.ParameterValue EQ "Y">checked</cfif>></th>
    										<td width="60%" align="center"><input type="button" name="notify" value="Send Notification" Onclick="SendGridEmail()"></td>
    										<td width="2%">&nbsp;</td>
    									</tr>
    		 <tr>
    		 <td width="2%">&nbsp;</td>
    										<td align="center" width="25%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" value="Update"></td>
    		 </tr>
    									<tr><td>&nbsp;</td></tr>
    								</table> 
    							</td>
    						</tr>
    					</table>
    				</td>
    			</tr>
    		</form>
    "Oh, you hate your job? Why didn't you say so? There's a support group for that.
    It's called EVERYBODY, and they meet at the bar."

    --Drew Carey

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My all time favorite! At least once a month...thanks, e!
    Code:
    <input type="submit" name="submit" value="Update">
    You just created a new property of your Form object: Form.submit.

    It now references a button. Out with the old (Form.submit()), in with the new - button()???

    Try calling a button... oh - button() - hey! button()...
    ::: certified wild guess :::

  3. #3
    SitePoint Addict
    Join Date
    Jan 2002
    Location
    Omaha, NE
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Man...I knew it was going to be something silly like that! Thanks for your help adios...
    "Oh, you hate your job? Why didn't you say so? There's a support group for that.
    It's called EVERYBODY, and they meet at the bar."

    --Drew Carey


Bookmarks

Posting Permissions

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