Form controls (2001)
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Form controls (2001)




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Form controls (2001)  
Mark


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-25-04 02:44 PM

Okay Trevor, let's say I have the following code for view
mode, and use the API to pick up a hidden placeholder
value and populate the "IsChecked" variable:
<html>
<head>
<title>Test</title>
<script language="JavaScript" type="text/javascript">
var IsChecked = "1";    //populated via API
function setcheckbox(){
if (IsChecked == "1"){
document.myform.mycheckbox.checked = true;
}
}
</script>
</head>

<body onload="setcheckbox();">

<form name="myform">
<input type="Checkbox" name="mycheckbox">
</form>

<!-- hidden placeholder would be here -->
</body>
</html>

This is a simple example, but illustrates what I'm doing.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:01 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register