iOS HTMLviewer Call an Internal Method

Hi there,
Is it possible to have en iOSHTMLviewer call a Method in Xojo. If a HTML has a link that refers to a Method including Parameters. Can this be done In iOS / DeskTop?

Ex:

It is possible in Desktop because you have the TitleChanged, as well as StatusChanged events, which enable sending back data to the program.

Unfortunately, iOSHTMLViewer does not provide any of this, so you won’t be able to inform your program that something happened in the viewer.

I bumped into that 3 years ago already and posted this in feedback:
<https://xojo.com/issue/34768>

Shao Sean posted a workaround. I don’t know if it is 64 bit compliant, though.

Here is a discussion from the time:

https://forum.xojo.com/35394-request-statuschanged-or-titlechanged-for-ioshtmlviewer/0

Yes it is possible using Declares. I do it extensively in the Language Reference for Xojo app: https://apps.apple.com/us/app/language-reference-for-xojo/id1484982467

Let me setup a demo project and post it here in a few minutes.

Here it is:

https://www.jeremieleroy.com/upload/HTMLViewer_Callback.zip

I do not think that Xlink will work, but you can definitely use <a href=xojo://

[quote=464627:@Jeremie Leroy]Here it is:

https://www.jeremieleroy.com/upload/HTMLViewer_Callback.zip

I do not think that Xlink will work, but you can definitely use <a href=xojo://[/quote]
Absolutely great. The code is somewhat complex for a newbie for me, but I’ll get through it :slight_smile: Thank you so much