Microsoft Content Management Server - Form controls (2001)

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > February 2004 > Form controls (2001)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Form controls (2001)
Mark

2004-02-25, 9:44 am

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.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com