Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



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

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
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
 
 
Register now for full access!
Old 06-07-2006, 05:52 PM Re: Form Submit() Error...
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.19642 seconds with 12 queries