Hey all,
First off, frames - eww. I know. It's an internal site, so please don't tell
me to ditch the frames. We like them for what they're being used for.
That said, my users like to print just one frame, but it's a little bit
irritating to have to remember to choose "print only selected frame" in the
print dialog boxes. I've been messing with CSS media to try to not print the
menu frame. It's not going as well as I'd hoped. Can anyone help?
Here's what I have:
In the left frame, which should not print:
@media print {
body {
display: none;
}
}
In the frameset:
@media print {
#leftFrame {
display: none;
}
}
Problem: In IE, there is still a large left-side blank where the frame
content would be if it were shown. I want it collapsed so there is only the
typical page margin.
In Firefox/Netscape/Mozilla, there is the the large blank, plus it is
surrounded by a black outline.
What gives? Why can't I just tell it not to print the frame?
(I also tried setting the widths of the body, the frame, etc, to 0; no
good...)
--
--
~kaeli~
Cthulhu saves our souls and redeems them for valuable
coupons later. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace 4 6581
"kaeli" <ti******@NOSPA M.comcast.net> a écrit dans le message de
news:MP******** *************** *@nntp.lucent.c om First off, frames - eww. I know. It's an internal site, so please don't tell me to ditch the frames. We like them for what they're being used for.
That said, my users like to print just one frame, but it's a little bit irritating to have to remember to choose "print only selected frame" in the print dialog boxes.
Add a "print this page" button, that opens a new window without any frame.
Then the user can print this one.
In article <41************ ***********@new s.free.fr>, pg******@nowher e.invalid
enlightened us with... "kaeli" <ti******@NOSPA M.comcast.net> a écrit dans le message de news:MP******** *************** *@nntp.lucent.c om First off, frames - eww. I know. It's an internal site, so please don't tell me to ditch the frames. We like them for what they're being used for.
That said, my users like to print just one frame, but it's a little bit irritating to have to remember to choose "print only selected frame" in the print dialog boxes. Add a "print this page" button, that opens a new window without any frame.. Then the user can print this one.
This is a last resort solution unless you know of a way to get the page
without asking for it again from the server. The pages they like to print are
often the results of large queries and reports, so it would hurt my server a
bit to have to ask for the page twice.
Also, it requires a popup window (new window), so it's one more window they
have to then close. Not the optimal solution.
Thanks, though.
I have come close to a solution here, actually, but when I do
document.framen ame.print, it brings up the printer dialog box instead of the
print preview box, so when it gets printed, it cuts off parts of the page if
the page is too wide. They normally choose print preview then configure it to
print so it fits on one page.
I have a feeling there is no nice, tidy solution for this.
--
--
~kaeli~
He's your God, they're your rules - you burn in Hell. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
kaeli wrote: pg******@nowher e.invalid wrote: > That said, my users like to print just one frame, but it's a little > bit irritating to have to remember to choose "print only selected > frame" in the print dialog boxes. Add a "print this page" button, that opens a new window without any frame. Then the user can print this one.
This is a last resort solution
Indeed, but by imposing frames you are forcing last resorts.
"kaeli" <ti******@NOSPA M.comcast.net> a écrit dans le message de
news:MP******** *************** *@nntp.lucent.c om Add a "print this page" button, that opens a new window without any frame. Then the user can print this one.
This is a last resort solution unless you know of a way to get the page without asking for it again from the server.
Just send the correct cache http headers with the page, and it should be OK.
You can read the RFC 2616 chapter 13 for more information. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fabian |
last post by:
Is there a way to hiode the horizontal (but NOT the vertical) scrollbar?
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk
|
by: Scott Navarre |
last post by:
Hello,
I have 2 frames. The top one is the control frame and the bottom one is
the display. I have a roll-over button in the top frame that I want to use
to do a print() for the bottom frame.
I tried having this JavaScript code when the roll-over button is clicked:
parent.frames.focus();parent.frames.print()
I am using Internet Explorer on Windows, and I am getting a print window
with "Only the selected frame" selected. But when I...
|
by: Rob McLennan - ZETLAND |
last post by:
Hi,
I have set up an external stylesheet, named "print.css", to format the
style of all pages printed from my company's website. I've been
previewing my changes to the stylesheet by doing File\Print Preview in
IE6 and noticed that occasionally the leftmost button of the
javascript menu (CoolMenus Version 3.02) on our website is printed. (I
have wrapped the javascript that generates this menu in a DIV so that
it is concealed from...
|
by: Richard Brand |
last post by:
We run into a strange problem with a client when printing a frame from a
website. On the site there is a button that performs the following
javascript code:
parent.myFrame.focus();
window.print();
This is the normal way to print a specific frame from a website. Our client
works on a SBS2003 with Terminal Server and when they hit the button all
frames are printed out, not just the selected one. At first I thought that
|
by: Bogdan Zamfir |
last post by:
Hi,
I have a web page with two frames.
Left one has a aspk page with application menu, and right one has the astive
working form
Depending on some conditions in right page, I want to be able to disable /
enable (or show / hide) the left frame.
I want to be able to do this from Page_load event for webform who loads into
| |
by: J Ames |
last post by:
I have an ASP.NET (VB) form that has two drop downs, a horizontal rule and a
button. The button invokes a stored procedure and several tables are
created on the page with data populated. I want to create a link to print
the page, but I don't want the drop downs or the button to print, only the
tables. How can this be done? I know how to use a CSS file to disallow the
entire page from being printed, but I don't know how to apply this to...
|
by: PieOPah |
last post by:
I have a webpage that uses frames (yes I know, frames - previously been
flamed about that, but I do not know anything else to use since I am
clueless!!! Been asked to cobble together a site since there is a
misconception that I know what I am doing!!!)
Anyway, one of the things I have been asked to do is create a button
that will allow the user to print the contents of the main window (main
frame) without the navigation bar (header...
|
by: Rico |
last post by:
Hello,
I have an MDE application where I use a bound object frame to display an
image. This frame is updatable and bested on the contents of an OLE field.
My problem is, some images display as the image and some display as an icon
with the file name below. The process I'm following is as follows;
Right click
Choose "Insert Object..."
Select "Create from File"
|
by: Stan Brown |
last post by:
I've searched Google and the group archives, and came up empty, but
maybe I just haven't selected the right search term.
This concerns only the screen -- printing isn't an issue. I'm also
not concerned about the appearance of the page in IE6 as long as the
page is still usable.
I want to have two pseudo-frames, using only CSS and no JS. The top
"frame", 4em high, is a menu, and I want it to stay at the top of the
viewport. The rest...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |