HtmlViewRun returns nothing

BlitzMax Forums/MaxGUI Module/HtmlViewRun returns nothing

fredborg(Posted 2008) [#1]
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?


skidracer(Posted 2008) [#2]
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.


fredborg(Posted 2008) [#3]
Thanks, that works .. more or less :) It seems it loses events if window.location is launched fast after each other.


skidracer(Posted 2008) [#4]
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.


fredborg(Posted 2008) [#5]
Thanks, I've got it working with less commands being passed back and forth. So no need for experiments :)