Solved

I want to fit the Pdf document in the same page. But When I click on the link it is opening in a pop up window.

Posted on 2003-12-10
32
309 Views
Last Modified: 2013-12-24
Can You please tell me where to  put target ="main" so that pdf document will open in same window.

Here is my page looks like in text editor

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<base target="main">
<title></title>
<meta name="Microsoft Theme" content="default">
<meta name="Microsoft Border" content="none, default">
</head>

<body>

<p><!--webbot bot="ImageMap"
text=" (1,129) (159, 166) {Maintenance Prioritization
Team} {Times New Roman} 10 B #ffffff LT 0  maintenance_prioritization_team.html"
text=" (1,242) (103, 264) {Project Office} {Times New Roman} 10 B #ffffff LT 0  http://pipeline.nigas.com/projoffice/##_top"
text=" (0,264) (122, 286) {Information Systems} {Times New Roman} 10 B #ffffff LT 0  http://pipeline.nigas.com/is/##_top"
rectangle=" (1,13) (151, 33)  PO_description.htm"
text=" (2,191) (104, 213) {Feedback} {Times New Roman} 10 B #ffffff LT 0  feedback.htm"
text=" (0,168) (150, 190) {IT Value Dashboards} {Times New Roman} 10 B #ffffff LT 0  info.htm"
text=" (2,82) (133, 104) {How to check work?} {Times New Roman} 10 B #ffffff LT 0  check_wk.htm"
text=" (2,106) (133, 128) {How to submit work?} {Times New Roman} 10 B #ffffff LT 0  submit_wk.htm"
text=" (0,35) (150, 57) {Workload Processes} {Times New Roman} 10 B #ffffff LT 0  workloadprocesses.htm"
text=" (1,57) (151, 79) {Organization Chart} {Times New Roman} 10 B #ffffff LT 0  documents/org1203.pdf"
text=" (0,11) (150, 33) {What is Project Office?} {Times New Roman} 10 B #ffffff LT 0  PO_description.htm"
src="images/World_bkgrd.gif" border="0" u-originalsrc="images/World_bkgrd.gif"
u-overlaysrc="_overlay/CONTEXT.HTM_txt_World%20titlebar%20Background.gif" align="left"
width="218" height="700" startspan -->
<MAP NAME="FrontPageMap">
<AREA SHAPE="RECT" COORDS="1, 129, 159, 166" HREF="maintenance_prioritization_team.html">
<AREA SHAPE="RECT" COORDS="1, 242, 103, 264" HREF="http://pipeline.nigas.com/projoffice/" TARGET="_top">
<AREA SHAPE="RECT" COORDS="0, 264, 122, 286" HREF="http://pipeline.nigas.com/is/" TARGET="_top">
<AREA SHAPE="RECT" COORDS="1, 13, 151, 33" HREF="PO_description.htm">
<AREA SHAPE="RECT" COORDS="2, 191, 104, 213" HREF="feedback.htm">
<AREA SHAPE="RECT" COORDS="0, 168, 150, 190" HREF="info.htm">
<AREA SHAPE="RECT" COORDS="2, 82, 133, 104" HREF="check_wk.htm">
<AREA SHAPE="RECT" COORDS="2, 106, 133, 128" HREF="submit_wk.htm">
<AREA SHAPE="RECT" COORDS="0, 35, 150, 57" HREF="workloadprocesses.htm">
<AREA SHAPE="RECT" COORDS="1, 57, 151, 79" HREF="documents/org1203.pdf">
<AREA SHAPE="RECT" COORDS="0, 11, 150, 33" HREF="PO_description.htm">
</MAP><a href="_vti_bin/shtml.dll/CONTEXT.HTM/map"><img src="_derived/CONTEXT.HTM_txt_World%2520titlebar%2520Background.gif" border="0" align="left" width="218" height="700" ismap usemap="#FrontPageMap"></a><!--webbot bot="ImageMap" i-checksum="29822" endspan --></p>
</body>
</html>

I want for when user clicks on the Organizatipon chart link pdf should open up in the same window.
I tried putting target="main" in the Area shape tag , but when I save and close. It does not show in the Area shape tag, it is just diappearing Please help me with this

I will really appreciate your help.
Thanks
Piriki
0
Comment
Question by:Piriki123
  • 18
  • 14
32 Comments
 
LVL 31

Expert Comment

by:seanpowell
ID: 9913496
Change this up at the top of your page:
<base target="main">

to this:

<base target="_self">

Thanks,
Sean Powell
0
 

Author Comment

by:Piriki123
ID: 9914152
seanpowell,

If I change the line to <base target="_self">
then It is opening in the side navbar where the links are, i want o open up in the next window.

Please Advice
I will really appreciate your help
Thanks
Piriki
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9914231
Sorry - didn't know the location of your pages...

So, all the other links in the image map open in the main frame window, except for the pdf link. Is that correct?
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9914261
Also, can you post your frameset code as well...
0
 

Author Comment

by:Piriki123
ID: 9914293
Yes
All other limks opens in the side window next to nav bar where the links are.
Only the PDF document is opening in seperate pop up window, I want to displaya PDF document in the same window next to nav bar
0
 

Author Comment

by:Piriki123
ID: 9914305
where and how can I find that frame set code.
Please tell me then I wil post the frame set code
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9914443
The frameset code is what generates the overall frame for all pages. It's probably index.html or index.htm.
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9914488
You shouldn't have any problem adding the target to the image map...it may be because of all that webbot code.

Can you try using this for the page, and let me know...

<p>
<MAP NAME="FrontPageMap">
<AREA SHAPE="RECT" COORDS="1, 129, 159, 166" HREF="maintenance_prioritization_team.html">
<AREA SHAPE="RECT" COORDS="1, 242, 103, 264" HREF="http://pipeline.nigas.com/projoffice/" TARGET="_top">
<AREA SHAPE="RECT" COORDS="0, 264, 122, 286" HREF="http://pipeline.nigas.com/is/" TARGET="_top">
<AREA SHAPE="RECT" COORDS="1, 13, 151, 33"   HREF="PO_description.htm">
<AREA SHAPE="RECT" COORDS="2, 191, 104, 213" HREF="feedback.htm">
<AREA SHAPE="RECT" COORDS="0, 168, 150, 190" HREF="info.htm">
<AREA SHAPE="RECT" COORDS="2, 82, 133, 104"  HREF="check_wk.htm">
<AREA SHAPE="RECT" COORDS="2, 106, 133, 128" HREF="submit_wk.htm">
<AREA SHAPE="RECT" COORDS="0, 35, 150, 57"   HREF="workloadprocesses.htm">
<AREA SHAPE="RECT" COORDS="1, 57, 151, 79"   HREF="documents/org1203.pdf" target="main">
<AREA SHAPE="RECT" COORDS="0, 11, 150, 33"   HREF="PO_description.htm">
</MAP>
<img src="_derived/CONTEXT.HTM_txt_World%2520titlebar%2520Background.gif" border="0" align="left" width="218" height="700" usemap="#FrontPageMap"></p>
0
 

Author Comment

by:Piriki123
ID: 9914601
seanpowell,

I do not have any index.html in the folder, Can you please tell me how to get the frame set code. I changed in the <AREA SHAPE taq forOrg chart --Added target ="main" but no use. It is opening in pop up window, And when i go back and saw the code, there is no target= "main" in the Area shape tag.

Please help me seanpowell, I will appreciatey your help.
Piriki
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9914623
Can you try using the above code instead? (Keep a copy of the existing one...)
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9914628
The main frameset code could also be default.htm - it's hard for me to know which...
0
 

Author Comment

by:Piriki123
ID: 9914650
I tried pasting your code for the context.htm and the same thing is happeening. It is opening in a pop up window.
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9914694
Is your web site online? Can you provide a link to it?
0
 

Author Comment

by:Piriki123
ID: 9914762
It is internal website, I don't think you can able to get to it. How can we work this one out. After I copied your page the nav bar itself not displaying now. I cannot even click on the link. The nav bar image is not displayed.
Anyway try this, this is the URL http://testpipe.nigas.com/projoffice/
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9914887
It's going to be more difficult without accessing the site, but that's okay.

In your original image map - with the page open in Normal View - right click on the "pdf link" hotspot in the navbar and select Picture Hotspot Properties.

If it doesn't say main in the "Target Frame", click on the little pencil icon, and type the word "main" into the dialog box.

Let me know...
0
 

Author Comment

by:Piriki123
ID: 9914947
I did whatever you said for the image hot spot properties for the PDF link in the nav bar, Now target frame = main even then it is opening in the pop up window, Can you please tell me why,

Thanks a lot for your pateince, You have lot of pateince.
I will really apppreciate your help
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 31

Expert Comment

by:seanpowell
ID: 9915002
Are you sure that the frame page is named "main" in the frameset code?

One of the pages in your folder, or the root folder of the site, contains the code that creates the frameset. Do you know which one that is?
0
 

Author Comment

by:Piriki123
ID: 9915062
I found default. html is the frameset code. I am not sure this is frame set code or not?
 I am attaching code for the default.html
<html>

<head>
<title>HOME PAGE</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
</head>

<frameset framespacing="0" border="false" frameborder="0" rows="87,*">
  <frame name="banner" scrolling="no" noresize target="contents" src="BANNER.HTM">
  <frameset cols="177,*">
    <frame name="contents" target="main" src="CONTEXT.HTM" scrolling="no">
    <frame name="main" src="BODY.HTM">
  </frameset>
  <noframes>
  <body>
  <p>This page uses frames, but your browser doesn't support them.</p>
  </body>
  </noframes>
</frameset>
</html>

I tried target changing to Contents, no use, it is still opening in pop up window.
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9915171
Your frameset code looks fine.

Are you testing this in Internet Explorer, or in FrontPage "Preview"
0
 

Author Comment

by:Piriki123
ID: 9915261
I am testing in internet explorer
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9915291
So when you add the target to the hotspot link with the method I mentioned above, and save the page - does the target still get removed from the code by Frontpage?
0
 

Author Comment

by:Piriki123
ID: 9915490
No target = main is still there in the page when i see the code in text editor,  Then I don't know why it is not displaying in the same page. I remember In the past when I did taget = main it workked. I don't why it is not displaying here.
Thanks for your patience
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9915594
Can you create a normal text link to the pdf in the navbar, with the target set to main.

I want to see if it's the image map that's the problem, or something else.
0
 

Author Comment

by:Piriki123
ID: 9915743
I tried linking to excel document it is working fine, I don not know why when i link to odf it is not working properly
IS because PDF is an embeded file, I remember in past i did it .in the same window
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9915784
If you create a normal page - no frameset at all - and create a link to the pdf, does it still open in a new window, or the same one?
0
 

Author Comment

by:Piriki123
ID: 9915842
Yes, It is still opening in a new window.
0
 
LVL 31

Accepted Solution

by:
seanpowell earned 140 total points
ID: 9915870
Then the problem is likely IE and Acrobat, and not your code at all.

From Acrobat - go to File > Preferences > General, and make sure Web Browser inntegration is checked.
0
 

Author Comment

by:Piriki123
ID: 9915976
Worked - I changed in Edit preferences and checked (display pdf in browser), It took care of it seanpowell, Thanks a lot for your help, You have lot of patentince. I appreciate your help

Thanks....
0
 

Author Comment

by:Piriki123
ID: 9915993
but I ahve one questions though I changed in acrobat, will it change in only my pc or everybody who use it will also see change right?
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9916033
That preference is "usually" set automatically when Acrobat is installed. For some reason your's was not checked - perhaps becuase of recent installations of either Acrobat or IE. Anyone that experiences that same behaviour would have that happen on "every" site, not just yours. So it shouldn't be an issue :-)

Thanks,
seanpowell
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9916042
Meaning the change that you just made "on;y" affects your PC, no one else's...
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9916044
sorry... "only"
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now