Jump to content

submit wont work.


xyn

Recommended Posts

hey.

 

My form is as follows:

<form name="viewPm" method="POST" action="{home}messenger/action.php">

 

and my javascript is:

  <select name="pmaction" class="pmdropm" onChange="document.viewPm.submit()">
    <option value="0">Select an action</option>
    <option value="1">Reply</option>
    <option value="2">Delete</option>
    <option value="3">Move</option>
    <option value="4">Flag unseen</option>
    <option value="5">Flag seen</option>
  </select> <input id="go" type="submit" name="submit" value="Go" class="buttonsm" onMouseOver="javascript:buttonCh(1,'go');" onMouseOut="javascript:buttonCh(2,'go');">

Link to comment
Share on other sites

are you wanting your select menu to submit your form when it is changed - that looks like what your trying to do - if so; try this:

 

<script language="javascript">
function actiontime()
{
document.getElementById('go').click();
}
</script>

<form name="viewPm" method="POST" action="{home}messenger/action.php">
<select name="pmaction" class="pmdropm" onchange="actiontime()">
    <option value="0">Select an action</option>
    <option value="1">Reply</option>
    <option value="2">Delete</option>
    <option value="3">Move</option>
    <option value="4">Flag unseen</option>
    <option value="5">Flag seen</option>
  </select> <input id="go" type="submit" name="submit" value="Go" class="buttonsm" onMouseOver="javascript:buttonCh(1,'go');" onMouseOut="javascript:buttonCh(2,'go');">
</form>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.