ole_browser.object.document.Script.resetdata()
ole_browser.object.document.ParentWindow.resetdata()
But, if the name of the function contains upper case letters, for
example if it is resetData(), it doesn't work - for some reason even
if the power script reads:
ole_browser.object.document.Script.resetData()
it calls the javascript function as all lowercase.
Does anybody have an idea why this is or a way around it?
Also, I have seen reference to people calling javascript functions in
browser controls in other languages with code that looks something
like:
...document.InvokeScript("resetData()")
I can't get InvokeScript to work in PowerBuilder. Am I missing
something or does it not exist?
Any help is appreciated.
Thanks,
Mark
Try ole_browser.object.document.ParentWindow.ExecScript("resetData()")
Thanks!