onload event suppressed ?

I just found out that onload does not seem to fire within a WebSDK HTMLArea. Is this normal ?

Where are you putting onload?
I’ve only ever used it on the body tag.

[quote=234098:@Tim Parnell]Where are you putting onload?
I’ve only ever used it on the body tag.[/quote]

Precisely. In the HTMLArea, it simply does not fire. All other events do.

I made a very small test page which works just fine in a browser, but not in HTMLArea.

I guess I will simply use the Xojo Open event to trigger the JavaScript.

Onload inside an htmlviewer will only fire inside of the viewer itself.

If you’re really using the htmlarea control (from the WebSDK) then it’s not a page, it’s just a div, and those don’t have onload events.

[quote=234196:@Greg O’Lone]Onload inside an htmlviewer will only fire inside of the viewer itself.

If you’re really using the htmlarea control (from the WebSDK) then it’s not a page, it’s just a div, and those don’t have onload events.[/quote]

Alright. So I will keep calling a method from the Xojo Open event.

Thank you.

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.