Browser drawing problems

They have: 23 posts

Joined: Jan 2001

I am using perl to write out to the browser through the use of print statements

print "HTML\n";

print <
HTMLCode

I am also using so subroutines like "&Print_Head;" that I made.

It all works fine except for when I first launch the browser. My page draws and then every thing goes white. I tried in multiple browsers and I still get the same results. So I took the HTML from the browser source and ran it through a validator and I get no errors. It's like I need an automatic refresh once the page is finished loading. Or maybe there is a more efficient method of delivery like storing the output in a file? Has anyone ever had this problem?

Any help would be great.

Thanks
G

They have: 850 posts

Joined: Jul 1999

Make sure you have
print "Content-type:text/html\n\n";
before you print any html outout.

They have: 23 posts

Joined: Jan 2001

Yeah I have that in there. I think I may have fixed it. I had a few HTML errors in there. Does anyone know of a good HTML validator? The one I am using sucks.

Thanks
G

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

http://www.htmlvalidator.com

I would recommend the pro version. Don't turn off any switches.

Smiling Suzanne

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.