Re: using InsertDocument.js to show custom data from list

  •  04-01-2010, 4:02 PM

    Re: using InsertDocument.js to show custom data from list

    You need to open/edit Dialog_InsertDocument.js file.
     
    The following is the default function.
     
    1. function row_click(row)  
    2. {  
    3.     var isdir;  
    4.     if(Browser_IsOpera())  
    5.     {  
    6.         isdir=row.getAttribute("isdir")=="true";  
    7.     }  
    8.     else  
    9.     {  
    10.         isdir=row.isdir;  
    11.     }  
    12.           
    13.     if(isdir)  
    14.     {  
    15.         //if is check box  
    16.         if(Event_GetSrcElement().nodeName=='INPUT')return;  
    17.       
    18.         hiddenAction.value="changedir";  
    19.         hiddenActionData.value=row.getAttribute("path");  
    20.         window.PostBackAction();  
    21.     }  
    22.     else//Preview  
    23.     {  
    24.         var path=row.getAttribute("path");  
    25.         hiddenFile.value=path;  
    26.         var url=row.getAttribute("url");  
    27.         Window_GetElement(window,"TargetUrl",true).value=url;  
    28.           
    29.         var htmlcode = row.getAttribute("htmlcode");  
    30.         if(htmlcode!=""&&htmlcode!=null)  
    31.         {  
    32.             do_preview(htmlcode);  
    33.         }  
    34.         else  
    35.         {  
    36.             try{  
    37.                 Actualsize();  
    38.             }  
    39.             catch(x)  
    40.             {  
    41.                 do_preview();  
    42.             }  
    43.         }  
    44.     }  

     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread