mikemai
09-22-2005, 03:17 AM
I need to set a JS string variable that can ignore carriage returns. I have a working example using a hidden form element:
<form name='nodeinfo>
<input type='hidden' name='myMetadata' value="$node.meta('myValues')">
</form>
<script>
var myString = document.nodeinfo.myMetadata.value;
</script>
Problem is this is limited to 512 characters.
This string is coming from an outside system and could be 1500 characters long. I was wondering how to place it in a hidden table and get the string from there.
Any help appreciated, particularly sample code.
-mike
<form name='nodeinfo>
<input type='hidden' name='myMetadata' value="$node.meta('myValues')">
</form>
<script>
var myString = document.nodeinfo.myMetadata.value;
</script>
Problem is this is limited to 512 characters.
This string is coming from an outside system and could be 1500 characters long. I was wondering how to place it in a hidden table and get the string from there.
Any help appreciated, particularly sample code.
-mike