| | |
Javascript/HTML problem!!!
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2003
Posts: 3
Reputation:
Solved Threads: 0
When I disable my webpage the text in my edit fields duplicates. e.g. ABC changes to ABCABC. THis only seems to happen when I have my edit fields in a <table>. A sample of my code is provided. I'd appreicate any help. Thanks, B.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<html> <head> <title>Test</title> <script type="text/javascript"> <!-- function disableForm(form) { alert('disable form'); form.disabled=true; } // --> </script> </head> <body> <form name="formname"> <table> <tbody> <tr> <td> <input type=edit name="textinput" value="abc"/> </td> </tr> <tr> <td align=left>input</td> <TD align=left><input type=edit name=userName>* </TD> </tr> </tbody> </table> <input type="button" value="test" onclick="java script:disableForm(this.form);" /> </form> </body> </html>
what does this page actually suppose to do cause from what i can see it works and runs on my computer after i removed from line please if that doesnt do it can you explain what the page does so when i take it and run it i know if its working right.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
java script:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<input type="button" value="test" onclick="java script:disableForm(this.form);" />
I have to ask the same.
What do you want the page to do.
The formating is kind of wacky, but otherwise, if you remove the JavaScript: and the ending ";" as big_k105 said, it works fine, according to your posted code/function implementation.
What do you want the page to do.
The formating is kind of wacky, but otherwise, if you remove the JavaScript: and the ending ";" as big_k105 said, it works fine, according to your posted code/function implementation.
•
•
Join Date: Jul 2003
Posts: 3
Reputation:
Solved Threads: 0
Sorry! I posted the wrong code!! I have since adjusted it. It is just a very rough sample of something I'm working on, I know the formatting is not right in some places. Anyway what I basically want to try to do is to disable the from. The problem I am having is that when my fields are inside a table the text duplicates when the form is disabled. You should be able to see that if you run my now adjusted code.
Thanks, B
Thanks, B
![]() |
Similar Threads
- Write a JavaScript/HTML program that inputs two integers a and b (JavaScript / DHTML / AJAX)
- Removing javascript from html (Python)
- mixing php, javascript and html: please help (PHP)
- Flash/Javascript/HTML code for gallery page (Web Development Job Offers)
- Javascript + HTML DOM problem (JavaScript / DHTML / AJAX)
- Help modify some JavaScript/HTML (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Scrolling On/Off issue
- Next Thread: Image Trouble
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug captchaformproblem checkbox close codes createrange() css cursor debugger decimal dependent disablefirebug dom download dropdown editor element engine error events explorer ext file firefox form forms frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe index internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp jump listbox maps masterpage math media microsoft mp4 object onmouseoutdivproblem onreadystatechange paypal pdf php player position programming progressbar prototype redirect regex runtime safari scale scriptlets search security select size software sql text textarea unicode w3c window windowofwords windowsxp wysiwyg \n





