Framesets
I'm making some modifications to an intranet site at the company I work for.
The problem is they have tons and tons of word and pdf documents that are linked throughout the site. Anytime you click on one it opens that particular word or pdf document in the browser.
In my opinion that is really annoying because you loose all html navigation. So I suggested the idea of adding a top horizontal frameset. That way if they click on one of the documents it will appear in the bottom frame. My only dilemma is getting everything to print in its existing frameset rather then just printing the top navigation frame. Does anyone know of a way to get around this?
Thanks!
Jack Michaelson posted this at 18:56 — 23rd January 2002.
He has: 1,733 posts
Joined: Dec 1999
In your frameset do this:
name="MyNameForTheTopNavigationFrame"....
name="MyNameForTheMainContentFrame"....
target="MyNameForTheMainContentFrame" in the 's that link to the .doc's and .pdf's.
Optional: use short FrameNames...
Hope it helps,
Shakespeare: onclick || !(onclick)
Shotaker posted this at 20:14 — 23rd January 2002.
They have: 48 posts
Joined: Apr 2001
So how can I make the word document print without printing the top frame?
Jack Michaelson posted this at 20:34 — 23rd January 2002.
He has: 1,733 posts
Joined: Dec 1999
Sorry for that...
Download this script: http://www.dynamicdrive.com/dynamicindex9/other1.htm
and replace 'window.print' with
parent.MyNameForTheMainContentFrame.print
then put the code in the top frame.
I did not test it, but it might work...
Shakespeare: onclick || !(onclick)
Shotaker posted this at 20:48 — 23rd January 2002.
They have: 48 posts
Joined: Apr 2001
Nope. It still prints the top frame. Thanks for checking!
detox posted this at 15:07 — 30th January 2002.
They have: 571 posts
Joined: Feb 2001
very simple way out but you could always have a link to print and have it open up the document without frames, in a new window, then after a timeout or something execute the code to print the document.....
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.