View Full Version : Prevent other script from enabling a control

06-05-2006, 08:53 AM
I'v got something challenging... is there anyway i can prevent a conrol from being enabled on PageLoad even if there is a javascript ctrl.enable(); or ctrl.disabled = false; called for it? I have a feeling there isnt such a thing but i thought i'd try my luck with you guys...

Im implementing security on a page with a module that executes at runtime and disables certain controls on the page. However i dont want any of the other javascripts on the page to be able to re-enable these controls when they are called.


06-05-2006, 08:15 PM

06-05-2006, 10:15 PM
I personally would say do not include functionality that should not be there. If a user will never be able to use a button, do not show it. It is too easy for someone to use the address bar with a little JavaScript and enable a button.