This is a migrated thread and some comments may be shown as answers.

[Solved] FlashManager returning src

1 Answer 95 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 27 May 2009, 09:37 PM
Hi,
After some version you have changed the returned method for all Managers. Only Imagemanager is documented in some posts. Could you explain how to return the "src" of FlashManager in the  txt.value=args.get_value(); I searching the path to the file.
Could you post plz for the tree Managers the method to get the src of file.
 
Thanks 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Jun 2009, 03:29 PM
Hi Romi,

You can see how to use the flash manager as a standalone dialog in this forum thread: standalone image dialog startup properties (see the last post in the end).

You can obtain the path value from the get_value() method using the following code:
<script type="text/javascript">      
function FlashManagerFunction(sender, args)      
{      
    var txt = $get('<%= TextBox1.ClientID %>');      
    var selectedItem = args.get_value();   
    var div = document.createElement("div"); 
    div.innerHTML = selectedItem; 
    var src = div.firstChild.firstChild.value; 
     
    txt.value = src;  
}      
   
function OpenFlashManager()    
{    
    var args = new Telerik.Web.UI.EditorCommandEventArgs("FlashManager"nulldocument.createElement("a"));    
    args.CssClasses = [];    
        
    $find('<%= DialogOpener1.ClientID %>').open('FlashManager', args);    
}    
</script>     
             
<asp:TextBox runat="server" ID="TextBox1" Width="400px"></asp:TextBox><br />     
<telerik:dialogopener runat="server" id="DialogOpener1" AdditionalQueryString=""  
         HandlerUrl="Telerik.Web.UI.DialogHandler.aspx" style="display: none;"></telerik:dialogopener>     
<button onclick="OpenFlashManager();return false;">Open Flash Manager</button>   


Greetings,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Pierre
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or