Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape 4.x -- Data Missing (print) 1

Status
Not open for further replies.

link9

Programmer
Nov 28, 2000
3,387
US
Hello all --

So I've been saddled with creating a web application compatible with NS4.07

The only hanging issue is printing.

Every single one of my pages results from a post operation. Users give me input, and I give them output in the form of reports. It's the name of the game.

Everything on screen looks great. Graphs line up. Text looks good. Go to print, and although it gives me no error message on the screen, the page that comes out looks like this:

Data Missing
This document resulted from a POST operation and has expired from the cache. If you wish, you can repost the form data to recreate the document by pressing the reload button

Now like I said, it's on the screen fine and dandy. The only place this message is seen is on the printed page when you print.

Can anyone tell me how to get around this nuisance?

Thanks alot.

paul
penny1.gif
penny1.gif
 
do you store the data into a db? if so you could redirect the page and the create the page with "fresh" data from the db not from the post. i work with asp and have to have my forms print with netscape so i give them a print button and i store the data and then redirect them to the same page but pulling the data from the db
 
Yes, the data is from a SQL Server database.

However, I have to have the POST data in order to figure out what the user has asked for.

Users select filters on what type of report they would like to see, and then I create that report for them based on what they've asked for.

I guess I'm missing your point.
penny1.gif
penny1.gif
 
is your form saving the data or just collecting the filters? if it's saving the data as well then save the form's data. then create a QueryString of the filters needed to create the page and redirect the browser to the Page using the QueryString instead of the posted data. if it's just collecting the filters then use &quot;get&quot; instead of &quot;post&quot; in your <form> and use the QueryString. let me know if i'm still not clear. [sadeyes]
 
Discord,

Thank you for that. I changed my method to 'get' and it does work (sort of). It changes the behavior of my pages now, though, so that Nutscrape reloads the page when you ask it to print, and my loading message comes up again, etc... If there's a large amount of data on screen, then they have to wait for it all to render again.

This is a workaround that I think will work, but if anyone else out there has a better solution to the problem, I am all ears.

In the meantime, I'll blame it on their using a horribly inferior product and we'll call it McGyvered.

Thanks! :)
paul
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top