User Profile & Activity

Alex H Member
Page
of 3

Thanks, I will continue to use the syntax:

parent.parent.parent.parent.functionName(paramets);

to invoke JavaScript functions on my WebDesktopManager page.

I was able to resolve this by setting WindowInteractiveMode to shadow, and futher speed things up by disabling animations in WebDesktopManager.

Prior to this change, I experienced the above behavior problems in ALL browsers except IE.

Thank you

Posted: November 16, 2009 10:00 PM

Should I create a support ticket, or should we continue to troubleshoot this here.

Kindly read my last post.  Thank you!

Posted: November 16, 2009 8:36 PM

I'm not referring to a specific support article.  I'm referring to the WebCombo in the upper right hand corner of

http://support.intersoftpt.com/  to the right of "Look In"

Likewise, I'm curious how the image was added next to eht WebCombo Row Text

I continue to experience this issue on all computers I test it on.  It works in IE fine in all cases.

Is there a "click lock" feature that locks the curser to the window?  Sometimes my curser become stuck in "Move" mode when I move a window.  It's as if move mode isn't properly ending after my click release.

Is there a way to disable this feature?

How can I make my Window move behavior like yours on the Intersoft Network.  When moving a window on your WebDesktop, the window disappears and a "silhouette" appears.  How can I replicate this feature?


Just to help the community, here is the JavaScript addWnidow function which resides on the actual .aspx with WebDesktopManager1

    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();
}

}



   

Posted: November 15, 2009 12:36 PM

I understand that the "start menu" used on Dev2.intersoftpt.com uses WebCallout for its elegant interface, and rows of items that can be highlighted and expanded (displayed subrows to the right)

Can you kindly provide a sample of such an interface..... with details on templating, as Dev2 uses a vertical line in the start button that is very elegant.

Thank you

As expressed above, since I have various WebPanes and nested WebTabs in various pages, I was having problems accessing the WebDesktopManager via JavaScript since the number of "parents" varies depending on how many nested IFrames I have.


As a work around, I've created a class named LinkManager which automatically will create the links for me, and has a parameter to specify the "parentDepth".

While this works, it would be nicer if there was a way to access WebDesktopManager on child pages without using "parent".  Please let me know if this is possible.

Is it a bad practice to have multiple nested IFrames.  I realize each one is a seperate web page that needs loaded and thus is more of a load on the server -- but it's my understanding this is a much cleaner way to organize WebPane's and WebTabs as opposed to InLineContent, correct?


        public static string GetAddWindowCode(string wndName, string wndText, string wndImageURL, string wndContentURL, 
int width, int height, bool allowMinimize, bool allowMaximize, bool allowClose)
{
return string.Format("addWindow('{0}', '{1}', '{2}', '{3}', {4}, {5}, '{6}', '{7}', '{8}');",
wndName, wndText, wndImageURL, wndContentURL, width, height,
GetYesorNo(allowMinimize), GetYesorNo(allowMaximize), GetYesorNo(allowClose)); // this calls the javascript function on the parentpage that contains WebDesktopManager
}

public static string GetAddWindowCode(string wndName, string wndText, string wndImageURL, string wndContentURL,
int width, int height, bool allowMinimize, bool allowMaximize, bool allowClose, int parentDepth)
{
string parentString = "";
for (int i = 0; i < parentDepth; i++)
{
parentString += "parent.";
}
return string.Format("{0}{1}",
parentString, GetAddWindowCode(wndName, wndText, wndImageURL, wndContentURL, width, height, allowMinimize, allowMaximize, allowClose));

}


public static string GetAddWindowLink(string linkText, string wndName, string wndText, string wndImageURL, string wndContentURL,
int width, int height, bool allowMinimize, bool allowMaximize, bool allowClose, int parentDepth)
{
string parentString = "";
for (int i = 0; i < parentDepth; i++)
{
parentString += "parent.";
}
return string.Format("<a href=# OnClick=\"{0}{1}\">{2}</a>",
parentString, GetAddWindowCode(wndName, wndText, wndImageURL, wndContentURL, width, height, allowMinimize, allowMaximize, allowClose), linkText);
}

public static string GetAddWindowLink(string linkText, string wndName, string wndText, string wndImageURL, string wndContentURL,
int width, int height, bool allowMinimize, bool allowMaximize, bool allowClose)
{
return GetAddWindowLink(linkText, wndName, wndText, wndImageURL, wndContentURL, width, height, allowMinimize, allowMaximize, allowClose, 0);
}
public static string GetYesorNo(bool value)
{
if (value)
return "Yes";
return "No";
}


Thank you.  I will try this.  Looks to be just what I was looking for.


WebCombo

            <ISWebCombo:WebCombo ID="WebCombo1" runat="server" 
AllowAutoQueryHandler="False" MinCharsToRequest="3"
oninitializedatasource="WebCombo1_InitializeDataSource" UseDefaultStyle="true">
<MultipleSelectionSettings AllowBrowseAll="True" Enabled="True" />
</ISWebCombo:WebCombo>

Programmatically

    protected void WebCombo1_InitializeDataSource(object sender, ISNet.WebUI.WebCombo.DataSourceEventArgs e)
{
if (IsPostBack)
{

string t = "select * from Customers where CustomerID like '" + e.QueryText+ "%'";
OleDbDataAdapter da1 = new OleDbDataAdapter(t, con);
DataTable dt = new DataTable("Customers");
da1.Fill(dt);
da1.FillSchema(dt, SchemaType.Mapped);
e.DataSource = dt;
con.Close();
}
WebCombo1.DataTextField = "CustomerID";
WebCombo1.DataValueField = "CustomerID";
}


All times are GMT -5. The time now is 7:43 PM.
Previous Next