jetson
04-18-2005, 10:41 PM
I'm trying to get js to write some html to a static web page (text file). I'm having trouble inserting double quotes around an href url. Here's what I want to write out to a file (along with the rest of the html for the entire page):
<td align=left><a href="www.somewhere.com">Link</a>
However, the url string between the double quotes is stored in an array element and needs to be resolved when the file is written.
So, in order to write this string to a text file, I'm using something like this (I know it won't work as written):
fo.Write( '<td align=left><a href=" + v[i] + ">Link</a>' );
I've tried using the slash escape character to embed the double quotes with no luck. Any help with this code is appreciated.
Kenny
<td align=left><a href="www.somewhere.com">Link</a>
However, the url string between the double quotes is stored in an array element and needs to be resolved when the file is written.
So, in order to write this string to a text file, I'm using something like this (I know it won't work as written):
fo.Write( '<td align=left><a href=" + v[i] + ">Link</a>' );
I've tried using the slash escape character to embed the double quotes with no luck. Any help with this code is appreciated.
Kenny