Find already opened modal dialog

Dear Friends,
I have opened the modal dialog through some action. But in my application
there is a chance for opening Modal dialog from other thread (due to some notification from server). Is there any way to check programatically, whether the modal dialog is already opened or not. If any one knows please help me, It is very urgent.
Thanks,
V.S.Saravanan

hi,
what about this:
public class MyMessageShower
  private static boolean isShowing = false;
  public static void showErrorMessage ()
    isShowing = true;
    JOptionPane.showMessageDialog (...);
    isShowing = false;
  public static boolean isShowing ()
    return isShowing;
}greetz,
Stijn

Similar Messages

  • Find in Open/Save Dialog boxes

    The find in open/save dialog boxes seems to return unexpected results. Say I have two folders one called "Down under" and the other called "Down under 2". If I ask it to find "down" it only returns the file "Down under 2" and other files whose content may have the word "down" in them. The folder "Down under 2" only has jpegs in it. None have "Down" in the file name.
    So what gives?

    Surely someone knows what is going on in spotlight. If I use Easyfind for the search it comes up with both files folders correctly.

  • Open Modal Dialog on Page Load of MOSS 2010

    Hi All
    We are trying to open modal dialog when home page opens on Sharepoint portal 2010
    We followed these steps:
    1. Created Page
    2. Created HTML Form Editor web part
    3. Added following code to its source
    <script type="text/javascript" language="javascript">
    Alert('Shahab');
    _spBodyOnLoadFunctionNames.push("HideNewIcons");
    function HideNewIcons(){
      var options=SP.UI.$create_DialogOptions();
    options.url='http://servername/sites/itd/SitePages/Test.aspx?IsDlg=1';
    options.height = 400;void(SP.UI.ModalDialog.showModalDialog(options))
    _spBodyOnLoadFunctionNames.push("HideNewIcons");
    </script>
    4. Neither ALERT nor MODAL DIALOG appear.
    We are on MOSS 2012. I checked the net and found there might be some issues in 2010. However, it works best on 2007
    Is there any other solution?
    Regards
    SSA

    Hi ,
    I understand that you want to open a modal dialog on page load in SharePoint 2010. The code Ashish provided works great. But you need to put the code on the page directly by editing the page in SharePoint designer(When putting the code in Content Editor
    Web Part ,the modal dialog doesn’t pop up correctly).
    Edit the page in SharePoint designer in Advanced Mode.
    Browse to the bottom of the code view .
    Add the code before the </asp:Content> tab.
    <script language="javascript" type="text/javascript">
            ExecuteOrDelayUntilScriptLoaded(yourFunction, 'SP.js');
            function yourFunction() {
                var options = { url:
    '/_layouts/viewlsts.aspx', title: 'Title, Description, and Icon', width: 640, height: 400 };
                 SP.UI.ModalDialog.showModalDialog(options);
             _spBodyOnLoadFunctionNames.push("yourFunction()");
    </script>
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • Clicking a frame in the taskbar that has an open modal dialog

    hi guys,
    ive written a small application which openes several dialogs. since i need to pass it to less experienced users who dont know how to use alt+tab (on windows) i have a question:
    if there is an open modal dialog with my frame as owner and it isnt activated / on top of the screen a click onto the taskbar icon (the frame) should bring up the dialog with the frame in the background.
    testing this results in a behaviour i didnt expect - not the modal dialog with the frame in the background pops up but the frame without showing up the dialog.
    since dialogs dont get an entry in the taskbar the 0815-user doesnt know how to get back the dialog. and even worse - he cant do anything anymore (modal dialog..).
    how can i fix that problem?
    thanks in advance

    lol
    got the problem
    i added the owner of the dialog - but in a different class ;)
    my test case was still null

  • RW2 preview in finder and "Open file" dialog

    Hello,
    I run into a curiosity with RW2 file format (from LX3 and FZ38). In Finder, RW2 preview is not displayed and only default icon (black icon with text exec in corner). The same RW2 files does have correct preview, when I browse them in "Open file" dialog window (for example Safari > File > Open File...).
    How it is possible the Finder and Open dialog do have different settings? Is it possible to copy these settings?
    Thank You

    see thread http://discussions.apple.com/thread.jspa?messageID=3805971&#3805971
    though no solution yet.

  • Open Modal Dialog in Photoshop (Mac)

    I can't seem to open a modal dialog in Photoshop on the Mac with the CS SDK. The code works fine in InDesign. In Photoshop, the modality is there (the application responds to mouse clicks with a bell) but the window is not visible. Here is my mx:WindowedApplication:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
         <mx:Script>
              <![CDATA[
                   import com.adobe.csxs.types.CSXSWindowType;
                   import mx.core.Window;
                   protected function onClick(event:MouseEvent):void
                        var w:Window = new TestDialog();
                        if (w) {
                             w.type = CSXSWindowType.MODAL_DIALOG;
                             w.resizable = false;
                             w.open();
              ]]>
         </mx:Script>
         <mx:Button x="10" y="10" label="Open Popup" click="onClick(event)"/>
    </mx:WindowedApplication>
    The Window itself is more or less copied from the "MakeSideHeads" sample project:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Window xmlns:mx="http://www.adobe.com/2006/mxml"
                 title="Test"
                 titleAlignment="center"
                 layout="absolute"
                 width="300"
                 height="100"
                 showStatusBar="false">
         <mx:Script>
              <![CDATA[
                   private function myCloseWindow():void{
                        this.close();
              ]]>
         </mx:Script>
         <mx:Canvas width="100%" height="100%" id="TestPanel" backgroundColor="#D2D2D2">
              <mx:VBox verticalAlign="middle" horizontalAlign="center" height="100%" width="100%">
                   <mx:HBox height ="90%" width="100%">
                        <mx:Text width="100%" height="100%" text="Some Text"/>
                   </mx:HBox>
                   <mx:HBox  height = "10%" horizontalAlign="center">
                        <mx:Button id="CloseButton" label="Close" click="myCloseWindow()" />
                   </mx:HBox>
              </mx:VBox>
         </mx:Canvas>
    </mx:Window>
    This seems like quite a significant bug. Or am I missing something?

    Hello,
    I've tested this one and it works.
    main.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <csxs:CSXSWindowedApplication xmlns:csxs="com.adobe.csxs.core.*"
         xmlns:mx="http://www.adobe.com/2006/mxml"
         historyManagementEnabled="false">
         <mx:Script>
              <![CDATA[
                   import com.adobe.csxs.types.CSXSWindowType;
                   import mx.core.Window;
                   import ModalDialog;
                   public function showModal():void
                        var window:Window = new ModalDialog;
                        window.type = CSXSWindowType.MODAL_DIALOG;
                        window.resizable = false;
                        window.open();
              ]]>
         </mx:Script>     
              <mx:Button label="Display Modal Dialog" click="showModal()"/>          
    </csxs:CSXSWindowedApplication>
    The following is the ModalDialog.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Window
         xmlns:mx="http://www.adobe.com/2006/mxml"
         layout="absolute"
         width="300"
         height="200"
         creationComplete="onCreationComplete()"
         title="Modal Dialog"
         >
         <mx:Script>
              <![CDATA[
                   private function onCreationComplete():void
                        //Center the window on the screen
                        var screenBounds:Rectangle = Screen.mainScreen.bounds;
                        nativeWindow.x = (screenBounds.width - nativeWindow.width) / 2;
                        nativeWindow.y = (screenBounds.height - nativeWindow.height) / 2;
              ]]>
         </mx:Script>
         <mx:VBox verticalAlign="middle" textAlign="center" horizontalAlign="center">
              <mx:HBox horizontalAlign="center">
                   <mx:Label text = "This is an example of a modal dialog box."/>
              </mx:HBox>
              <mx:HBox horizontalAlign="center">
                   <mx:Button label = "Close" click="close()"/>
              </mx:HBox>
         </mx:VBox>
    </mx:Window>

  • WebUtil within Oracle Forms (Find File - Open File Dialog Window)

    I have successfully configured WebUtil and I can successfully execute the functions. I have been working with PKG_FIND_FILE.Selection function (which displays an Open File Dialog Window).
    I cannot figure out why the following is occurring:
    When I call the above function, the system typically displays an older dialog window (light blue / gray) window. For a brief time, we were able to bring up the "Windows looking" dialog window. I don't know what we changed in the configuration, but it is now back to the older looking light blue/gray dialog window.
    Any ideas on where in the configuration, this would cause the dialog window to switch its "look and feel"
    Thanks,
    Mike

    File dialog look has been changed because of the java version difference.
    In Java 1.4 the look is different and 1.5 shows another way.
    So check which java plugin and the version of the java
    ( go to control panel->settings -> click on java and check on version)
    Rajesh ALex

  • How do I get my columns in finder and open/save dialog boxes to stay at the widths I set?

    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.
    It is almost as frustrating as the thumbnails being too small in the open dialog box so that I can't see the file I want to open.
    Apple invented the finder.  Why is it so inferior to windows explorer?

    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • Error while opening modal (skillbuilder plugin)  page on page load

    Hi all,
    I'm using 4.2.1. ( on 11GR2 ), theme 25.
    Skillbuilder Modal page plugin v2
    Modal pages are working great, on all kinds of events, but if I try to open one via a D.A. on page load it fails with "Uncaught TypeError: Object load has no method 'stopImmediatePropagation' " error (in the browser console).
    <edit>
    just found that this error is caused by the "cancel event" DA action which should be fired after the open modal dialog action. If I ommit this cancel event the modal page is not loaded but also no error is shown.
    </edit>
    Any ideas on how to fix this? In the end I just want to open a modal window after the page is loaded depending on the value of an item set when loading the page ( the branch sets an item value to indicate that the modal window should be opend ).
    Regards
    Bas
    Edited by: Bas de Klerk on 11-apr-2013 7:43

    Narrowed it down to change in behaviour between APEX 4.1 and APEX 4.2
    Page source for both versions is alsmost similar, besides the different APEX js libraries being loaded, so probably the source of the problem is somehow in there.
    Apex 4.1 generates code below :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html lang="nl" xmlns="http://www.w3.org/1999/xhtml" xmlns:htmldb="http://htmldb.oracle.com" xmlns:apex="http://apex.oracle.com">
    <head>
      <title>sdfsdfsf</title>
    <link rel="stylesheet" href="/i/css/apex_4_1.min.css" type="text/css" />
    <!--[if IE]><link rel="stylesheet" href="/i/css/apex_ie_4_1.css" type="text/css" /><![endif]-->
    <link rel="stylesheet" href="/i/libraries/jquery-ui/1.8.14/themes/base/jquery-ui.min.css" type="text/css" />
    <script type="text/javascript">var apex_img_dir = "/i/", htmldb_Img_Dir = apex_img_dir;</script><script src="/i/javascript/apex_4_1.min.js" type="text/javascript"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0.css" type="text/css" />
      <!--[if IE]><link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0_ie.css" type="text/css" /><![endif]-->
      <!--[if IE 6]><link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0_ie6.css" type="text/css" /><![endif]-->
      <!--[if IE 7]><link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0_ie7.css" type="text/css" /><![endif]-->
    </head>
    <body >
    <!--[if lte IE 6]><div id="outdated-browser">You are using an outdated web browser. For a list of supported browsers, please reference the Oracle Application Express Installation Guide.</div><![endif]-->
    <form action="wwv_flow.accept" method="post" name="wwv_flow" id="wwvFlowForm">
    <input type="hidden" name="p_flow_id" value="101" id="pFlowId" /><input type="hidden" name="p_flow_step_id" value="3" id="pFlowStepId" /><input type="hidden" name="p_instance" value="3963167387744880" id="pInstance" /><input type="hidden" name="p_page_submission_id" value="1130499891713056" id="pPageSubmissionId" /><input type="hidden" name="p_request" value="" id="pRequest" />
    <div id="header">
      <div id="app-logo"><a href="f?p=101:1:3963167387744880"><span style="font-family:Arial; color:green; font-size:18; white-space:nowrap; font-weight:bold;">SoMStudie v1.06 - Productie</span></a></div>
      <div id="navbar">
        <div class="navbar-entry"><a href="javascript:{if (confirm('Applicatie uitloggen ? Niet opgeslagen wijzigingen gaan verloren !')) redirect('wwv_flow_custom_auth_std.logout?p_this_flow=101&p_next_flow_page_sess=101:1');}" class="navbar-link">Uitloggen</a></div>
        <div class="app-user">Welcome: ADMIN</div>
      </div>
    </div>
    <div id="tabs">
      <div class="frame">
        <div class="bg">
          <div class="tab-holder">
          </div>
        </div>
      </div>
    </div>
    <div id="topbar"></div>
    <div id="messages"></div>
    <div id="body">
      <table class="tbl-body" cellspacing="0" cellpadding="0" border="0" summary="">
        <tbody>
          <tr>
            <td class="tbl-main" width="100%"><div class="rounded-corner-region" id="R9719141085411482" >
      <div class="rc-blue-top"><div class="rc-blue-top-r">
        <div class="rc-title">sdfsdf</div>
        <div class="rc-buttons"></div>
      </div></div>
      <div class="rc-body"><div class="rc-body-r"><div class="rc-content-main"><table id="apex_layout_9719141085411482" border="0" class="formlayout" summary="" role="presentation" datatable=0 ><tr><td nowrap="nowrap" align="right"><label for="P3_X" tabindex="999"><a class="optional-w-help" href="javascript:popupFieldHelp('9719940026416952','3963167387744880')" tabindex="999">X</a></label></td>
    <td  colspan="1" rowspan="1" align="left" valign="middle"><input type="hidden" name="p_arg_names" value="9719940026416952" /><input type="text" id="P3_X" name="p_t01" value="" size="30" maxlength="4000" class="text_field" /></td></tr>
    </table>
    </div></div></div>
      <div class="rc-bottom"><div class="rc-bottom-r"></div></div>
    </div></td>
            <td class="tbl-sidebar"></td>    
          </tr>
        </tbody>
      </table>
    </div><div id="footer"><div class="content">
      <div id="customize"></div> 
    </div></div>
    <input type="hidden" name="p_md5_checksum" value=""  /></form>
    <script type="text/javascript">
    apex.da.initDaEventList = function(){
    apex.da.gEventList = [
    {"triggeringElement":"document","triggeringElementType":"DOM_OBJECT","bindType":"bind","bindEventType":"ready",actionList:[{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,javascriptFunction:function(){
       if (this.browserEvent !== 'load'){
          apex.jQuery(document).apex_modal_page('openPageFromApexThis', this);
    },"attribute02":"STATIC","attribute03":"f?p=101:21:3963167387744880::21:::","attribute05":"data-url","attribute06":"div#success-message","attribute07":"AUTO","action":"PLUGIN_COM_SKILLBUILDERS_MODAL_PAGE"},{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,javascriptFunction:apex.da.cancelEvent,"action":"NATIVE_CANCEL_EVENT"}]}];
    </script>
    <link rel="stylesheet" href="#PLUGIN_PREFIX#plugins/modal-page/server/TEST.css" type="text/css" />
    <script type="text/javascript" src="wwv_flow_file_mgr.get_file?p_plugin_id=34423998056404065675&p_security_group_id=4874907161072557&p_file_name=jquery.colorbox-min.js"></script>
    <script type="text/javascript" src="wwv_flow_file_mgr.get_file?p_plugin_id=34423998056404065675&p_security_group_id=4874907161072557&p_file_name=apex_modal_page.min.js"></script>
    <script type="text/javascript">
    <!--
    apex.jQuery(document).ready(function(){
    (function(){apex.jQuery(document).apex_modal_page({
       "transition":"none",
       "draggable":true,
       "initialHeight":100,
       "initialWidth":300,
       "overlayOpacity":.5,
       "scrolling":true,
       "loadingImageSrc":""
    (function(){apex.da.initDaEventList();})();
    (function(){apex.da.init();})();
    //-->
    </script></body>
    </html>Apex 4.2 on same server etc, after upgrade generates code below :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html lang="nl" xmlns="http://www.w3.org/1999/xhtml" xmlns:htmldb="http://htmldb.oracle.com" xmlns:apex="http://apex.oracle.com">
    <head>
      <title>sdfsdfsf</title>
      <link rel="stylesheet" href="/i/css/apex.min.css?v=4.2.0.00.27" type="text/css" />
    <!--[if IE]><link rel="stylesheet" href="/i/css/apex_ie.min.css?v=4.2.0.00.27" type="text/css" /><![endif]-->
    <link rel="stylesheet" href="/i/libraries/jquery-ui/1.8.22/themes/base/jquery-ui.min.css" type="text/css" />
    <script type="text/javascript">
    var apex_img_dir = "/i/", htmldb_Img_Dir = apex_img_dir;
    </script>
    <script src="/i/libraries/apex/minified/desktop_all.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <script src="/i/libraries/apex/minified/legacy.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0.css" type="text/css" />
      <!--[if IE]><link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0_ie.css" type="text/css" /><![endif]-->
      <!--[if IE 6]><link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0_ie6.css" type="text/css" /><![endif]-->
      <!--[if IE 7]><link rel="stylesheet" href="/i/themes/theme_2/css/theme_4_0_ie7.css" type="text/css" /><![endif]-->
    </head>
    <body >
    <!--[if lte IE 6]><div id="outdated-browser">You are using an outdated web browser. For a list of supported browsers, please reference the Oracle Application Express Installation Guide.</div><![endif]-->
    <form action="wwv_flow.accept" method="post" name="wwv_flow" id="wwvFlowForm" novalidate >
    <input type="hidden" name="p_flow_id" value="101" id="pFlowId" /><input type="hidden" name="p_flow_step_id" value="3" id="pFlowStepId" /><input type="hidden" name="p_instance" value="2102738057213" id="pInstance" /><input type="hidden" name="p_page_submission_id" value="6687700944614" id="pPageSubmissionId" /><input type="hidden" name="p_request" value="" id="pRequest" />
    <div id="header">
      <div id="app-logo"><a href="f?p=101:1:2102738057213"><span style="font-family:Arial; color:green; font-size:18; white-space:nowrap; font-weight:bold;">SoMStudie v1.06 - Productie</span></a></div>
      <div id="navbar">
        <div class="navbar-entry"><a href="javascript:{if (confirm('Applicatie uitloggen ? Niet opgeslagen wijzigingen gaan verloren !')) redirect('wwv_flow_custom_auth_std.logout?p_this_flow=101&p_next_flow_page_sess=101:1');}" class="navbar-link">Uitloggen</a></div>
        <div class="app-user">Welcome: ADMIN</div>
      </div>
    </div>
    <div id="tabs">
      <div class="frame">
        <div class="bg">
          <div class="tab-holder">
          </div>
        </div>
      </div>
    </div>
    <div id="topbar"></div>
    <div id="messages"></div>
    <div id="body">
      <table class="tbl-body" cellspacing="0" cellpadding="0" border="0" summary="">
        <tbody>
          <tr>
            <td class="tbl-main" width="100%"><div class="rounded-corner-region" id="R9719141085411482" >
      <div class="rc-blue-top"><div class="rc-blue-top-r">
        <div class="rc-title">sdfsdf</div>
        <div class="rc-buttons"></div>
      </div></div>
      <div class="rc-body"><div class="rc-body-r"><div class="rc-content-main"><table id="apex_layout_9719141085411482" border="0" class="formlayout"  summary="" role="presentation"><tr><td nowrap="nowrap" align="right"><label for="P3_X" tabindex="999"><a class="optional-w-help" href="javascript:popupFieldHelp('9719940026416952','2102738057213')" tabindex="999">X</a></label></td><td  align="left" valign="middle"><input type="hidden" name="p_arg_names" value="9719940026416952" /><input type="text" id="P3_X" name="p_t01" class="text_field"  value="" size="30" maxlength="4000"  /></td></tr></table></div></div></div>
      <div class="rc-bottom"><div class="rc-bottom-r"></div></div>
    </div></td>
            <td class="tbl-sidebar"></td>    
          </tr>
        </tbody>
      </table>
    </div><div id="footer"><div class="content">
      <div id="customize"></div> 
    </div></div>
    <input type="hidden" name="p_md5_checksum" value=""  /><input type="hidden" name="p_page_checksum" value="E08AB8A6D69B3450572EC2E89A528B29" id="pPageChecksum" /></form>
    <script type="text/javascript">
    apex.da.initDaEventList = function(){
    apex.da.gEventList = [
    {"bindEventType":"ready",actionList:[{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,javascriptFunction:function(){
       if (this.browserEvent !== 'load'){
          apex.jQuery(document).apex_modal_page('openPageFromApexThis', this);
    },"attribute02":"STATIC","attribute03":"f?p=101:21:2102738057213::21:::","attribute05":"data-url","attribute06":"div#success-message","attribute07":"AUTO","action":"PLUGIN_COM_SKILLBUILDERS_MODAL_PAGE"},{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,javascriptFunction:apex.da.cancelEvent,"action":"NATIVE_CANCEL_EVENT"}]}];
    </script>
    <link rel="stylesheet" href="#PLUGIN_PREFIX#plugins/modal-page/server/TEST.css" type="text/css" />
    <script type="text/javascript" src="wwv_flow_file_mgr.get_file?p_plugin_id=34423998056404065675&p_security_group_id=4874907161072557&p_file_name=jquery.colorbox-min.js"></script>
    <script type="text/javascript" src="wwv_flow_file_mgr.get_file?p_plugin_id=34423998056404065675&p_security_group_id=4874907161072557&p_file_name=apex_modal_page.min.js"></script>
    <script type="text/javascript">
    apex.jQuery( document ).ready( function() {
    (function(){apex.jQuery(document).apex_modal_page({
       "transition":"none",
       "draggable":true,
       "initialHeight":100,
       "initialWidth":300,
       "overlayOpacity":.5,
       "scrolling":true,
       "loadingImageSrc":""
    (function(){apex.da.initDaEventList();})();
    (function(){apex.da.init();})();
    });</script>
    </body>
    </html>Any suggestions why this plugin does not load on page load in 4.2 would be great ( a fix would be even better :) ).
    Regards

  • How to customize URL in modal dialog script?

    Hi All,
    I am using JSLink to open Modal dialog, want to customize the url by adding '&DefaultView=Email' to URL in script. How to do this in below script:
    (function () {
    // Create object that have the context information about the field that we want to change it output render
    var pictureFiledContext = {};
    pictureFiledContext.Templates = {};
    pictureFiledContext.Templates.Fields = {
    //"Picture" is the column name.
    "Picture": { "View": pictureFiledTemplate }
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(pictureFiledContext);
    function pictureFiledTemplate(ctx) {
    var url= ctx.CurrentItem[ctx.CurrentFieldSchema.Name];
    var itemID=ctx.CurrentItem.ID;
    var itemTitle=ctx.CurrentItem.Title;
    return "<img alt='"+url+"' src='"+url+"' complete='complete' onclick=\"openModalDialog('EditForm.aspx?ID="+itemID+"','"+itemTitle+"')\" />";
    function openModalDialog(url,title)
    var options = {
    title: "Item-"+title,
    width: 600,
    height: 600,
    url: url
    SP.UI.ModalDialog.showModalDialog(options);
    return false;
    Thanks in advance!

    You should be able to do it like this:
    function openModalDialog(url,title)
    var options = {
    title: "Item-"+title,
    width: 600,
    height: 600,
    url: url + "&DefaultView=Email"
    Brandon Atkinson
    Blog: http://brandonatkinson.blogspot.com

  • [JS] [CS3] UI Modal Dialog Layering

    I have a dialog with a list of objects, sort of object manager, with a typical New/Edit/Delete set of buttons. I'm showing this dialog modally. Now, the New/Edit buttons are supposed to open modal edit dialogs on top of this window. And they apparently do, but some kind of a bug or lack of knowledge on my side makes this work not exactly right. The problem is layering.
    Imagine this: I open a New/Edit dialog, then switch back to another application (which is something a user may do), and when I return back to my script, the editor is hidden behind the manager dialog, allowing me to click New/Edit buttons again.
    Thus, I was even able to open several instances of editor dialogs, until I finally I added code to prevent this. But still the interface problem remains: the editor dialog floats under the manager window - and this is contrary to the UI convention of modal dialogs.
    Is this something you guys are facing too? What am I doing wrong?
    I'm using this syntax to open modal dialogs:
    mywin = new Window ('dialog',...)
    Best
    Artur

    You will probably need to force your windows to a specific location on the screen to prevent overlap.

  • How to open modal popup using javascript in iPad ?

    Hi Apps masters
    How to open modal dialog ?
    How to return selected value to parent value ?
    How to close modal dialog ??
    Thanks,

    Hi,
    Try This
    function aboutOkButton(event) {
    var v= event.getSource();
    var popup = v.findComponent("popupId");
    popup.hide();
    event.cancel();
    Sameh Nassar

  • Blocking application input without a modal dialog

    Hi,
    Is it possible to block all input to a Swing application while still having the EDT running? I'd want the effect of opening a modal dialog without showing the dialog itself. This is required in order to wait for a SwingWorker thread to execute.
    The API documentation of SwingWorker.get() states that "When you want the SwingWorker to block on the Event Dispatch Thread we recommend that you use a modal dialog." However, I'm using a ProgressMonitor to monitor the progress of the worker which opens its own dialogs, so I don't want any other extra dialogs popping up. If the EDT simply waits for the worker, the ProgressMonitor dialog pops up but does not paint itself.
    I guess it might be possible to open an modal dialog that is invisible, but it probably can't be guaranteed to be invisible in all environments and not to show up in window lists.
    Is this possible using the normal API, or do I need to duplicate the functionality of ProgressMonitor using an always-open modal dialog (which would seem like quite a waste of code)?
    Also, is there any method that could be called at intervals and which would handle any pending EDT events? I've seen this in some other toolkits (for example GTK+), and it would simplify working in the EDT a lot.

    Thanks for the comments. Especially the page about the disabled glass pane summarized both methods well.
    However, my application may have sevelar application panes and dialogs open that modify the document. Disabling and re-enabling all of them manually would be quite a hassle. Unless somebody can give instructions on replicating the disabling effect of a modal dialog, I guess there are two possibilities left:
    1. Using a modal dialog that opens always, even for short tasks.
    2. Re-implementing the functionality of ProgressMonitor and blocking the EDT for the 0.5 - 1 seconds while it evaluates whether the task is long enough to open the dialog or not.

  • Is there a fix for modal dialogs opening behind palettes -cs6 -osx 10.6.8

    Is there a fix for modal dialogs open behind palettes in
    Photoshop cs6 13.0 (createive cloud update) + OSX 10.6.8 Snow Leopard on MacBook Pro? 
    ( I am using 2 monitors where the second monitor is set to be the menu display.  cs4 does not exhibit this bug. )
    Toggling the Application Frame off improves the hiding 'feature' but this does not include the desired continuous floating in front of palettes in all circumstances.
    An example is Blending Options, then chose Stroke, then chose the Color Picker.  After clicking OK, the Blending Options dialog now sits behind the palettes.  One trick is to click on another app, then back to cs6 to force a window redraw.
    It sure would help me if this could be solved.  I am preparing educational videos and this display bug makes things very troublesome.
    Thanks for any help.  If I find a solution, I will post to this thread so everyone can benefit.

    The setting for the graphics check box Does Not make a difference.  If I have a new document window open, then add a layer, then open the blending options > drop shadow > edit the color > the chooser dialog opens, and immediately both dialog windows drop behind the palettes AND any document windows.
    The same behavior for the Preferences dialog > guides > color.
    The quick workaround is to click another app, then back to CS6.  A real pain, of course.
    It is only a factor when opening a second (child) dialog box.
    Other CS6 apps do work correctly (eg. FW AE)
    I have yet to get a handle on this.  Mac OSX 10.6.8    CS6 13.0  x64
    Thanks for your replies, and the long reply time for me was a vaction away from the office.

  • How to open a modal dialog on another modal dialog?

    Hi,
    I am developing a plugin for Acrobat XI. The plugin adds a menu item. On clicking the menu item a dialog is opened.
    The dialog have some text and two buttons. One of the button closes the dilaog and the other button opens another dialog. All the dialogs are modal.
    I am using DialogBox  method to create both dialog boxes.
    I am able to open the first dialog window using the above method (Please refer FirstModalDialog.jpg) but only the components of second dialog is displayed without any window (SecondModalDialog.jpg).
    Can anyone tell me what am I doing wrong??
    Thanks

    I've never seen this effect, but here are a couple of things to try.
    1. Try bypassing the first dialog and just showing the second with the same code already used for that SECOND. (Reason: to test if it is invisible for some other reason unrelated to it being the second dialog).
    2. Drop the dialog code into a freestanding app, make the miminum changes to get it to compile, test. (Reason: to see if this is related to Acrobat, or to dialog handling).

Maybe you are looking for

  • Transfer MS Office to a new MBP

    A friend of mine bought Office a while back and they had a thing where you could install it on up to 3 machines or something like that, so he let me put it on my machine. I'm looking to get a new MBP, and so I want to know if they'll be able to trans

  • Multiple signatures in email

    I want to be able to pick up (and send) work email with my work signature, and personal email with a different signature from my Touch. Mail only seems to support one signature. Is there a get-around for this? Both are running from separate gmail acc

  • Problem in getting the new custom infotype in test client

    Hi All, I have created a new custom infotype. I can execute the infotype from the development system thru PA30. But when I tried to check in the test client (same system), it shows me that the infotype does not exist. Do I need to transport it to oth

  • Creating my first iMovie

    I am new to owning and using a mac and have just got back from a holiday where I took about 3 hrs worth of video footage on miniDv tapes. I would really like to know how to best go about converting this to a iMovie and ulitimately burn it to dvd. I t

  • Hacked ipod touch

    Some body had hacked my ipod touch device.Can any one please give me the solution ?