Open Dialog Window in Parent Frame

I have a page viewer web part on my page which is surfacing a News page from another part of our SharePoint farm.  This News page contains links to many articles which I have told to open in a Dialog window using the following code:
function DisplayArticle(url)
var options = SP.UI.$create_DialogOptions();
options.width = 900;
options.height = 800;
options.url = url;
SP.UI.ModalDialog.showModalDialog(options);
This is working fine although the dialog opens within the boundary of the Page Viewer web part and I would like it to open as if it was a dialog of the parent window.
Any thoughts?

Hi,
Because the dialog function is running within the context of the iframe, seems like its creating the dialog divs as children of the iframe's.
You can do something like this:
1) Create some Javascript function in the parent page, some thing like this:
function DisplayArticleInParent(url)
var options = SP.UI.$create_DialogOptions();
options.width = 900;
options.height = 800;
options.url = url;
SP.UI.ModalDialog.showModalDialog(options);
2) from inside the iframe call parent pages function which we created above something like this:
parent.DisplayArticleInParent('your article url');
Genrally window.parent returns a reference to the parent of the current window or subframe.When a window is loaded in an <iframe>, <object>, or <frame>, its parent is the window with the element embedding the window.
Please refer following link for calling parent window function:
http://forums.asp.net/t/1117770.aspx
Hope It might help you
Please don't forget to 'mark answer/propose answer' or 'vote as helpful' as appropriate.

Similar Messages

  • Save As & Open Dialog Window for some documents hangs when custom VSTO plugin is installed

    Hello,
    I have created a VSTO application which uploads a word document to Document Management Server. The problem is not with this plugin, but after the plugin is installed, for certain documents when user makes some modification to the document and clicks on File
    -> Save As or File ->Open, the Save As/Open Dialog window, does  not show up and the Word application will be hung (spinning) as it should do if the Save As dialog window would have been shown. The only option is then to kill the WinWord process
    from Task Manager. When I kill the WinWord process from task manager, I see the Save As Dialog window appear for a split second before the WinWord Process shuts down.
    If I uninstall the VSTO application, everything works fine.
    Details on the application:
    Target Framework: .NET Framework 4
    Platform Target: x86
    OS (Developer and End User): Windows 7 Enterprise SP1 64 bit
    Microsoft Office: Microsoft Office Professional Plus 2010 Version: 14.0.6129.5000 (32-bit)
    Help!!
    Regards,
    Yogesh 

    Hi Eugene,
    Thanks for your reply.
    Yes I have tried an empty add-in project as well. Added a label to the ribbon and displayed a static text. I am able to reproduce the issue with this add-in as well. The issue is only reproducable if I deploy the add-in using a setup and deployment project.
    While building the project, Visual Studio installs the add-in by default. If I open the problematic documents with the "developement" version of the add-in installed, it seems to be working fine.
    Regards,
    Yogesh
    Hello,
    >>Yes I have tried an empty add-in project as well. Added a label to the ribbon and displayed a static text. I am able to reproduce the issue with this add-in as well.
    The issue is only reproducable if I deploy the add-in using a setup and deployment project.
    Since it could be reproduced if you deploy any add-in with a setup project, it seems this issue may be related to the your environment.
    It will be helpful if you could share the following information with us.
    The configuration about that setup project and your add-in.
    Whether your user account has admin privilege or not.
    To narrow down this issue, you could consider installing that add-in with setup project in a clean machine.
    If it could reproduce this issue, then we could focus on that setup project instead.
    If not, then we'd better focus on your environment to narrow down this issue.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 30EA3 - Windows: incorrect "mydocument" path in File- Open dialog window

    Hi,
    I have noticed this error in previous versions as well. On windows, users can change the default mydocument path. After the change, all windows file dialogues with the 'mydocuments' shortcut open the new, changed directory.
    In SQL Developer, the File->Open dialog window has a 'My Documents' shortcut which uses the constant path C:\Documents and Settings\username\My Documents. Instead of this shortcut, the program should lookup the real value of the Mydocuments path and should open the correct directory.
    Regards,
    Gellért
    Edited by: user641632 on 2011.01.20. 1:30

    Thats true. We use use the default.
    We could look at the registry and check HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders for the "My Documents" if it is set.
    Barry

  • Hi, I want to open dialog window with ADF Faces

    Hi, I want to open dialog window with ADF Faces when commandButton pressed, but the window opended at same window, not opened new window.
    my command button is follow,
    <af:commandButton text="Ücret Girişi"
    binding="#{backing_rezervasyonlar.rez_iptal}"
    id="rez_iptal"
    action="dialog:ucret"
    windowHeight="200"
    windowWidth="300"/>
    I am waiting your help....

    Remove the partialSubmit attribute from the declaration of your command button. Therefore, the code you posted should be:
    <af:commandButton text="Ücret Girişi"
    binding="#{backing_rezervasyonlar.rez_iptal}"
    id="rez_iptal"
    action="dialog:ucret"
    useWindow="true"
    windowHeight="200"
    windowWidth="300"/> NOT:
    <af:commandButton text="Ücret Girişi"
    binding="#{backing_rezervasyonlar.rez_iptal}"
    id="rez_iptal"
    action="dialog:ucret"
    partialSubmit="true"
    useWindow="true"
    windowHeight="200"
    windowWidth="300"/> --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Open dialog window closes suddenly on Illustrator and Photoshop

    Hello,
    open dialog window closes suddenly on Illustrator and Photoshop

    PPI is the correct word for an image's resolution.
    As for printing: ask the service provider what's best for their workflow. It totally depends on the process, on the hardware, on the paper and on the size of the print.
    For video: use screen resolution unless you want to enlarge the footage in the video.
    Additionally:
    read the manual of the video software in use
    read about printing:
    Search for the "Creative Suite® 6 Printing Guide" in your preferred search engine.

  • Enable to record the File Open Dialog window using SHDB

    Hi All,
    I am using CV02N for BDC recording.
    In this transaction I hae a File Browser button, which opens File Open Dialog window (using CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG method). Using this I can given the file name and Open.
    But, this File Open Dialog windows is not getting recorded using SHDB.
    Please help me how to solve this problem.
    Thanks in Advance,
    Shashidhar

    Hi,
    I doubt you can record the file open functionality in BDC.
    if there is any field which requries file path and directory better make it uniform and hard code it.
    Regds,

  • Transfer Focus From a Child Dialog To its Parent Frame

    Hi
    I m working on a Multimedia Desktop Application. I have done alomst 90% of work. Here I have a problem to transfer focus from a Child Dialog to Parent Frame. Remember the whole applicatio does not use Mouse every thing is handled on key events. So I required to transefer the focus from a Child Dialog to its Parent Frame from key board. I also cant use ALT+TAB because
    1- Child is a dialog
    2- This is a Multimedia Application which will be deployed For TV production and can't allow any Computer
    Components to be viewable.
    So I want only key press to transfer the focus between Child and The Parent.
    Thanks.
    Khurram

    First u tell me what do u do on the forumI answer questions - when I know the answer.
    I give advice on how to use the forums efficiently so you get the best chance to have your question answered and you don't waste other peoples time.
    And the post-URL you mentioned, was mistakenly submitted two times.Then respond to your own thread saying you posted it twice by mistake.
    any ways I did never see any article posted by you, nor the solutions on the other's posts by you. you just made comments on others posts.which only goes to prove that you never bother to search the fourm before you post a question.
    and please let others try to review on my problem.others can still reply

  • Script to open the Open Dialog Window

    Hello everyone!
    I'm new to scripting and this is probably an easy question but I'm trying to write a script that opens the Open Dialog Window. Basically I need to start the script in one active document, have the script open the Open Dialog (to let the user select another image) and then finish the script in the newly opened document. Every script I find is to open a specific file, but I need it to be User Selected through the Open Dialog of Photoshop.
    I hope that makes sense! LOL. Any help would be greatly appreciated!
    Thanks,
    Bradi

    Is this also possible to simply open the "Find and Replace" dialog in Illustrator & then close it?
    No need to do anything with "Find and Replace" just want to open it then have it close to avoid an Illustrator bug.

  • Image preview in Open dialog window (Photoshop CS6)

    Hi
    We had a possibility to see images preview in Open File dialog window of Photoshop CS5 but in new CS6 version there is not such possibility. Should I forget about that nice option and use Mini Bridge?

    I'm not so sure it was on purpose or not Noel. Especially since it's still there in Illustrator and Indesign. If it weren't for it being in those, I might think it was intentional. Then again, it could very well be Adobe trying really hard to push MiniBridge, which is almost utterly useless. I think they actually made the minibridge WORSE as well. The sizing issues of the thumbnails on that are a pain and minibridge is just plain cumbersome to run. Anyways, besides my many qualms with minibridge itself, and back on the open dialog box thing...I actually watched a youtube video pointing out the same codecs you're talking about and without the PSD functionality, it's pretty useless. I'm a graphic designer, so I don't really use PS for camera image editing and don't mess with those files that the codec helps with. Even if it did, that still isn't very helpful to me. Because at that point, you're pretty much just doing what Bridge/MIniBridge does. However, consider how I, and many other designers in the print field work: At any given point we might have something like 3 different versions of a file; a PSD (with layers to edit), a JPEG (to send to the customer for proofing), and a PDF (for printing). Now, within that customer folder I might have 50+ files of different jobs. Imagine trying to sift through all those thumbnails, scrolling across window upon window, and when you get to the file you're finally looking for, you click it open to just to see that you opened the jpeg instead of the PSD. Now, in LIST view, I can see many more files on one screen and each file type is represented by an icon. So I know the blue icons are Photoshop icons and it's very easy to skim through there and know exactly which file type I'm looking for without peering at extensions. Get what I'm saying? Not that I don't appreciate you trying to help. Just saying, unless any codec can bring back the preview screen....than I don't see a workaround until Adobe flat out FIXES IT. I'm one of those guys that loves to get the newest thing and give it time to work, but if they don't fix it, I might have to call up Adobe and demand a downgrade on my Photoshop to 5.5, cause it really slows my workflow when I have hundreds of files to keep up with, and any new feature in PS CS6 that might have sped up my work is offset by not being able to do such a remedial task as preview my files before opening them.

  • Open File dialog window when setting the value of a path type input argument in a VI call

    Hi,
    I am new to TestStand (running 4.0) and I want to create a sequence of VIs to turn on, setup and measure a device. One of my VIs sends a configuration file to my device. An input argument to this VI is the path of the config file. I would like to make it simple to modify this path when setting up the sequence by popping up the File Open dialog window and choose my file. Is this possible? I do not want to manually change the file during execution, just to have multiple calls of one VI, each call opening a different file according to the path given to it during the setup. 
    So far I have only succeeded in manually entering the absolute path each time I add this step. What makes it even more annoying is the fact that LabVIEW interprets the path with the escape codes, rendering the path unusable. Manually adding a 2nd backslash at each '\' occurence adds another step to the process. I tried both String and Path type of inputs, and the SearchandReplace() or ToUpper() (trying to bypass the escape codes) functions in TestStand don't seem to help m.
    Your help is very much appreciated,
    Fred

    Eudaemonic,
    If you want to create a series of easy to configure step types so others can develop sequence files easily, you could use custom step types. When you create a custom step type you implement your own configuration dialog. Since you have control over what controls you expose in your configuration dialog, you can design it so the desired path is selected using a open file dialog. Refer to chapter 13 of the TestStand reference manual for more information about custom step types.
    If you do not want to create a custom step type but you still want to give access to your sequence developers to pre-configured steps, you can use templates. A step template is a snapshot of a step that you can reuse later. Let's assume that instead of asking your users to edit the step to enter the desired path, you create several step templates with different pre-configured paths and based on their applications requirements they could use the appropriate template. Refer to the NI TestStand Help for more information about the Templates list on the Insertion Palette.  
    Hope it helps.
    Antonio Lie. 

  • Thumbnails in "OPEN" dialog box too small to see!

    The thumbnails are  too small in the open dialog box so that I can't see the file I want to open.  Yes, you can make them bigger in finder itself...but I am always opening pictures and I just can't see them!
    Almost as frustrating as the column issue.   The name column is very very wide when I try to open a file.. so I can't sort by the other columns without dragging over the bar at the bottom of the screen.  THis is so so frustrating.  I resize but it doesn't stick to the next session.
    Apple invented the finder.  Why is it so inferior to windows explorer?

    The only solution to enlarging the icons in an application open dialog window is to use the Accessibility panel in System Preferences. Under Zoom, enable Use keyboard shortcuts to zoom.
    The first time you have an application open dialog, you press the keys: option + command + =  as many times as you want to zoom in. This will enlarge the open dialog window and its contents. When done, press option + command + 8 to restore normal window size. Subsequently, you can alternatively press option + command + 8 to zoom to the previous setting, or return to normal zoom.
    This is as good as it is going to get. The applications (not just Apple’s) only use a subset of Finder’s settings in the open dialogs, and these do not include icon enlargement settings, which as you realize, are part of the actual Finder’s settings. The application development frameworks, and not Finder, are remiss in not providing icon size adjustments in open dialog windows.
    You can provide feedback to Apple regarding OS X.

  • Customize Open dialog box from af:inputText

    Hi all,
    About af:inputFile I have more questions:
    -How can I set implicit path for af:inputFile?
    -When I click Browse button is opening an Open dialog Windows standard.
    It is possible to have Java Open dialog? How?
    -How can I show(sort) only text (.txt) files in Open dialog?

    Hi,
    not sure what you mean by "implicit path", but the answers for question 2 and 3 is
    2) no, because its an operation on the client
    3) you can't because the dialog is a browser dialog that we don't have control of
    Frank

  • "cannot open dialog preferences/ song settings"?

    Hi I hope you can help because I am getting desparate.
    I installed Logic Studio V.8.1 on my Imac (lots of ram, 1 year operating with no problems). I have had no trouble until the other day when I started to get the message "cannot open dialog window/preferences" or "song settings" and whenever I try to adjust any or most menu items with "....." after them. The bounce adjustments do not open either, and the core audio does not kick in on startup, the audio coming through the computer speakers. I eliminated and reinstalled Studio and it worked okay for awhile and then went haywire again. By the way I eliminated Logic 7.
    Are you aware of what could be the problem? I don´t see anything in the forums. Should I eliminate everything and reinstall 7 and 8 with the Key?
    Thanks for your help
    all the best
    Andy

    I had a PDF on my Desktop which somehow caused the problem. Preview could not open it either. Removing the PDF from the Desktop solved the problem...

  • Missing preview pane in Open dialog box

    Recently, the preview pane doesn't show in any file open dialog boxes. For instance, when viewing the list of files in the open dialog box I was previously able to single click on a file and to the right, I would see a preview of the file as well as some basic info. Now, that pane is gone. What's particularly vexing is that this is happening on both my MacBook and my MacBook Pro. On the MBP, I was running 10.6.2 and I ran Software update yesterday to 10.6.3 in an effort to fix it, but the problem is still there.

    While I'm not quite sure what you mean, it sounds to me like you had the Open dialog set for Column view, and at some point changed it to List view. Take a look at the toolbar at the top of the Open dialog window, you should see the back/forward buttons, then a group of three icons representing icon, list and column view. Both icon view and column view will show a preview icon of the selected file. Personally, I like icon view, since you see all the files that fit in the window with custom thumbs, and can pick what you want quickly. If you change the setting, in say Safari, to list view (which makes more sense in Safari), then the Open dialog for, say, TextEdit gets changed too. Just change it back by clicking the little icon in the toolbar at the top of the Open window.
    Francine
    Francine
    Schwieder

  • Smart Folders show icons only in Open Dialog pane

    Hi,
    I have created a couple of Smart Folders and put them in the side bar. When i select the Smart Folder, it shows the files and their preview icons. When i access the same Smart Folder in an Open Dialog pane from Keynote or another application, it shows regular file icons only, not the preview icons.
    Is this how it is supposed to work?

    While I'm not quite sure what you mean, it sounds to me like you had the Open dialog set for Column view, and at some point changed it to List view. Take a look at the toolbar at the top of the Open dialog window, you should see the back/forward buttons, then a group of three icons representing icon, list and column view. Both icon view and column view will show a preview icon of the selected file. Personally, I like icon view, since you see all the files that fit in the window with custom thumbs, and can pick what you want quickly. If you change the setting, in say Safari, to list view (which makes more sense in Safari), then the Open dialog for, say, TextEdit gets changed too. Just change it back by clicking the little icon in the toolbar at the top of the Open window.
    Francine
    Francine
    Schwieder

Maybe you are looking for