Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
JavaScript problem
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
OS:
Windows XP
Divers
Thread ID:
01300544
Message ID:
01300639
Vues:
19
This message has been marked as a message which has helped to the initial question of the thread.
it should be:
document.getElementById("tblProInfo").style.display="none";
Note the .style...

It's also bad practice to directly reference controls like this. You should always check existance separately first...

+++ Rick ---


>Michael,
>
>Thanks a lot, there was a typo. However, now I'm still getting errors :( I see document.getElementById("tblProInfo") has no properties
>http://localhost:3432/FCAdmin/AddUsers/default.aspx
>Line 1
>
>I assume that for some reason it can not find tblProInfo :(
>
>But why if this is on the page.
>
>I have
>
>document.getElementById("tblProInfo").display="none";
>
>I guess I would have to revert back to Server side since I can not get working such a simple thing :(
>
>>>>OnClientClick='document.getElementByID("tblProInfo").style.visibility="hidden";document.getElementByID("lblProStat").style.visibility="hidden";' />
>>>>
>>>>Do you see what may be wrong here?
>>>>
>>>>I can, of course, do it on the Server instead, but I thought for this simple thing the client side code should work.
>>>>
>>>>BTW, one more small question - how to make hotkeys in ASP.NET ?
>>>
>>>I want to hide table and a label using JavaScript from the client. I'm sorry for being dumb, with the above code I can not make it to work.
>>>
>>>Does anyone have an idea?
>>>
>>>Thanks a lot in advance.
>>
>>Watch your case since javascript is case sensitive.
>>
>>It should be getElementById not getElementByID
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform