HtmlViewRun returns nothing
BlitzMax Forums/MaxGUI Module/HtmlViewRun returns nothing
| ||
Hi, HtmlViewRun doesn't return anything... I was expecting it to return the result of for instance a Javascript function call. So that if I had a Javascript function: function test() { return "oh yeah!"; } And I did: Print HtmlViewRun( htmlview, "test();" ) It would print "oh yeah!" in Blitzmax... Is that possible somehow? |
| ||
The IE design is async as in the script will probably be compiled, but launched and finished states unfortunately need to be handled with messages triggered by writing to the window.location property. |
| ||
Thanks, that works .. more or less :) It seems it loses events if window.location is launched fast after each other. |
| ||
Yeh, you can't really run one script if you haven't got the result from the previous. You may be able to append an iframe to the document with the src property being posted to maxgui, there may be a popupblocker in place in maxgui win32 c++ source that may need a little fiddling with if you feel like experimenting. |
| ||
Thanks, I've got it working with less commands being passed back and forth. So no need for experiments :) |