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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    cross browser problem with button

    Hi,

    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
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 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.
    Stephen
    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
    •