Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Thanked 0 Times in 0 Posts

    cross browser problem with button


    I have a button with code on it that sends the fname, lname and email address to a constant contact box. It works great in google chrome, but not at all in IE or Mozilla. Any help would be appreciated.

    What happens is after the user enters their name then email address and hit "instant access" it puts the info in the constant contact box and then sends then to a congratulations page. It looks like it is trying to do something in IE and firefox, but does nothing. Here's the link to the site: http://bit.ly/vsrl44

    It's the box on the right in the header.

    Thanks in advance.

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Sydney, Australia
    Thanked 662 Times in 651 Posts
    You are using <input type="image"> to create that button. The only values that vbutton passes are x and y values representing the position in the image where the mouse button was clicked to submit the form. Some browsers may send other values but those two are the only ones they are supposed to send for an image button.

    Presumably your server side code is testing a value that you are expecting to be passed by this button when the form is submitted and it doesn't exist in all the browsers.
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


    Tags for this Thread

    Posting Permissions

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