Thanks a lot guys!
Almost worked it out now, but I still have a bit of a problem.
I have the following code:
code:
WndProfileInformation = MsgPlus.CreateWnd('WndProfileInformation.xml', 'WndProfileInformation');
if(MsgPlus.DownloadFile(avatar))
{
Debug.Trace('[Download] Started');
}
else
{
Debug.Trace('[Download] Failed');
}
And then you have to use the OnEvent_DownloadFileComplete(), but how do I append the image to the above made window? How can I get the WndProfileInformation window in the OnEvent_DownloadFileComplete function?
code:
function OnEvent_DownloadFileComplete(Url, OutFile, Success)
{
if(Succes)
{
WndProfileInformation.ImgElmt_SetImageFile('ImgDisplayPic', OutFile);
var File = new ActiveXObject("Scripting.FileSystemObject");
File.DeleteFile(OutFile);
}
}