Accessing a modal dialogue without displaying the editor itself

Last post 08-22-2005, 4:47 AM by dotcom. 1 replies.
Sort Posts: Previous Next
  •  05-13-2005, 8:20 PM 6675

    Accessing a modal dialogue without displaying the editor itself

    Hi,
     
    I was trying to access the Insert Image modal dialog without actually displaying the editor itself.  In version 2.0, we were able to do something like:

    showModalDialog( '/CuteEditor_Files/Insert_image.aspx?UC=en-us&gp=/Uploads/Banners&MaxImageSize=100&Th_W=80&Th_H=80&Th_C=5&Th_R=4&Upload=true', 'ImageManager', 'dialogWidth:550px;dialogHeight:590px;resizable=yes;help=yes;scroll=yes;status=no')
     
    I tried to mimic something like that:

    showModalDialog( '/metagame/CuteSoft_Client/CuteEditor/Dialogs/InsertGallery.aspx?settinghash=[[_setting_]]', 'Image Manager', 'status:no; dialogWidth:705px; dialogHeight:630px; scroll:yes; resizable:yes; help:no')
     
    However, I'm stuck at obtaining [[_setting_]].  Is it even possible to access a modal dialog without invoking the editor?  I guess that I could try hiding the editor in a <DIV> and seeing if I'm still able to display the modal dialog.  However, I'd prefer to avoid having to try this if at all possible.
     
    Fermin
  •  08-22-2005, 4:47 AM 9829 in reply to 6675

    Re: Accessing a modal dialogue without displaying the editor itself

    Hi Fermin,
     
    I think the answer to your question is to use the following code in your BLOCKED SCRIPT
     
     var url=showModalDialog("../CuteSoft_Client/CuteEditor/Dialogs/InsertImage.aspx?settinghash=&<%=Editor1.Setting.GetHashString()%>", "Image Manager","dialogWidth:670px;dialogHeight:650px");
     
    You can instantiate a protected CuteEditor.Editor instance in your page_load event to allow the embedded ASP code to be resolved. However, this still doesn't completely solve the problem, as when you run your javascript function, it gives a "Setting not found" ASP.NET error when trying to open the dialog.
     
    Anyone know the cause of that?
     
    Paul

    Paul Taylor
    Dotcom Software Solutions
View as RSS news feed in XML