Click to See Complete Forum and Search --> : large javascript include


screamingbuddha
11-21-2002, 04:32 PM
using document.write will be pretty much useless..

anyone have a quick method of doing something like the following..

if cookie.value == "present"
{
document.write (/* Really massive table structure in html */)
}
else
{
document.write ("Nothing to see here")
}

really I'm just looking for a way to enclose a large amount of html without having to do document.write, line by line (which I can't do anyway)

thanks

Rick Bull
11-21-2002, 04:49 PM
If you have PHP or something similar it's quite easy. Do you?

Beach Bum
11-21-2002, 06:42 PM
I think in the document.write you could include an object that would be an html page that would contain the table. Try this:

document.write('<object type="text/html" data="xxxxx.htm"........ </object>')

I think that should work.