Put a function at the very bottom of your HTML page (still inside <body> though) that always runs. Use this function to check the form setting and disable the appropriate drop down.

I use something similar to prepopulate a second drop down based on a value in the first select when you go into edit a record with 2 related fields.

Stephen

Robertson-Ravo, Neil (RX) wrote:

OK...I need clarifcation on this as I am not sure if its possible.....

I have two Select menus, Continent & Country....When I select Coutinent :
the country menu gets disabled as I do not want the user to select anything
from their.... The same is true for the Country....if they select Country,
then they cannot select Continent....(this obviously all works off
onChange.)

This all works great, and the search works, BUT when the user goes back via
the Back Browser button then both the select menus are now selectable, even
though the user selection is still present...

While I realise that this is standard HTML behaviour, is it possible to
prevent the user selecting the previously disabled menu?  I was thinking of
putting an onClick on their as well to check if the other Select menu has an
index selected etc....?

Is this possible? Or easy to prevent?

N



--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



Reply via email to