Welcome Guest Search | Active Topics | Members | Log In | Register

Click Action Options
tcromer
Posted: Thursday, July 21, 2011 12:58:50 PM
Rank: Advanced Member

Joined: 4/21/2011
Posts: 30
Points: 90
I have a panel that displays pdf documents and uses the EntreeListItemDetailHyperLink control to heyper link to the document. My question is how can I intercept the hyper link click action perform some logging code and then have the pdf document load?
joe
Posted: Thursday, July 21, 2011 1:06:59 PM

Rank: ME Staff

Joined: 1/12/2009
Posts: 279
Points: 408
Location: VA
Does the logic need to be server side or client side?

If it can be client side, you could put something like the following in your href:

javascript:doLogging();window.location='mypdf.pdf'

If it has to occur server side, you could have a proxy service that your pdf's are loaded through that you link to from ME. An ASPX page that you would pass a parameter to that is the PDF you want to load. Something like LoadDocument.aspx?doc=mypdf.pdf. Then to make sure ME doesn't intercept the request for LoadDocument.aspx, you would add that to the Ignored Paths in Central Administration.

-joe
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.