My vote goes to Bobby's solution...elegant and simple 

There is a typo in the example though
change:
document.getElementById('theJSMessage').style.display='none';
to:
document.getElementById('noJSMessage').style.display='none';

Andrew.

>You could set up your login page like...
>
><div id="noJSMessage" style="display:block;">You need javascript</div>
><div id="theForm" style="display:none;"><form name="login"...
>etc...>,/form></div>
>
>Then run some js that changes the display for each.
>
><script>
>document.getElementById('theJSMessage').style.display='none';
>document.getElementById('theForm').style.display='block';
></script>
>
>
>If the user doesn't have JS, the login page is a message that says You need
>JS. If they DO have JS, the login page hides the no JS message and displays
>the form but either way... application.cfc includes the login.cfm as usual.
>
>.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
>Bobby Hartsfield
>http://acoderslife.com 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293084
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to