Solved

Using Page Viewer Web Part to display a specific portion of a page

Posted on 2009-03-30
8
629 Views
Last Modified: 2013-11-07
What is the best way to display only a specific portion of a page in a page viewer web part. i.e., without displaying the header and the footer of the page inside the Page Viewer.
0
Comment
Question by:toramesh
  • 4
8 Comments
 
LVL 16

Accepted Solution

by:
raybies earned 333 total points
Comment Utility
the pageviewer webpart (PVWP) is just an iframe... yup pretty pathetic. MS could have just add a parameter to the content editor web part.

Anyway, you can't. What ever the page looks like is how you get it, except in a frame. You can do some programming and use an HttpRequest object client or serverside, to get the content at certain points. But you can't do didley  with the PVWP
0
 

Author Comment

by:toramesh
Comment Utility
But isn't it possible to retrict the html displayed in the "iframe" by specifying a start tag and end tag. i.e., create a web part, get the start tage and end tag from users and display html only within those tags? Is this possible or am I just going in the wrong direction?
0
 
LVL 12

Assisted Solution

by:williamcampbell
williamcampbell earned 167 total points
Comment Utility
Well you have access to the DOM so maybe you getElementById and set the tags you don't want to see to hidden.

/gotnuthin
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 16

Assisted Solution

by:raybies
raybies earned 333 total points
Comment Utility
Yes, that's what I mean by "programming", but not with the PVWP.
Chances are you'll have to look for a specific string.

So your JS/C# will be like.

HttpObj.Response.Substring(HttpObj.Response.IndexOf("myStartStr"), HttpObj.Response.IndexOf("myEndStr"))
0
 
LVL 16

Expert Comment

by:raybies
Comment Utility
Question answered.
0
 
LVL 16

Expert Comment

by:raybies
Comment Utility
Vee_Mod:

ID:24024495 answered the question.
ID:24024645 elaborated on the answer.
ID:24024837 elaborated on the answer.
0

Featured Post

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

Join & Write a Comment

Suggested Solutions

The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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