aaedla
asked on
auto adjust iframe height in Page Viewer web part.
I am trying to display web page from different farm in page viewer webpart but I am getting height issue for IFRAME in page viewer webpart. Some content is hiding and I can see vertical scroll bar. I can see hidden content when I scroll vertical scroll bar.
Can anybody help me out to remove vertical scroll bar for iframe in page viewer webpart and show complete content?
Any help would be appreciated.
Can anybody help me out to remove vertical scroll bar for iframe in page viewer webpart and show complete content?
Any help would be appreciated.
i use this http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
ASKER
Hi Manum,
Thank you for your link.
I tried as per steps in that post but it didn't work for me.
I did below steps to resolve the issue:
1. In sharepoint, I have copied default.master page and created custom master page and added step1 code into custom master page HEAD section.Published custom master page.
2. Created web part page(.aspx) and then added content editor web part and then added step2 script into HTML editor of content editor web part and changed source.
3.Attached custom master page to web part page and then published web part page.
Still I can see vertical scroll bar for iframe.
Please let me know if I am doing some thing wrong.
Thank you for your link.
I tried as per steps in that post but it didn't work for me.
I did below steps to resolve the issue:
1. In sharepoint, I have copied default.master page and created custom master page and added step1 code into custom master page HEAD section.Published custom master page.
2. Created web part page(.aspx) and then added content editor web part and then added step2 script into HTML editor of content editor web part and changed source.
3.Attached custom master page to web part page and then published web part page.
Still I can see vertical scroll bar for iframe.
Please let me know if I am doing some thing wrong.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Rainer,
Thank you for links. It ried both but both didn't work.
I have used IsDlg=1 in url to unskin page in page viewer webpart(to remove ribbon and navigation of the page within the Page Viewer webpart.)
Without "?IsDlg=1" it's working fine, but it's not working if I use "?IsDlg=1 in url". I am trying to make it work with "?IsDlg=1 in url".
Please advise me.
I am using SharePoint Server 2010.
Thank you for links. It ried both but both didn't work.
I have used IsDlg=1 in url to unskin page in page viewer webpart(to remove ribbon and navigation of the page within the Page Viewer webpart.)
Without "?IsDlg=1" it's working fine, but it's not working if I use "?IsDlg=1 in url". I am trying to make it work with "?IsDlg=1 in url".
Please advise me.
I am using SharePoint Server 2010.
Hi,
as far asvI can remember , the isDlg option also uses a lot of Javascript for positioning and resizing. I will have to validate, but this will take until tomorrow.
Rainer
as far asvI can remember , the isDlg option also uses a lot of Javascript for positioning and resizing. I will have to validate, but this will take until tomorrow.
Rainer
ASKER
Attached screen captures for content in a web part page in another site (it's from different server/farm) and conetnt in page viewer web part in a site from another farm.
untitled.bmp
PageViewerWP.bmp
untitled.bmp
PageViewerWP.bmp
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Rainer's solution is good enough to accomplish this task but I got a vertical scroll bar issue for iframe within page viewer web part and I was able to resolve the issue with my work around.