Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using ASP variables inside a javascript function.

Status
Not open for further replies.

sknyppy

Programmer
May 14, 1999
137
US
Can somebody tell me what is wrong with with my function?
I can't seem to get the javascript to work with the ASP variables.

<script language=&quot;javascript&quot;>
function InitializeMap() {

iniMap(&quot;EditorAuto&quot;, &quot;form&quot;, &quot;x&quot;, &quot;y&quot;, <%=Details(&quot;X&quot;)%>, <%=Details(&quot;Y&quot;)%>);

addLocationsGroup(1,&quot;Incident&quot;,&quot;
addLocation(1,1,<%=Details(&quot;X&quot;)%>,<%=Details(&quot;Y&quot;)%>,&quot;<%=Details(&quot;description&quot;)%>&quot;,&quot;&quot;);

showLocationsGroup(1);
}
</script>

Thanks,
Dave
 
Are we to assume Details is a Recordset object? codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
<insert witticism here>
 
Yes it's a recordset, but do you notice anything that might throw an error?

Dave
 
Only thing I can see wrong at a glance is an extra ; in this line

addLocationsGroup(1,&quot;Incident&quot;,&quot;
which means it wouldn't jump back into server-side script codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
<insert witticism here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top