Framesets

They have: 48 posts

Joined: Apr 2001

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's picture

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... Smiling

Hope it helps,

Shakespeare: onclick || !(onclick)

They have: 48 posts

Joined: Apr 2001

So how can I make the word document print without printing the top frame?

Jack Michaelson's picture

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)

They have: 48 posts

Joined: Apr 2001

Nope. It still prints the top frame. Thanks for checking!

detox's picture

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.