|
-
Jun 8th, 2001, 04:47 AM
#1
Thread Starter
Lively Member
ASP inside local script
I want to write ASP indise local script tags so that I can make dynamic functions, obviously this is not possible because I tried doing it and i had errors, is there anyway around this. e.g.
<script language=jscript>
JScript here
<%
ASP code here
%>
JScript here
</script>
-
Jun 8th, 2001, 06:09 AM
#2
Black Cat
That should work. Just make sure your ASP is generating valid client side code that you're not trying to have your ASP script use or read any of the client side variables or script.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jun 8th, 2001, 12:06 PM
#3
Frenzied Member
Or instead of using a script tag literal, use Response.Write to create the script tag as well.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jun 10th, 2001, 09:50 AM
#4
New Member
It's not such a good method to use a scritpt inside another, that's why you have this problems. Respect this rule and problems we'll disapeared.
-
Jun 10th, 2001, 01:39 PM
#5
Frenzied Member
Rules like that are meant to be bent. Especially for creating dynamic dropdown lists. Or writing server side data into client side arrays so they can be accessed after the page is rendered.
Follow what JoshT and myself have said and you can do what your trying to do.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jun 11th, 2001, 03:38 AM
#6
Thread Starter
Lively Member
cheers....
cheers guys, i think i'll take the easy way out and write the remote script inside local script.
Thanks again.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|