Navigate to another page in the app with JavaScript onClick or with an html link

MH
Martin H.
bitlogic Internet und Services AG

Hi,

Is there any way to navigate to another page in the app with JavaScript onClick or with an html link (<a href=...) while still passing parameters to the target page?


Thanks a lot

Martin

4 years ago
SOTI Snap
ANSWERS
S
SMod@Soti
4 years ago

Hi Martin,

Just to clarify, is the target page a Snap app page or a webpage? Are these path parameters that need to be set?

The Label widget in Snap offer onClick event which can be used to mimic a HTML link and you can use navigate to action to navigate to a webpage/page as required.

There also is a Link widget which can be used to navigate to a predefined URL.

Thanks,

MH
Martin H.
4 years ago

Hi,

It is a snap app page at the target site.
I have built a dynamic html table in the snap app with javascript in which I have to add links to another snap app page. To the target snap app page I need to pass some data (id, date). On the target page I have to be able to read this data again.

Thanks