Figure 1 SQL Query and Output
The Query SELECT TOP 100 PERCENT dbo.Keywords.Keyword, dbo.Topics.TopicUrl
FROM dbo.Keywords INNER JOIN
dbo.RelatedTopics ON dbo.Keywords.KeywordID =
dbo.RelatedTopics.KeywordID INNER JOIN
dbo.Topics ON dbo.RelatedTopics.TopicID =
dbo.Topics.TopicID
ORDER BY dbo.Keywords.Keyword, dbo.Topics.TopicUrl FOR XML AUTO
The Output FakePre-0046cff79f81457d81c021cbf77f09f7-70209eaa8c714064a6c99508d0064c31 Figure 2 Disabling Checkboxes
<select id=district onChange='toggle_disable(this, 0, "state");'>
<option selected>choice 1</option>
<option>choice 2</option>
<option>choice 3</option>
</select>
<select id=state onChange='toggle_disable(this, 0, "district");'>
<option selected>choice 1</option>
<option>choice 2</option>
<option>choice 3</option>
</select>
<script language=jscript>
function toggle_disable( object, toggle_index, disable_obj )
{
// test based on passed in index
if ( object.options[toggle_index].selected != true )
{
//disable object by dom id
document.all.item(disable_obj).disabled = true;
}
else
{
// enable object by dom id
document.all.item(disable_obj).disabled = false;
}
}
</script>
Figure 3 Setting the Onsubmit Handler
function captureSubmit()
{
var i;
for (i = 0; i<parent.testpage.document.forms.length;i++)
{
parent.testpage.document.forms(i).onsubmit =
captureSubmitSink;
}
}
function captureSubmitSink()
{
timeFormSubmit(this);
}
|