Double Click Does Not Work

48 views
Skip to first unread message

seyyed mohammad sayyadi kenari

unread,
Nov 15, 2014, 9:39:29 AM11/15/14
to izwebfil...@googlegroups.com
Hi there,

I've upload a page containing one izwebfilemanager and configure that with ClientOpenItemFunction="fileSelected" which the fileSelected function is listed bellow:
    <script>
        function fileSelected(path) {
            alert(path);
        }
    </script>
It works on my machine well but does not work online: http://www.vm.somee.com/webform1.aspx
Double-clicking files in the online version do nothing!

Thanks for any guideline,

SMS.

seyyed mohammad sayyadi kenari

unread,
Nov 17, 2014, 1:30:35 AM11/17/14
to izwebfil...@googlegroups.com
Is anyone there?
my page markup:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="TestIZWebFileManager.WebForm1" %>

<%@ Register assembly="IZ.WebFileManager" namespace="IZ.WebFileManager" tagprefix="iz" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    <script>
        function fileSelected(path) {
            alert(path);
        }

    </script>
    
        <iz:FileManager ID="FileManager1" runat="server" height="300" width="400"
            ClientOpenItemFunction="fileSelected">
            <RootDirectories>
        <iz:RootDirectory DirectoryPath="~/Images" Text="Content Folder" />
    </RootDirectories>
            
        </iz:FileManager>
    
    </div>
    </form>
</body>
</html>

There is no code in code behind.

any guideline?

Igor Zelmanovich

unread,
Nov 17, 2014, 4:11:07 AM11/17/14
to izwebfil...@googlegroups.com
Just debugged your page.

Seems your host append some content to generated response.

For example, the navigation request (double-click) get javascript  block in response:

"var folderTree = window['WFM_' + context.ClientID + '_FolderTree'];
window['WFM_' + context.ClientID + '_SelectedFolderPath'] = ['facf09a4','62e52a17']
if(folderTree) {folderTree.Navigate (window['WFM_' + context.ClientID + '_SelectedFolderPath'],0);}
var dir = '%2fContent%20Folder%2fmedia'
WebForm_GetElementById(context.ClientID+'_Directory').value = dir;
var address = WebForm_GetElementById(context.ClientID+'_Address');
if(address) address.value = decodeURIComponent(dir);
var searchTerm = WebForm_GetElementById(context.ClientID+'_SearchTerm');
if(searchTerm) searchTerm.value = '';
window['WFM_' + context.ClientID].ClearSearchBox();
WFM_FileManager1_Controller.OnRefresh(context,null)
<!--SCRIPT GENERATED BY SERVER! PLEASE REMOVE-->
<center><a href="http://somee.com">Web hosting by Somee.com</a></center>
</textarea></xml></script></noframes></noscript></object></layer></style></title></applet>
<script language="JavaScript" src="http://ads.mgmt.somee.com/serveimages/ad2/WholeInsert4.js"></script>
<!--SCRIPT GENERATED BY SERVER! PLEASE REMOVE-->"

Where <!-- SCRIPT .... --> block is not originally what IZWebFileManager produces.

You should remove it, possible it is configurable with your host service.

--
You received this message because you are subscribed to the Google Groups "izwebfilemanager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to izwebfilemanag...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

seyyed mohammad sayyadi kenari

unread,
Nov 17, 2014, 5:22:44 AM11/17/14
to izwebfil...@googlegroups.com
Thank you for time being spent debugging the page,

Somee is free windows web hosting and appended some ad. related things to the response as you said. I think it will be a good place to test izwebfilemanager but it wasn't.

When I tested the sample on the other hosts it works fine.

Thanks again.
Reply all
Reply to author
Forward
0 new messages