Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if a control exists on the page?
Message
From
14/11/2006 12:00:07
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
General information
Forum:
Internet
Category:
Javascript
Miscellaneous
Thread ID:
01169510
Message ID:
01169538
Views:
7
Your welcome Dimitry, today I help you tomorrow you help me or another person.


>Alexandre,
>
>Thank you very much! You have been super helpful and I appreciate it so much.
>
>>
>>If (document.getElementById("mycontrol"))
>>   {
>>     javascript code here
>>    }
>>
>>>If you use document.getElementById("mycontrol") but control "mycontrol" does not exist or is invisible, the browser shows "Error on the Page" and terminates the javascript function.
>>>
>>>How can I determine if such and such control exist so that I don't get the error?
>>>
>>>Thank you.
Alexandre Palma
Senior Application Architect
Previous
Reply
Map
View

Click here to load this message in the networking platform