Try putting the function definition before the call to it and see if that does anything (quick cut and paste edit).
Dim LogOutSAT As String= "" _
+"function LogOutSAT() {" _
+" document.getElementById('ctl00_LnkBtnCierraSesion').click();" _
+"}; LogOutSAT();"
HTMLViewer1.ExecuteJavaScript(LogOutSAT)
If that doesnt work, try calling javascript:__doPostBack(‘ctl00$LnkBtnCierraSesion’,’’) directly from ExecuteJavaScript
If none of those work then its an IE security issue calling javascript. I’ve not played with it enough in Xojo to know about that, let me know how you get on.
[quote=267517:@]Try putting the function definition before the call to it and see if that does anything (quick cut and paste edit).
Dim LogOutSAT As String= "" _
+"function LogOutSAT() {" _
+" document.getElementById('ctl00_LnkBtnCierraSesion').click();" _
+"}; LogOutSAT();"
HTMLViewer1.ExecuteJavaScript(LogOutSAT)
If that doesnt work, try calling javascript:__doPostBack(‘ctl00$LnkBtnCierraSesion’,‘’) directly from ExecuteJavaScript
If none of those work then its an IE security issue calling javascript. I’ve not played with it enough in Xojo to know about that, let me know how you get on.[/quote]
Thanks Julian.
As you said, I call Javascript directly from ExecuteJavascript and it works on both platforms:
Dim LogOutSAT As String= "LogOutSAT();" _
+"function LogOutSAT() {" _
+" javascript:__doPostBack('ctl00$LnkBtnCierraSesion','');" _
+"};"
HTMLViewer1.ExecuteJavaScript(LogOutSAT)