Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Submit button not working

New Here ,
Jun 08, 2006 Jun 08, 2006
I have a ColdFusion webpage that displays one of two submit buttons, depending on logic. One of the button submits the form as it should, the other does not. The page works on our Development and Test webservers, and was working on the Production web server, but now is not.

Both buttons do the same thing, which is submit the form. This is the code for the form header.

<form name="formname" action="webpagename.cfm" method="get">

Again, both submit buttons work on our Dev/Test servers, but one of the the buttons does not work on the Production server. Code for button not working:

<input name="Lock" type="submit" value="Approve & Lock"/>
<input name="Unlock" type="Submit" disabled="disabled" value="Unlock"/>

I think it must have something to do with the server, and not the page.

Any help is appreciated.
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 08, 2006 Jun 08, 2006
It sounds like you may have some mal-formed HTML on the page. I'd have http://www.netmechanic.com/products/HTML_Toolbox_FreeSample.shtml or some other service that validates HTML check it out. Since your page is a ColdFusion page (.cfm), load it into your browser, do a File > Save As and save it as a .htm file. Upload via FTP to a public Web site and give the validation service the complete URL where the page can be found.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 08, 2006 Jun 08, 2006
If the input is disabled, why would you expect it to do anything?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 08, 2006 Jun 08, 2006
Its the button that is 'enabled' that is not working.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 08, 2006 Jun 08, 2006
For what it's worth, the disabled syntax is wrong. It should simply be DISABLED, rather than DISABLED="disabled". Check out http://www.htmlhelp.com/reference/html40/forms/input.html for comments about this attribute. They claim it is poorly supported in browsers.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 08, 2006 Jun 08, 2006
For what it's worth, the disabled syntax is wrong. It should simply be DISABLED, rather than DISABLED="disabled". Check out http://www.htmlhelp.com/reference/html40/forms/input.html for comments about this attribute. They claim it is poorly supported in browsers.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 08, 2006 Jun 08, 2006
> For what it's worth, the disabled syntax is wrong. It should simply be
> DISABLED, rather than DISABLED="disabled".

Maybe YOU should check out the XHTML specification.

http://www.w3.org/TR/xhtml1/#diffs

Section 4.5

--
Adam
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 08, 2006 Jun 08, 2006
When you say the button does not work, do you mean it actually does not invoke a submission at all, or do you mean it goes to the action page but nothing happens?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 09, 2006 Jun 09, 2006
If you want to code to W3C XHTML recommendations, be my guest. For the rest of us, a bit of old fashion, works-with-all-browsers HTML is just fine.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 09, 2006 Jun 09, 2006
try taking out the second submit and seeing if for some reason it is interferring. post the rest of the code and someone should be able to help you... and Glen's question is also mine, when you say it doesnt work, does it do nothing at all? click -> nothing? or do you get an error?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 12, 2006 Jun 12, 2006
LATEST
> If you want to code to W3C XHTML recommendations, be my guest. For the rest of us, a bit of old fashion, works-with-all-browsers HTML is just fine.

Yeah, OK sunshine, whatever. The point was you're telling the OP his
mark-up is bung when in fact it's not.

Using non-shorted attribute/value pairings for the likes of disabled,
checked, selected, etc is just as valid in HTML as it is in XHTML, btw. I
mentyioned the XHTML spec because it's just more likely that the OP is
going for XHTML compliant mark-up (incidenally, you're the first person
I've ever known to not see that as a GOOD thing), given the code snippets
provided.

--
Adam
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 09, 2006 Jun 09, 2006
Try two things - Change the "name" of the submit button from "Lock" to something else. also remove the disable attribute, i dont why u're using it.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources