Hi elladi,
If you're inside a server side ASP string, and need to send a double quote to the JavaScript string, then you should double your double quotes, like this:
Code:
Dim myString
myString = "var myVar = ""Hello"";"
Response.Write(myString)
This will end up as
Code:
var MyVar = "Hello";
in the resulting HTML / Javascript.
I don't think you need to execute your code; if you write it out at the right location inside a client side JavaScript block using the server side Response.Write statement, your code will run automatically....:
Code:
<%
Dim myString
myString = "Bla bla bla, your menu code goes here"
%>
<html>
<head>
<script type="text/javascript">
<%= myString %>
</script>
<head>
... rest of the page goes here
Does this help?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Freak On A Leash by
KoRn (Track 3 from the album:
Follow The Leader)
What's This?