Hi.
I've got a form (Form1) containing a uHTML widget. I do a lot of stuff here, starting with
MY_HTML = "&file://%%$URLMENU$"
$fieldhandle(MY_HTML)->$widgetoperation("JS:doStuff", l_json)
Then I do muliple stuff, including navigating with changing the file the same way in a trigger of MY_HTML
trigger goToNextPage
MY_HTML = "&file://%%$URLPAGE1$"
$fieldhandle(MY_HTML)->$widgetoperation("JS:doOtherStuff")
end
It works, no problem.
Now I have a other form (Form2), also with an uHTML widget, totally unrelated to the first one. I start it the same way.
MY_OTHER_HTML = "&file://%%$OTHERURL$"
$fieldhandle(MY_OTHER_HTML)->$widgetoperation("JS:doNewStuff", l_json)
But when it opens, here is what happens :
Form2 opens with the last content of Form1 (!!!)
Then some time passes (perhaps the stuff I'm preparing in my Form, reading data)
Then the HTML goes blank and error are fired (mainly "HTML Widget: Uncaught ReferenceError: doNewStuff is not defined")
If I exit Form2 and relaunch it, it works.
Does any of you have already had this behavior ? And know a way to avoid it ?
Thanks
------------------------------
Jean-Marc SALIS
Mp Services
Montauban Cedex FR
------------------------------