Solved

Fusebox/Submit Not Working in Netscape

Posted on 2002-07-02
5
293 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
System Analysis 5 61
site launch date and last modified date 3 98
app server have enough resources... 2 52
Email not working after mx record created 8 42
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…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

840 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