Hi, Im using 'Returning Values from a Dialog Demo' in my project, but i can't get asp:Image.ImageUrl and send it to radWindow. That work fine with textarea, but not with Images. I think that problem its in javascript. There are same way to send this value?
Thanks for your support.
function showDialog() | |
{ | |
//Force reload in order to guarantee that the onload event handler of the dialog which configures it executes on every show. | |
var oWnd = window.radopen(null, "DialogWindow"); | |
oWnd.setUrl(oWnd.get_navigateUrl()); | |
} | |
//Called when a window is being shown. Good for setting an argument to the window | |
function OnClientshow(radWindow) | |
{ | |
//Get current content of textarea | |
var oText = document.getElementById("ImageFoto1"); | |
//Create a new Object to be used as an argument to the radWindow | |
var arg = new Object(); | |
//Using an Object as a argument is convenient as it allows setting many properties. | |
arg.ImageUrl = oText.ImageUrl; // This don't work | |
//Set the argument object to the radWindow | |
//radWindow.Argument = arg; | |
radWindow.Argument = arg; | |
} |
Thanks for your support.