Accessing WebDesktopManager from Windows With Nested IFrames

4 replies. Last post: November 17, 2009 3:12 PM by Alex H
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Alex HMember

Hello,

What's the best way to access the WebDesktopManager to call a javascript create window function.  To date, I have been including a JavaScript function on the page that has the WebDesktopManager on it.  I call it from panes of windows using the parent.parent.getWindow function


    function addWindow(name, text, imageURL, contentURL, width, height, allowMin, allowMax, allowClose)
{
var dm = ISGetObject("WebDesktopManager1");
var wnd = dm.GetWindow(name);
if (wnd == null)
{
wnd = new WebDesktopWindow();
wnd.Text = text;
wnd.Name = name;
wnd.ControlBoxImage = "is_webdesktop-16.gif";
wnd.ContentURL = contentURL;
wnd.ContentMode = "UseIFrame";
wnd.AllowMinimize = allowMin;
wnd.AllowMaximize = allowMax;
wnd.AllowClose = allowClose;

dm.Windows.Add(wnd);
wnd.Show();
wnd.ResizeTo(width, height);
wnd.MoveToCenterDesktop();
}
else
{
wnd.Activate();
wnd.Show();
}

}


Clearly there must be a better way to access the WebDesktopManager via Javascript from within a Window other than using the parent.Function() method.

It's especially complicated in my situation where the window has a WebPane which an IFrame which has a Master Page which then loads an IFrame in a WebTab.


All times are GMT -5. The time now is 10:30 AM.
Previous Next