WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-15-2007, 03:41 PM
incrediblehelp's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,654
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default FireFox Email Form Issues

I was wondering if someone could help me out with this FireFox issue. The email form is below:

Contact Dr. Abramson

It works fine in IE browser versions but seems to get a error in FireFox. Here is the error that pops up when filling out the the forms with info:



I am not the designer just helping them with SEO. Any ideas?
Reply With Quote
  #2 (permalink)  
Old 11-15-2007, 05:19 PM
Dubbya's Avatar
WebProWorld 1,000+ Club
 

Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,261
Dubbya RepRank 3Dubbya RepRank 3
Default Re: FireFox Email Form Issues

Not a lot of time to mess with this just now, but for what it's worth, here's my .02

The SendMsg form validates properly but is trying to submit the login form along with it. There's a problem within the validation routine.


Check your JavaScripts.
__________________
Printer ink, inkjet & toner cartridges in Canada
"Price-wise printing supplies"
inkjetOasis.ca
Reply With Quote
  #3 (permalink)  
Old 11-16-2007, 04:15 PM
incrediblehelp's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,654
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default Re: FireFox Email Form Issues

Maybe Dubbya, but not sure why it only gives me issues in FF and not IE though.
Reply With Quote
  #4 (permalink)  
Old 11-19-2007, 10:10 AM
wige's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jun 2006
Location: United States
Posts: 1,782
wige RepRank 4wige RepRank 4wige RepRank 4wige RepRank 4
Default Re: FireFox Email Form Issues

The function MM_validateForm() is, well my head hurt trying to read it. I would advise your client to rewrite the function to validate each form element individually instead of treating it like an array and looping through. Who knows what fun someone could have injecting unexpected data into that script. Honestly, I would expect a function written like that to break on different browsers. It looks like a generic function that was downloaded from another site and reused.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #5 (permalink)  
Old 11-19-2007, 10:48 AM
Dubbya's Avatar
WebProWorld 1,000+ Club
 

Join Date: Nov 2006
Location: Steinbach, Manitoba, Canada
Posts: 1,261
Dubbya RepRank 3Dubbya RepRank 3
Default Re: FireFox Email Form Issues

This JavaScript was most likely written by DreamWeaver... quick and easy way to validate a form but can be quite problematic, especially when placed on a page with multiple forms, as in this case.

I've always found that IE is a little more forgiving than FireFox when it comes to form submissions, so this doesn't surprise me.

AS Wige said, probably best off to rewrite the validation routine. I find it confusing as well since the form passes values in the onclick event.

Code:
<input name="Submit" type="submit" onClick="MM_validateForm('EMAIL','','RisEmail','EMAIL2','','RisEmail','USERNAME','','R','MESSAGE','','R');return document.MM_returnValue" value="  Send  ">
Around here, we usually validate the form with an onclick event as well, but specify that it return true or false. If it validates, it submits, if not, it fires an alert.

For example:
Code:
<form name=form1 action=address.asp method=post onsubmit="javascript:return ValidateForm(this)">
Here's a link to the javascript:
CodeToad - Javascript Form Validation function.
__________________
Printer ink, inkjet & toner cartridges in Canada
"Price-wise printing supplies"
inkjetOasis.ca
Reply With Quote
  #6 (permalink)  
Old 11-19-2007, 11:33 AM
incrediblehelp's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,654
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default Re: FireFox Email Form Issues

thanks for the help guys, will forward to the client.
Reply With Quote
  #7 (permalink)  
Old 11-19-2007, 02:45 PM
mikmik's Avatar
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 3,406
mikmik RepRank 1
Default Re: FireFox Email Form Issues

Yeah, client side validations is quickest, and safer. Defintely do not add input into arrays, strip everything in php as well, before processing.
__________________
What I am is what I am, are you what you are, or what.
Eddie Brickel
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS alignment issues between FireFox and IE .. any ideas Spectur Graphics & Design Discussion Forum 18 12-12-2006 02:17 PM
Form Drop-downs do not work in Firefox richkoi Graphics & Design Discussion Forum 8 05-01-2006 07:13 PM
Firefox OK, IE issues...whats new! incrediblehelp Graphics & Design Discussion Forum 16 01-06-2006 04:55 PM
Firefox issues DIRTYDISCO Graphics & Design Discussion Forum 3 03-23-2005 02:09 AM
Corss Browser Issues - Style Sheets is Mozilla/Firefox staceman Submit Your Site For Review 0 09-02-2004 11:16 AM


Search Engine Optimization by vBSEO 3.2.0