Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there any workaround to allow the javascript:OpenPopUpPage(SomeExternalSiteUrl) works for external links, when I tried it it gave me Webpage Can not be found

share|improve this question
add comment

2 Answers

I can confirm this issue. The reason is the XSS protection. jQuery fancybox is a probably the best solution. For completeness I can tell about a solution I've seen:

So when you open a page in a modal dialog, you open your application page:

OpenPopUpPage("_/layouts/MyPageViewerApplicationPage.aspx")

As I said, jQuery fancybox is much simpler and "fancier"...

share|improve this answer
add comment

It should work with any URL. If you can open the URL in the browser, you should be able to open it with OpenPopUpPage too. What link are you passing in it?

share|improve this answer
    
normal url javascript:OpenPopUpPage('http://moew-ecstest/ecs/PUBLIC_DOC?P_DOCUMENTNUMBER=1‌​1C6C844D6D36139907FEDAC26B96896'); And yes, I can open it in the browser but once I use the OpenPopUpPage WebPage Can not be found appears! –  Rami.Shareef Sep 24 '12 at 4:18
    
I ended up using fancyBox the jQuery plugin –  Rami.Shareef Sep 24 '12 at 5:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.