Page source as string

F

F@yy@Z

Hi
I am facing a problem working with string. Actually I am getting source of
one html page and wrting to another page before writing I am replacing all
(double ") with (single ') otherwise it gives syntex error. Its writing and
I can see new page but no javascript works as it messed up all strings,
parameters etc.
Is there any way to manage this source as string in javascript.
Any solution.

<%
'strbody = objXML.responseText
'strBody Contains page source

strbody = cstr(Replace (strbody,chr(34),"'"))
%>

<form name= "f" >
<input type = "hidden" name="data" value="<%=strbody%>">
</form>

<script lang="javascript">
<!--
mydata = document.f.data.value

top.opener.document.body.innerHTML = mydata
//alert(mydata)
self.close ()
-->
</script>

Hopefully experts can understand this code.


Kind Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top