Sign in to follow this  
Followers 0
Fazan123312

Problems with IE 7 on win XP

6 posts in this topic

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&nbsp;...&nbsp;&nbsp;
                    <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

Share this post


Link to post
Share on other sites



_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.

Share this post


Link to post
Share on other sites

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()"

Share this post


Link to post
Share on other sites

Select it then $oObject.fireEvent("onclick")

Share this post


Link to post
Share on other sites

Select it then $oObject.fireEvent("onclick")

 

can you please show me how to implement it in my example? 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0