Solved

Fusebox/Submit Not Working in Netscape

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

20 Experts available now in Live!

Get 1:1 Help Now