Hello,
I have a saveas function in my page and when it saves as either a text or html it adds this:
line one [] []
now they dont look like two brackets facing eachother they look like two black squares, I just made those as an example.
I think it is because the files are being saved as unicode, and I tryed all the other language options and they don't save the string they save the entire html document...
heres my code:
Now is there anyway I can make this work without it adding the two black squares at the end of each line?
Perhaps a xml way or vbscript way or better javascript way...
thanks, and all help is most appreciated..
code one
p.s. this is a client side project.
I have a saveas function in my page and when it saves as either a text or html it adds this:
line one [] []
now they dont look like two brackets facing eachother they look like two black squares, I just made those as an example.
I think it is because the files are being saved as unicode, and I tryed all the other language options and they don't save the string they save the entire html document...
heres my code:
Code:
<script>
function save()
{
str = document.forms[0].content.value;
mydoc = document.open();
mydoc.write(str);
mydoc.execCommand("saveAs", false, " ");
mydoc.close();
}
</script>
Now is there anyway I can make this work without it adding the two black squares at the end of each line?
Perhaps a xml way or vbscript way or better javascript way...
thanks, and all help is most appreciated..
code one
p.s. this is a client side project.