I see your problem. However, I do believe that most of the recent
smart phones support javascript, including basic Ajax.
Definitely iPhone/iTouch, and I believe the T1 too. I'm not sure
about the most recent Blackberries and Nokias (but it's
something I need to find out).
I guess it would depend on exactly what your market covers.
--Ken
On Mar 2, 2009, at 5:18 PM, Jonathan Mast wrote:
Thanks Ken, the problem with this solution is that these pages are for
viewing on mobile phones, most of which do not have JavaScript
capability.
What I had in mind was akin to what I do on regular website when I
want a
link to generate a file that is saved to disk (an excel report app,
for
instance). In this case, I set the Content-Disposition: to file or
whatever
by calling method in the response object.
There must be something similar that can make the browser behave
like it has
just clicked a regular TEL:NNNNNNNNNN link.
On Mon, Mar 2, 2009 at 4:00 PM, Ken Bowen <kbo...@als.com> wrote:
Well, a very generic way of getting a hold of a "click" in the
kind of
setting you're describing
would be to an an "onclick" to the link, invoking some Javascript
doing
whatever you want.
Maybe something like <a href="tel:5555555555
onclick="myCalltrackingCode();">here</a> to listen!
Almost all html entities support onclick.
--Ken
On Mar 2, 2009, at 3:22 PM, Jonathan Mast wrote:
[Sorry for this non-Tomcat specific question, but Sun Forums didn't
help
me
much with this one]
I would like to know how to imitate the click of link in JSP or
serlvet,
in
order to track clicks.
I have pages with links containing tel protocol URIs like this:
Click <a href="tel:5555555555">here</a> to listen!
I want to replace the above with something like this:
Click <a href="call_tracking.jsp?pn=5555555555">here</a> to listen!
And have call_tracking.jsp do its tracking stuff and then spawn a
phone
call, just like the first example does. I do not want to bother
the user
with another page, hence the need to accomplish the click action
programmatically. I presume this feat is achievable via Response
header
magic, I just don't know the right incantation ;-)
I should add that this is not necessarily a TEL-specific question,
I am
looking for a generic, protocol-independent mechanism for
mimicking a
"click".
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org