#1
|
|||
|
|||
![]()
Good day! I have someone trying to run my SecureCRT/Javascript application on their Windows 10 machine with IE 11 and it is not running properly. The ActiveXObject that is working perfectly on my Windows 7 IE 11 platform.
Code:
//Get a reference to IE's Application object var g_objIE = new ActiveXObject("InternetExplorer.Application"); g_objIE.Offline = true; g_objIE.navigate("Title of the Application"); //This loop is required to allow the IE object to finish loading... while(g_objIE.Busy){ crt.Sleep(100); } var htmlFile = "_Dialog_Template.html"; var newDomDoc = ReplaceData(ReadFileG(htmlFile)); // Get html content g_objIE.document.write(newDomDoc); I have made sure ActiveX was enabled in the security settings in IE as well as checking the box to allow local active content to run on my computer. I have tried throwing in some hard coded simple html in the write command... none of which worked. Please help as there doesn't seem to be jack online about this issue either. Thank you! Last edited by mschaafs; 02-01-2018 at 12:04 PM. |
#2
|
|||
|
|||
![]()
Actually, if possible... is there a way to have a MessageBox timeout? Close after a specified period if not confirmed? Then I can do away with IE and ActiveX in my app.
|
#3
|
|||
|
|||
objShell.Popup(strText,[nSecondsToWait],[strTitle],[nType])
__________________
Version 6.7.3 (build 292) |
#4
|
|||
|
|||
Hi mschaafs,
I did not get the same results as your colleague was getting. I wonder if it has to do with Windows 10 preferring Edge, but that's sort of outside the scope of SecureCRT support, so I will leave that part of it to the community. ![]() Since I don't have the complete script, I could not see where you would make use of MessageBox() with a timeout. Please elaborate. Maybe there's a currently available alternative.
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#5
|
|||
|
|||
![]()
Good day! Thank you bstedh and Brenda for your responses!
Indeed bstedh's response was exactly what I needed... Utilizing Windows Shell instead of IE is perfect for this app. I am super grateful. I found good info on it here: http://4umi.com/web/javascript/shell.php And ended up ditching that block of code for: Code:
function TimedDialog(tdTimer, tdMessage, tdTitle){ var wsh = new ActiveXObject('WScript.Shell'); popup = wsh.Popup( tdMessage, tdTimer, tdTitle, 64 ); } |
#6
|
|||
|
|||
Hi mschaafs,
Excellent, I am glad to hear you were able to incorporate bstedh's idea into your script! Thanks for the suggestion bstedh!
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
![]() |
Tags |
activex , internet explorer , popup , windows 10 , wscript |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|