logging hyperlink clicks

Dr Caroline Wilkins caroline at ib2bsystems.com
Thu Nov 3 12:34:31 UTC 2022

Dear Rob,

A couple of methods to make the link open in a new tab/window:

<a href="#" onClick="window.open('https://www.omnis.net/', 
'new')">Javascript Method</a>
<a href="https://www.omnis.net/" target="new">New Method</a>

....and obviously you put the tracking link as a parameter on the URL, 
which is picked up by the remote task and stored to the database however 
you wish.

The target gets set from the link before it is clicked, not by the Omnis 

Or did I misunderstand the question?!

Kindest Regards


On 03/11/2022 11:39, Rob Mostyn wrote:
> Dear $Listers,
> This is a problem I’ve thought about before but never actually implemented.  Now I really want to implement it but I’m not sure how to do it.
> It is an ultra thin application.
> Omnis returns HTML to a browser to render.
> On this page I want to present a number of links to external resources (other websites, documents on the web etc).
> Ok… that is easy by providing hyperlinks on the web page to these other resources.
> But I want to log what links gave been clicked.  Google does this on its search results.
> Clicking on the link calls Omnis.
> A parameter to the call denotes which link.
> Omnis is invoked and the link can be logged.
> But how do I return to the browser with “execute this hyperlink on a new tab/window”, leaving the previously despatched HTML as is?
> Or I could return the previously generated HTML but how do I invoke the browser to follow the link?
> Has anyone else tried to do this?  I know there is a way to tell  a browser to redirect but I don’t know how this works.
> Help!
> Rob Mostyn
> +44 (0)20 3233 0044
> As Carl Sagan once said:
> One of the great commandments of science is, "Mistrust arguments from authority." ... Too many such arguments have proved too painfully wrong. Authorities must prove their contentions like everybody else.
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com

More information about the omnisdev-en mailing list