+ Reply to Thread
Results 1 to 4 of 4

Thread: fmbadhandler and javascript

  1. #1
    Join Date
    Feb 2006
    Posts
    2

    Default fmbadhandler and javascript

    Hi. Great little script, but my form checkboxes pass this.checked to a javascript function with onclick.

    I start with something like:
    <input name="InputName" type="checkbox" value="CheckedValue" onclick="MyFunction(this.name,this.checked)">

    And when fmbadhandler processes things I get this:
    <input name="InputName" type="checkbox" value="CheckedValue" onclick="MyFunction(this.name,this.)">

    I can probably modify the code myself to disallow modifications to "checked" within on____="" declarations, but I figured that I should make you aware of this. Quite frankly, I'm surprised that I seem to be the first to stumble upon this.

    Thanks again for the great script.

  2. #2
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: fmbadhandler and javascript

    Hi,

    Thanks for the bug report.

    It's tough getting the patterns (regular expressions) exactly right for all the possibilities.

    As a workaround, move your "onclick" attribute to the beginning:
    HTML Code:
    <input onclick="MyFunction(this.name,this.checked)" name="InputName" type="checkbox" value="CheckedValue" >
    That should avoid the problem.

    We'll try to get a fix out ASAP.
    Last edited by russellr; 25-Feb-2006 at 06:34 AM.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: fmbadhandler and javascript

    Hi,

    Just an update on this....

    We've decided that we need to replace the regular expressions with a parse for the various tags.

    So, it's going to take some time to get this written.

    Did the workaround sort out the problem for you?
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  4. #4
    Join Date
    Feb 2006
    Posts
    2

    Default Re: fmbadhandler and javascript

    Yes. Moving the onAction statments to the front of the tag as directed did solve the problem.

    Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Javascript causing form to fail after upgrade to 8.02...
    By Tony.Jackson in forum Community Support
    Replies: 0
    Last Post: 14-Aug-2007, 03:49 PM
  2. javascript on success?
    By criuz in forum Community Support
    Replies: 2
    Last Post: 07-May-2007, 10:51 PM
  3. Javascript image reload for image verify
    By swaz in forum FormMail Subscription Support
    Replies: 4
    Last Post: 28-Aug-2006, 01:24 AM
  4. Checkboxes in JavaScript in conjunction with Formmail
    By Lesjo in forum FormMail Subscription Support
    Replies: 4
    Last Post: 15-Dec-2004, 11:46 PM
  5. Javascript and formmail: drop down list
    By bwv in forum FormMail Subscription Support
    Replies: 4
    Last Post: 05-Nov-2004, 11:18 PM

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