Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    May 2004
    Location
    Earth
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can anyone tell me why this is doing this??

    Hi all.

    Could someone have a quick glance over this and tell me if there's any reason I get the following behaviour - I've got this bit of script in a form submission table on my site, and every time I hit the "submit" button, I get a script error.

    However, if I change "javascript:document.details.submit" to "javascript:document.details.reset" then it works fine.

    I've got the same bit of script on another button in another area on the site, and that also works fine, so I'm a bit baffled.


    <tr>
    <td valign="top" class="style2"><a href="javascript:document.details.reset();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('clearform1','','Flash/clearform_On.gif',1)"><img src="Flash/clearform_Off.gif" alt="Reset Form" name="clearform1" width="104" height="77" border="0" id="clearform1"></a></td>
    <td><a href="javascript:document.details.submit();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('submit','','Flash/submit_On.gif',1)"><img src="Flash/submit_Off.gif" alt="Submit Details" name="submit" width="85" height="77" border="0"></a>
    </table>


    Thanks if anyone can help here. Maybe I cant see the wood for the trees.

    RR

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try:
    Code:
    <input type="image" src="Flash/submit_Off.gif" name="submit" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('submit','','Flash/submit_On.gif',1)">

  • #3
    New Coder
    Join Date
    May 2004
    Location
    Earth
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Ah! Top banana!

    Thats solved it,thanks a lot.

    RR


  •  

    Posting Permissions

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