So I found a solution using HTML as a buffer...
<body>
<input type="hidden" id="var1" value="<% ReadPLC("aspVar1");%>" />
</body>
<script>
var jsVar1 = document.getElementById('var1').value;
</script>
Chris, thanks for the quick replies... I have tried the replace method and no luck.
I was mistaken earlier. The error I recieve is "Unterminated String Constant" not "Expected ';'"
The ASP server lives on an Embedded device so there is no way for me to manipulate the ASP interperter... any...
The semicolon is required by the ASP server. Without the semicolon the ASP reports an error for an invalid function. I think the ASP function replaces that whole phrase before the html file is sent to the client. So javascript wouldn't even see the semicolon right?
Is there a way to delete a carriage return value that is returned by an ASP command?
I have a very VERY limited ASP server which only supports about 2 functions (Read/Write). Everything works fine for reading integer values, but when I try to read string values into a javascript variable there...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.