Solved

Fusebox/Submit Not Working in Netscape

Posted on 2002-07-02
5
267 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
  • 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 Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now