![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveRe: Hidden tables and form
From: RobG <rgqld@iinet.net.auau>
Date: Wed Aug 03 2005 - 15:27:03 CEST
Nduul wrote:
Firstly validate your page, it has very old and depreciated code.
Here's your script with comments inserted:
> <script language="JavaScript">
The language attribute is depreciated, type is required
> <!--
HTML comments inside script tags are totally out of date, do not use them.
> function visualizza(quale) {
Break up long lines, if only for readability and test features before
When using the display attribute to hide or show parts of a table,
You should also test to ensure features are supported before
<URL:http://www.jibbering.com/faq/>
> }
Ditch comments.
> </script>
Below is your script tidied up. There's an extra function that will
But you still have a usability issue - when the page loads, your
I'll leave fixing that (and other related issues) to you.
<script type="text/javascript">
function visualizza(quale) {
function disableControls( f, flag ) {
-- RobReceived on Tue Oct 18 03:04:49 2005 |