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
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