NewPlaza

$oIE.document.parentWindow.eval and execScript

13 posts in this topic

Hello,

I updated internet explorer to version 11 and find that my script no longer works. I have played around with it and found these two statements no longer run correctly.

Local $Count = $oIE.document.parentWindow.eval('Unit_Count')

$oIE.document.parentwindow.execScript('UpdateCount();')

I did find similar posts in the forums about IE10 and IE11 having issues but didn't find a solution.

I hope someone can assist on this matter.

Thanks.

 

Share this post


Link to post
Share on other sites



As far as execScript.  It's been deprecated by microsoft in IE11.

Just a note.  The last update for IE11 on Dec 18, broke alot of internal functions all across the coding communities.  The solution has been to uninstall the update until microsoft fixes it.

 

Try using these alternatives.

'?do=embed' frameborder='0' data-embedContent>>


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

Thank you SmOke_N.

I will try your alternatives on Friday and let you know.

 

The solution has been to uninstall the update until microsoft fixes it.

 

So this move was not intentional by microsoft?

Share this post


Link to post
Share on other sites

So this move was not intentional by microsoft?

I don't work for them, nor do I know what their intentions may or may not be.  To date that I've read, I've not seen them admit the bug nor suggest there would be a fix for it soon.


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

#5 ·  Posted (edited)

Just call your function directly:

$myRet = $oIE.document.parentWindow.UpdateCount()

This is the way I do it and it doesn't seem to have any trouble. This way you don't need exeScript at all.

Edited by CliftonL

Share this post


Link to post
Share on other sites

Thanks CliftonL but this does not work. At lease in IE11 and me.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

SmOke_N,

Thanks for the sugestions but it seems they are not working either. For testing I tried the IEJSEvalExample.au3 and it simply opens a IE11 blank page then closes immediately. It displays no warnings or errors. There is no abandon IE processes left behind so at lease it closes IE gracefully.

The same test works great in IE8

Oh well,.. Thank you though.

Edited by NewPlaza

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Just call your function directly:

$myRet = $oIE.document.parentWindow.UpdateCount()

 

This is the way I do it and it doesn't seem to have any trouble. This way you don't need exeScript at all.

Thanks CliftonL but this does not work. At lease in IE11 and me.

strange, that should work if i remember correctly...

try it with '' maybe that is the problem in this case

 

$oIE.document.parentWindow.UpdateCount('')
Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

@NewPlaza

Did you uninstall the update from Dec 18?


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

SmOke_N,

No, I haven't.  I would but this move was the direction from our company. I do not want to circumvent a corporate change. I suppose if the pages them self were not woking then they may make an exception.

Share this post


Link to post
Share on other sites

oddly enough, I was able to update the count with the below statement.

$oIE.Navigate('JavaScript:UpdateCount();')

I'm 50% there! Ya!!

1 person likes this

Share this post


Link to post
Share on other sites

I think there's a patch for it, and if your company wants everything to run, they'll change it.

IE11 update from Dec 18 has broke stuff across the internet, not just your script.


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

#13 ·  Posted (edited)

Derek Smith from Microsoft says they will be issuing a fix for the Dec 18 problem.  The fix should be released in the not-too-distant future -- "next IE cumulative update" [after 1/14/2015].

Here is a "bug tracker" entry for this problem:

https://connect.microsoft.com/IE/feedback/details/1062093/installation-of-kb3025390-breaks-out-of-process-javascript-execution-in-ie11

Search for "Derek" to read the MSFT announcement on this issue.

Edited by MC256

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