SYMBIO
12-19-2002, 03:44 PM
I'v just learned in ASP that you can replace the ascii characters for Carriage return with anything you want(<br />).
I have a preview() function on my site and this takes the form.article.value and puts it straight into the preview window.
the preview function uses a HTML string.
here is bits of the code that i used and tried>
function preview()
{
//ascii=13
//satpal2="spero"
//satpal2=form.article.value
//satpal=satpal2.replace("s","C");
//satpal=String.fromCharCode(ascii);
HTMLstring='this is the article'+satpal+' see\n';
newwindow=window.open('','Preview','left=10,top=10,width=785,height=440,scrollbars=yes');
newdocument=newwindow.document;
newdocument.write(HTMLstring);
newdocument.close();
}
help anyone?
I have a preview() function on my site and this takes the form.article.value and puts it straight into the preview window.
the preview function uses a HTML string.
here is bits of the code that i used and tried>
function preview()
{
//ascii=13
//satpal2="spero"
//satpal2=form.article.value
//satpal=satpal2.replace("s","C");
//satpal=String.fromCharCode(ascii);
HTMLstring='this is the article'+satpal+' see\n';
newwindow=window.open('','Preview','left=10,top=10,width=785,height=440,scrollbars=yes');
newdocument=newwindow.document;
newdocument.write(HTMLstring);
newdocument.close();
}
help anyone?