Jump to content

Internet Explorer Refresh


Recommended Posts

Inside IE, I was wondering how can I tell when a web page/frame refreshes. I would like to program either a loop or find a way to wait until it does. Any help is greatly appreciated.

Klaki

You may find the solution or many great pointers if you look for IE.au3 in the forums - Dale has spent a lot of time to produce a very useful UDF that may do exactly what you need.
Link to comment
Share on other sites

Inside IE, I was wondering how can I tell when a web page/frame refreshes. I would like to program either a loop or find a way to wait until it does. Any help is greatly appreciated.

Klaki

IE.au3 will give you tools to approch this in many ways -- how you choose to do it will depend on your requirements. Suggest you take a look at the library and then post specifiecs of what you are trying to do and what artifacts in IE you are trying to key off of.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

IE.au3 will give you tools to approch this in many ways -- how you choose to do it will depend on your requirements. Suggest you take a look at the library and then post specifiecs of what you are trying to do and what artifacts in IE you are trying to key off of.

Dale

I'm wanting to wait until a certain frame refreshes after a form is submitted. I got it working by using the following:

$startBodyWait = _IEBodyReadHTML($oFrame)
_IEFormSubmit($oForm)
Do
    $sBodyWait = _IEBodyReadHTML($oFrame)
Until ($startBody <> $sBodyWait)

Is there a better way?

Link to comment
Share on other sites

I'm wanting to wait until a certain frame refreshes after a form is submitted. I got it working by using the following:

$startBodyWait = _IEBodyReadHTML($oFrame)
_IEFormSubmit($oForm)
Do
    $sBodyWait = _IEBodyReadHTML($oFrame)
Until ($startBody <> $sBodyWait)

Is there a better way?

If your're simply trying to insure that the frame cotent is complete after the form submission you can just do:
_IELoadWait($oFrame)

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

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