Fazan123312 Posted February 20, 2015 Share Posted February 20, 2015 hi i have a problem calling java functions on IE7 installed on win xp. This is the problematic html part: <div class="btn-group"> <a class="btn dropdown-toggle" data-toggle="dropdown" style="width: 94px; margin-left: 20px;"> Dodaj ... <span class="caret"></span> </a> <ul class="dropdown-menu"> <!-- dropdown menu links --> <li><a onclick="objSMSsend.addPhoneClicked()">phone number</a></li> <li class="divider"></li> <li><a onclick="objSMSsend.addAddrClicked()">addr number</a></li> <li class="divider"></li> <li><a onclick="objSMSsend.addGroupClicked()">group</a></li> <li class="divider"></li> <li><a onclick="objSMSsend.showImportDialog()">CSV file</a></li> </ul> </div> problematic part: <li><a onclick="objSMSsend.addPhoneClicked()">phone number</a></li> i have tried this: $oIE = _IECreate ("my link") $oIEDoc = _IEDocGetObj($oIE) $oIEDoc.parentwindow.setTimeout("objSMSsend.addPhoneClicked()", 0) $oIE.document.parentwindow.eval("objSMSsend.addPhoneClicked()") $oIE.window.execScript("objSMSsend.addPhoneClicked()") $oIE.window.execScript("objSMSsend.addPhoneClicked()","javascript") $oIe.document.parentWindow.execScript("objSMSsend.addPhoneClicked()","javascript") $oIEDoc.window.execScript("objSMSsend.addPhoneClicked()") nothing works of this examples. f you got any idea i would appreciate it, thx Fazan Link to comment Share on other sites More sharing options...
mikell Posted February 20, 2015 Share Posted February 20, 2015 Did you try _IELinkClickByText($oIE, "phone number") ? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 20, 2015 Moderators Share Posted February 20, 2015 _IEFormElementOptionSelect() doesn't work for you? Have you tried getting a reference to the objsend object? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Fazan123312 Posted February 21, 2015 Author Share Posted February 21, 2015 Did you try _IELinkClickByText($oIE, "phone number") ? yes didnt solve problem _IEFormElementOptionSelect() doesn't work for you? Have you tried getting a reference to the objsend object? i dont need to select it i only need to call this event onclick="objSMSsend.addPhoneClicked()" Link to comment Share on other sites More sharing options...
mikell Posted February 21, 2015 Share Posted February 21, 2015 Select it then $oObject.fireEvent("onclick") Link to comment Share on other sites More sharing options...
Fazan123312 Posted February 22, 2015 Author Share Posted February 22, 2015 Select it then $oObject.fireEvent("onclick") can you please show me how to implement it in my example? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now