Hi
I need to use a standalone image editor and have used the example found here:
http://www.telerik.com/community/forums/thread/b311D-bemgcg.aspx
However all i need to do is save the image name to my database so i have adjusted the JavaScript as followed:
function ImageManagerFunction(sender, args)
{
var selectedItem = args.SelectedItem;
var resultImageObject = args.Result;
var Filename;
var txt = $get('<%= txtLinkImage.ClientID %>');
if (document.all)
{
Filename = selectedItem.getPath();
txt.value= Filename.replace('/media/content/','');
}
else
{
txt.value = selectedItem.getPath();
}
}
PROBLEM:
If I re-open the editor it does not show the selected image on the righthand side. Does anyone know a work around.
Many thanks
T
I need to use a standalone image editor and have used the example found here:
http://www.telerik.com/community/forums/thread/b311D-bemgcg.aspx
However all i need to do is save the image name to my database so i have adjusted the JavaScript as followed:
function ImageManagerFunction(sender, args)
{
var selectedItem = args.SelectedItem;
var resultImageObject = args.Result;
var Filename;
var txt = $get('<%= txtLinkImage.ClientID %>');
if (document.all)
{
Filename = selectedItem.getPath();
txt.value= Filename.replace('/media/content/','');
}
else
{
txt.value = selectedItem.getPath();
}
}
PROBLEM:
If I re-open the editor it does not show the selected image on the righthand side. Does anyone know a work around.
Many thanks
T