I have selection box and after the selection I want to add some text on a page dependent on the selection. Populating form variables does not give the formatting I want. How do I do it easily without side server technologies?
I thought I had found the answer. I used document.write in my function, similar to below.
-
-
function dowrite(digit)
-
{
-
if (digit == 1)
-
{
-
data="<html><head></head><body>TEXT HERE INCLUDING TABLES & IMAGES</body></head></html>";
-
}
-
document.write(data);
-
}
-
This opens up a new page nicely. This is where the problems start. IE7 only will output so much and will not display the rest. Even stranger is that when you view source, save it as a html document and open the saved html document, the document displays fine. Firefox gives no such problems but the document never completes loading. I have tried document.writeln but same issue.
Please help. Much appreciated.