Forum Moderators: open

Message Too Old, No Replies

How can one print an iframe page?

         

NewDesigner

3:34 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



I've created a web site for someone done in frames. He has a form on his page that would like for users to be able to print if need be. How can I make this possible when the entire site is done using iframes?

Hope this makes sense.

Thanks! :)

cmatcme

7:06 pm on Mar 9, 2005 (gmt 0)

10+ Year Member



If the page is done using

<iframe><code>Text</code></iframe>

Then that should be easy.

If its done via

<iframe src=/results.html></iframe>

Then that should work well to.

************

If it doesn't this may work

************

<input type="button" onClick="window.location.href='print.asp?name=pop&email=example@example.com';">

You can easily transfer the data from the form into a link with most server sided langauges.

************

Example for asp would be

?name=" & request("name") & "&email=" & request("email") & "';">

*************

This may be going off forum topic a bit and may seem hard for those not experienced in other languages but you'd need at least javascript to complete the task.
That would be my first attempt at doing it.