enable/disable objects - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

enable/disable objects

namoralesnamorales Posts: 4Member

I've four dropdown and all should be disabled while the page is loading to prevent select in other list until the page is completly loaded.

The reazon is, the fist is a list of Regions, depend on the selection, the second list is filled with a countries, and depend on the selection, the third list is filled with a states, if the users selected your option correctly there is no problem, but if need to change the region, while the page is loading, (and the user don't give time to breathe) the countries and states contains the oldest items.

I was tried in onload event, in tags, after tag, after , after tags, to enable. But ever enable before is completly loaded.

please, es very important. if you can write directly to [email protected]

PD: sorry for my english but I speak, write, think, eat in spanish.


  • WeirdofreakWeirdofreak Posts: 439Member
    To disable a form element, set its disabled property to true.
  • namoralesnamorales Posts: 4Member
    : To disable a form element, set its disabled property to true.
    thanks friend, I do, but need to do while is loading and set enable just when the page load is finished.

    I tried disabling in a unload event, and no enable it, here can't test because is to fast the refreshing, my users whill be test it.

    Thanks any way, if have any other idea, will apreciate.

  • WeirdofreakWeirdofreak Posts: 439Member
    I'm not sure, but I think some browsers support the disabled attribute in the tag, so you could do and then undisable it onload, or you could make the form display:none (or visibility:invisible) and then change that to block/visible onload.
Sign In or Register to comment.