User Profile & Activity

Hamdy Ghanem Member
Page
of 3

here you can get it

http://code.google.com/p/owu-dnn-clb/source/browse/trunk/owu-dnn-clb/App_Browsers/OceanAppleWebKit.browser?spec=svn10&r=3


for the sample webdesktop just create the folder App_Browsers

and put that file

so the control will not work

or send me email and I will send u complete project 

Dear Yudi


in the OceanAppleWebKit.browser file

I chnage this line

<userAgent match="Chrome/(?'version'(?'major'\d+)(?'minor'\.\d+)\.\d+.\d+)\sSafari/\d+\.\d+" />


by this line 

<userAgent match="Version/((?'version'(?'major'\d+)(?'minor'\.\d+.\d+)))|Version/((?'version'(?'major'\d+)(?'minor'\.\d+)))" />

it worked but you know this is just a workaround and we need to know what is the issue if we use the right line
waiting for a feed back

Dear Yudi 

Thanks for replay

there is no specific scenario , just add the file to the  App_Browsers folder , so  the webdesktop will not work

if you remove it it will work

the bad news that realy I need it and have to attach this file, abd I do not know how to fix it or where is the error , it already took full day to know  that is the issue

thanks in advance 

Posted: January 24, 2011 8:24 AM
This is happenng in chrome, why?

facing the same problem

any solutions?

Posted: August 3, 2010 3:21 AM

Thanx it  is working great

but how can i make it in server side 

like response. redirect

Posted: August 2, 2010 4:01 PM

I havee a main page (desktop.aspx) has the webdesktop control

this page has children icons

every icon open a page

one page (Users.aspx) has a button

I need when I click in a button (search) on the user page to set content (redirect) to a another page 

Posted: May 4, 2010 3:40 AM

The issue :

that the windows cllection will remove the child window if the user close a dialog from this child window

So Active window is null and also if  I tried to get the window by GetWindow function it will retrive  null as well

Then I checked the windows.lenght if gound it zero


So

I implement a workaroud as follow

 function Button1_onclick() {
            var dialogbox = ISGetObject("WebDialogBox1");
            var wnd = ISGetDesktopManager();
            if (lastwnd == null)
                lastwnd = wnd.GetActiveWindow();
            dialogbox.ShowDialog();
        }

 assiging a bublic variable lastwnd before opening the dialog


and in closing


var lastwnd =null ;
 function Button2_onclick() {
            var wnd = ISGetDesktopManager();
    if (wnd.GetActiveWindow() !=null)
        wnd.GetActiveWindow().Close();
    if (lastwnd !=null)
        lastwnd.Close();
        }

 I will close this public variable if the GetActiveWindow retrieve null



and It works correctly



Posted: May 4, 2010 2:30 AM

Dear Julia

Still the sample not my case

my case , that the button which close the opened window in the window it self not in the parent

I attached your sample after making my case

and it has the error

1- open the dialog box from the child window

2- close the dialog

3- close the child window from the button on it (Close the form)

if i did not open the dilaog box the button will wiork and close the window 

sorry the code by VB.net

and also he is the code PageDialogBox

<%@ Page Language="vb" AutoEventWireup="true" CodeFile="PageDialogBox.aspx.vb" Inherits="PageDialogBox" %>
<%@ Register Assembly="ISNet.WebUI.WebDesktop" Namespace="ISNet.WebUI.WebDesktop"
    TagPrefix="ISWebDesktop" %>
<html>
<head id="Head1" runat="server">
    <title></title>
    <script language="javascript" type="text/javascript">
// <!CDATA[
 function Button2_onclick() {
            var wnd = ISGetDesktopManager();
            var activeWnd = wnd.GetActiveWindow();
            alert(activeWnd.Name + " is closed");  //activeWnd would be 'Window 1'
            activeWnd.Close();
        }
        function Button1_onclick() {
            var dialogbox = ISGetObject("WebDialogBox1");
            dialogbox.ShowDialog();
        }
// ]]>
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ISWebDesktop:WebDialogBox ID="WebDialogBox1" runat="server" Height="150px" Width="400px">
            <WindowSettings>
                <WindowStyle>
                    <Normal BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                        Font-Names="Tahoma" Font-Size="8pt">
                    </Normal>
                    <Active BaseStyle="Normal" BorderColor="Gray">
                    </Active>
                </WindowStyle>
                <CaptionStyle>
                    <Normal Cursor="Default" BackColor2="Gainsboro" BackColor="Gray" Font-Bold="True"
                        Font-Names="Tahoma" Font-Size="10pt" ForeColor="White">
                        <Padding Top="2px" Left="2px" Right="2px" Bottom="2px"></Padding>
                    </Normal>
                    <Active BackColor2="192, 192, 255" BaseStyle="Normal" BackColor="Navy">
                    </Active>
                </CaptionStyle>
                <CaptionButtonStyle>
                    <Normal Overflow="Hidden" OverflowY="Hidden" OverflowX="Hidden" BorderColor="White"
                        BorderStyle="Solid" BorderWidth="1px" Height="17px">
                    </Normal>
                    <Over BaseStyle="Normal">
                        <BorderSettings>
                            <Bottom Color="Gray"></Bottom>
                            <Right Color="Gray"></Right>
                        </BorderSettings>
                    </Over>
                    <Active BaseStyle="Normal">
                        <BorderSettings>
                            <Left Color="Gray"></Left>
                            <Top Color="Gray"></Top>
                        </BorderSettings>
                    </Active>
                </CaptionButtonStyle>
                <ContainerStyle BackColor="White" Font-Names="Tahoma" Font-Size="8pt" Height="100%"
                    Width="100%">
                    <Padding Top="4px" Left="4px" Right="4px" Bottom="4px"></Padding>
                </ContainerStyle>
                <CommandButtonStyle>
                    <Normal BackColor="Control" BorderColor="ControlDarkDark" BorderStyle="Solid" BorderWidth="1px"
                        Font-Bold="False" Font-Italic="False" Font-Names="Tahoma" Font-Size="8pt" Font-Underline="False">
                    </Normal>
                    <Over BaseStyle="Normal" BackColor="#C5C2AF">
                    </Over>
                    <Active BaseStyle="Normal" BackColor="#8A887B" ForeColor="White">
                    </Active>
                </CommandButtonStyle>
                <CommandButtonDisabledStyle BackgroundImage="" CustomRules="" BackColor="Control"
                    BorderColor="ControlDarkDark" BorderStyle="Solid" BorderWidth="1px" Font-Bold="False"
                    Font-Italic="False" Font-Names="Tahoma" Font-Size="8pt" Font-Underline="False"
                    ForeColor="Gray">
                </CommandButtonDisabledStyle>
            </WindowSettings>
        </ISWebDesktop:WebDialogBox>
        <input id="Button1" type="button" value="button" onclick="return Button1_onclick()" /></div>
         <input id="Button2" type="button" value="close this form" onclick="return Button2_onclick()" />
    </form>
</body>
</html>

 

Posted: May 3, 2010 5:08 AM

Thanks for supporting

but it is still not wotking

my case as follow

1- open the dialog

2 -close the dialog

3- close the page

var activeWnd = wnd.GetActiveWindow();

 activeWnd object is null

that happened also with ur code by the way




All times are GMT -5. The time now is 3:38 PM.
Previous Next