Cannot get GetCurrentHTMLPagePath to work

webguy22

Member
Code:
function DemoCallback(content) {
	alert("DemoCallback");
	alert(content);
} 
function clearFolders(oForm) {
	exeoutput.GetHEScriptCom('hescript://UserMain.GetHTMLPath',DemoCallback); 
}
My UserMain:
Code:
function GetHTMLPath: String;  
Begin      
   MessageBox("Start GetHTML Path","Test",MB_OK); 
   Result := GetCurrentHTMLPagePath(); 
   MessageBox(Result, "path", MB_OK);
Result is always empty.
Anybody see why this would not work?
 
Avoid GetCurrentHTMLPagePath (it should be removed in the future) and use JavaScript, for instance:
Code:
const currentUrl = window.location.href;
 
Back
Top