Solved

Fusebox/Submit Not Working in Netscape

Posted on 2002-07-02
5
305 Views
Last Modified: 2013-12-24
I'm using fusebox methodology and when I press Enter on a form, the Submit button doesnt work correctly.  I'll get an "Unrecognized fuseaction", only in Netscape, it works fine in IE.

for example, this will be in the form:
<form action="Index.cfm" method="post" name="Form" onSubmit="return ValidateForm()">

<input type="hidden" name="fuseaction">
<input name="cmdLogin" class=FormButton type="submit" value="Login" onClick="cmdLoginOnClick()">
</form>

which will call this:
function cmdLoginOnClick() {
    document.Form.fuseaction.value="validate login";
}

which is supposed to call Index.cfm:
<!--- decide what to do, based on fuseAction --->
<cfsetting enableCFoutputOnly = no >
<cfswitch expression = "#attributes.fuseAction#">
...
<!--- validate login --->
<cfcase value = "validate login" >
<cfinclude template = "qrySecurityCheck.cfm">
<cfinclude template = "qryUserGroups.cfm">
<cfinclude template = "actFormLoginValidate.cfm">
</cfcase>
...

but ends up here for some reason:
<cfdefaultcase>
<cfoutput>
Unrecognized fuseAction: #attributes.fuseAction#
</cfoutput>
</cfdefaultcase>
0
Comment
Question by:davidsanderson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:CFXPERT
ID: 7124838
When you say pressing ENTER do you mean the Enter key on the keyboard or clicking a submit button?  I'll assume you mean pressing the ENTER key on the board.  What happens if you click the submit button?  Does the form post without error?
0
 

Author Comment

by:davidsanderson
ID: 7124992
I mean the Enter key on the keyboard.  It works fine in Netscape when you actually click the button with the mouse.
0
 
LVL 5

Accepted Solution

by:
CFXPERT earned 50 total points
ID: 7125104
One thing is that you have an onClick statement on the submit button.  If you hit ENTER I don't think function cmdLoginOnClick() will be triggered.  Put your function call in the onSubmit area.  like so:

<form action="Index.cfm" method="post" name="Form" onSubmit="return ValidateForm(),cmdLoginOnClick()">

<input type="hidden" name="fuseaction">
<input name="cmdLogin" class=FormButton type="submit" value="Login">
</form>

Try that and see what happens.
0
 

Author Comment

by:davidsanderson
ID: 7127078
that's exactly what the problem is, netscape won't recognize the Enter key to execute the onClick event of a button.
0
 
LVL 5

Expert Comment

by:CFXPERT
ID: 7127698
Glad I could help ya out.  
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question