?
Solved

Fusebox/Submit Not Working in Netscape

Posted on 2002-07-02
5
Medium Priority
?
309 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 200 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month7 days, 23 hours left to enroll

765 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