basball321
Programmer
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 is a carriage return at the end and it throws an error. Here is my command:
var jsVar1 = '<% ReadPLC("aspVar1");%>';
and this is what what I get when the ASP command returns the String 'teststring':
var jsVar1 = 'teststring
'; <--carriage return???
The error from IE is "Expected ';'"
Any Ideas on how to eliminate the carriage return? I've tried the backspace character, delete character, and about everything in between.
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 is a carriage return at the end and it throws an error. Here is my command:
var jsVar1 = '<% ReadPLC("aspVar1");%>';
and this is what what I get when the ASP command returns the String 'teststring':
var jsVar1 = 'teststring
'; <--carriage return???
The error from IE is "Expected ';'"
Any Ideas on how to eliminate the carriage return? I've tried the backspace character, delete character, and about everything in between.