martindavey
Programmer
Hi,
We've re-written all our pages in JScript but are having problems with the following code.
This small example works fine in VBScript:-
<%
Dim MBRequest
Set MBRequest = GetObject( "script:" & Server.MapPath( "./admin/wsc/MetaBuilders.FileUp.wsc" ) )
reqVar = MBRequest("myVar"
%>
<h1>Hello: <%=reqVar%></h1>
<form>
<input type="text" name="myVar" /><br />
<input type="submit" />
</form>
But the following JScript fails with:
Object doesn't support named arguments
for the line: reqVar = MBRequest("myVar"
;
<%
var MBRequest = GetObject( "script:" + Server.MapPath( "./admin/wsc/MetaBuilders.FileUp.wsc" ) );
reqVar = MBRequest("myVar"
;
%>
<h1>Hello: <%=reqVar%></h1>
<form>
<input type="text" name="myVar" /><br />
<input type="submit" />
</form>
Any ideas why?
NB. We're using Fileup.wsc to upload pictures.
We've re-written all our pages in JScript but are having problems with the following code.
This small example works fine in VBScript:-
<%
Dim MBRequest
Set MBRequest = GetObject( "script:" & Server.MapPath( "./admin/wsc/MetaBuilders.FileUp.wsc" ) )
reqVar = MBRequest("myVar"
%>
<h1>Hello: <%=reqVar%></h1>
<form>
<input type="text" name="myVar" /><br />
<input type="submit" />
</form>
But the following JScript fails with:
Object doesn't support named arguments
for the line: reqVar = MBRequest("myVar"
<%
var MBRequest = GetObject( "script:" + Server.MapPath( "./admin/wsc/MetaBuilders.FileUp.wsc" ) );
reqVar = MBRequest("myVar"
%>
<h1>Hello: <%=reqVar%></h1>
<form>
<input type="text" name="myVar" /><br />
<input type="submit" />
</form>
Any ideas why?
NB. We're using Fileup.wsc to upload pictures.