Bernd and Andrew,
I decided to go back to revBrowser to try to solve my problem and I have found what I believe is a bug in revBrowser. I think this needs to be called to the attention of the REV programmers. What is the proper way for doing this?
It is very simple to demonstrate and has to do with how revBrowser works on a PC as opposed to how it works on a Mac. The simple demonstration has you create a stack with a single button whose code is shown below. It is best to place the button near the top right side of the window because of where the rect paints the results of the browse. The URL that is used is one that anyone should be able to access without having to worry about permission.
Code: Select all
on mouseUp
local tBrowserId
put "http://finance.yahoo.com/q?s=AAPL" into tURL
put revBrowserOpen(the windowId of this stack, tURL) into tBrowserId
revBrowserSet tBrowserId, "rect", "10,50,500,500"
if tBrowserId is not an integer then
answer "Failed to open browser"
exit mouseup
end if
wait 10 seconds
put revBrowserGet(tBrowserId, "htmltext") into tString
answer len(tString)
put tString
revBrowserClose tBrowserID
end mouseUp
On a Mac the rect is filled with a visible version of the browse, the length of the string tString is answered ( varies but over 60,000 chars) and the string itself is placed in the message box for inspection. Works fine on a Mac and I'm positive you could modify the URL with other stock symbols and it would still work.
On a PC, however, the length of the string is 41 and the message box is filled with:
<HTML><HEAD></HEAD>
<BODY></BODY></HTML>
Visually, when you run it on a PC, you will briefly notice the rect filled with the results of the browse but then a line that says 'Loading...' is inserted directly above where it says 'Apple Inc.- The browse never finishes apparently because the message remains there until everything gets reset. As fair as I know that 'Loading..' message never appears on the Mac or at least doesn't appear long enough to notice. Also 10 seconds should be more than enough time for things to complete.
Please give this a try to make sure I'm not seeing things and then advise me about officially reporting it.
Thanks you and regards,
Larry