mrzippy
05-07-2006, 04:53 PM
I am looking for a javascript expert to show me how to do this.
Here is a test file to illustrate the problem. (Remove the .txt extension,
upload it to your server and then call the test.php file. What it should do,
is print a simple "Click here" link, which will then open a popup frame
window. You should view line #47 of the test file, which shows how to
"break" the script, and shows the problem
http://www.host-vault.com/files/test.php.txt
-----------------------
The $pageHTML variable contains the sample HTML code. I am trying to
"output" this variable on frame 2 of the popup webpage.
The problem is that the newline characters and quote characters within the
$pageHTML variable are causing the "write" javascript function to not work
as I need it to.
I have no way of knowing the contents of the $pageHTML before the script
runs. (So it might contain ANYTHING...)
The $pageHTML MUST be output to the browser exactly as if it was called
directly. When the page loads.. the "View Source" in the browser must be
the exact same as if the webpage file was called directly. (ie: You
can't change the contents of the variable.)
Is this something you can help me with? If so, please let me know what is
the cost.
Thanks.
Here is a test file to illustrate the problem. (Remove the .txt extension,
upload it to your server and then call the test.php file. What it should do,
is print a simple "Click here" link, which will then open a popup frame
window. You should view line #47 of the test file, which shows how to
"break" the script, and shows the problem
http://www.host-vault.com/files/test.php.txt
-----------------------
The $pageHTML variable contains the sample HTML code. I am trying to
"output" this variable on frame 2 of the popup webpage.
The problem is that the newline characters and quote characters within the
$pageHTML variable are causing the "write" javascript function to not work
as I need it to.
I have no way of knowing the contents of the $pageHTML before the script
runs. (So it might contain ANYTHING...)
The $pageHTML MUST be output to the browser exactly as if it was called
directly. When the page loads.. the "View Source" in the browser must be
the exact same as if the webpage file was called directly. (ie: You
can't change the contents of the variable.)
Is this something you can help me with? If so, please let me know what is
the cost.
Thanks.
