Reply
Form Submit() Error...
Old 05-26-2006, 03:13 PM Form Submit() Error...
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Wireless Audio
Posts: 2,320
Name: Keith Marshall
Location: West Hartford, CT
I think I have been starring at this for too long, and I can't figure why the following is not working even though I had it working from another page.

The form will not submit in IE and flags a js error, FF javascript console says "document.imageManager.submit is not a function"

?? Any ideas - I know its something so simple I'll just kick myself...

HTML Code:
  <fieldset>
    <legend>Image Manager</legend>
    <form name="imageManager" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" />
      <p class="button">
      <input type="hidden" name="sid" value="<?php echo $_GET['sid']; ?>" />
      <input type="hidden" name="ws" value="<?php echo $imanagerWSFile; ?>" />
      <input type="hidden" name="fs" value="<?php echo $imanagerFSFile; ?>" />
      <input type="checkbox" id="overwrite" name="overwrite"<?php echo ($_GET['ox'] == 1) ? ' checked' : ''; ?> />
      <label for="overwrite">
        Overwrite exisiting images if already exists
      </label>
      &nbsp;&nbsp;&nbsp;
      <input type="submit" name="submit" value="Process Image" onClick="this.value='One Moment Please...';this.disabled=true;imageManager.cancel.disabled=true;document.imageManager.submit();" />
      <input type="button" name="cancel" value="Cancel" onClick="window.close()" />
      </p>
    </form>
    <div align="center">
      <?php echo '<strong>' . $imanagerWSFile . '</strong><br /><br />' . force_max_preview($imanagerFSFile, $imanagerWSFile); ?>
    </div>
  </fieldset>
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 06-07-2006, 04:52 PM Re: Form Submit() Error...
funkdaddu's Avatar
Web Design Snob

Posts: 636
Change the name of your submit button from "submit" to something else like "formsubmit". It's confusing the button named "submit" and the built-in function named "submit"
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Reply     « Reply to Form Submit() Error...
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12348 seconds with 12 queries