I'm sure this is straightforward, but I haven't figured it out, yet. How do I get my listview to display within script? Here's the code I'm trying...

And no, I'm not sure of the syntax. Is there a good code repository anywhere? I can't seem to find many good VBScript links.

Thanks.

<HTML>

<HEAD>

<SCRIPT LANGUAGE=VBScript>

<!-- Hide from older browsers.

function init()
dim hdr
dim itmX

set hdr = document.frmTest.lvwTest.ColumnHeaders
hdr.Add ,"One","One",300
document.frmTest.lvwTest.ColumnHeaders.Add ,"Two","Two",300
Set itmX = document.frmTest.lvwTest.ListItems.Add (,"XXX","XXX")
itmX.SubItems(1) = "Two"

msgbox "Yummy"

end function

-->

</SCRIPT>

</HEAD>

<BODY Name=frmTest>

<OBJECT ClassID="clsid:58DA8D8A-9D6A-101B-AFC0-4210102A8DA7" Name=lvwTest Width=100 Height=100>
<PARAM Name=View Value=0>
<PARAM Name=Enabled Value=1>
</OBJECT>

<SCRIPT LANGUAGE=VBScript>
init()
</SCRIPT>

</BODY>

</HTML>