Jump to content

$oIE.document.parentWindow.eval and execScript


NewPlaza
 Share

Recommended Posts

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.

 

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

 
Link to comment
Share on other sites

  • Moderators

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

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

  • 1 month later...

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...