JavaScript.CoolDev.Com Support Forums
Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com
| Author |
Message |
undisclosed Guest
|
Posted: Fri Oct 10, 2003 9:29 am Post subject: i hate to do this to you *grin* |
|
|
actually.. you guys are great!
but i have one problem
i placed my menu in an <iframe> (it was the easiest way to gaurentee placement within my page, and allow for all the coding i wanted to work properly, but i cannot print the page this way, it will only print the 'menu' page
{code:"Print this page", url:"javascript:void(window.print())", "format":{"size":[20, 112], "itemoff":[0, 5], tip:32}},
is the script i am using, is there a way to get it to print the parent ? i would settle for parent only, without the <iframe>
so that the main page (index, or whatever) will print ? |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Fri Oct 10, 2003 11:20 am Post subject: |
|
|
| Try to call "parent.print()". Also you can use CSS to specify "invisible" mode for menu for print media: "display: none" in the "print" @media section. |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Sat Oct 11, 2003 1:55 am Post subject: |
|
|
| Alex_Kunin wrote: | | Also you can use CSS to specify "invisible" mode for menu for print media: "display: none" in the "print" @media section. | please clarify |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Sat Oct 11, 2003 2:14 am Post subject: |
|
|
ok, here is my page layout.. edited for brevity
| Code: | <html>
<head>
<title>Welcome To MySite</title>
<link rel="STYLESHEET" type="text/css" href="style.css">
</head>
<body leftmargin="0" topmargin="0">
<center><img src="images/logo_silver_white.gif" height="64" width="595"></center>
<center>
<table width="750" height="75" border="0"><tr><td align="center">
<!-- *******IFRAME MENU******** -->
<iframe src="menu.html" width="750" height="75" scrolling="no" marginheight="0" marginwidth="0" frameborder="0">Non iframe text</iframe>
</td></tr></table>
</center>
<center>
<table cols="1" height="65%" width="750"><tr><td valign="top" height="50">
<font face="tempus sans itc">
<font size="5" color="navy">
<center><br>Welcome!<br><br></font></font>
Thank you for coming to our site.<br>MAIN LOGO<br>
Some sample text i want to print
</center></font></td></tr></table>
</center>
</body>
</html> |
The part where it says
<!-- *******IFRAME MENU******** -->
<iframe src="menu.html" width="750" height="75" scrolling="no" marginheight="0" marginwidth="0" frameborder="0">Non iframe test</iframe>
shows that my menu, is in a file called menu.html
this is what i am currently using to print
| Code: | | {code:"Print this page", url:"javascript:void(parent.print())", "format":{"size":[20, 112], "itemoff":[0, 5], tip:32}}, |
and it is still printing the menu.html, not the parent page..
if in my html, i named the page <a name="pagename"> could i then use javascript:void(parent.print()) and indicate the page name somehow?
im not sure how it would work in that instance..
please help..
- Undis |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Thu Oct 16, 2003 9:45 pm Post subject: |
|
|
Alex? care to help  |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Wed Oct 22, 2003 9:55 pm Post subject: |
|
|
| Alex.. still around? |
|
| Back to top |
|
 |
undisclosed Guest
|
Posted: Fri Oct 24, 2003 10:01 pm Post subject: |
|
|
| i get the feeling that Alex doesnt like me anymore |
|
| Back to top |
|
 |
|
|