G
George Hester
I have this at the top of an ASP page:
<!--METADATA TYPE="TypeLib" NAME="Microsoft ActiveX Data Objects 2.6 Library" UUID="{00000206-0000-0010-8000-00AA006D2EA4}" VERSION="2.6"-->
This is so I can use the enums say for CommandType. I haven't finished the page but I'm wondering about those constants for example adCmdTable which is 2. But a 2 in VBScript is different then a 2 in JavaScript I think.
I have this:
<script runat="server" type="text/javascript" language="JavaScript">
// I know - I need the language attribute above also
//...
var cmdTmp = Server.CreateObject('ADODB.Command');
cmdTmp.CommandType = 2;
//...
</script>
but I would prefer to have this:
cmdTmp.CommandType = adCmdTable;
but I'm not sure if adCmdTable will make sense in JavaScript or am I just making a mountain out of a mole hill?
Should I do something like this if not?
var adCmdTable = <%=adCmdTable%>;
Thanks.
<!--METADATA TYPE="TypeLib" NAME="Microsoft ActiveX Data Objects 2.6 Library" UUID="{00000206-0000-0010-8000-00AA006D2EA4}" VERSION="2.6"-->
This is so I can use the enums say for CommandType. I haven't finished the page but I'm wondering about those constants for example adCmdTable which is 2. But a 2 in VBScript is different then a 2 in JavaScript I think.
I have this:
<script runat="server" type="text/javascript" language="JavaScript">
// I know - I need the language attribute above also
//...
var cmdTmp = Server.CreateObject('ADODB.Command');
cmdTmp.CommandType = 2;
//...
</script>
but I would prefer to have this:
cmdTmp.CommandType = adCmdTable;
but I'm not sure if adCmdTable will make sense in JavaScript or am I just making a mountain out of a mole hill?
Should I do something like this if not?
var adCmdTable = <%=adCmdTable%>;
Thanks.