How to intercept client side script events in CHTMLView?
Hi,
Im trying to capture each url clicked on within a CHTMLView. I have a particular problem on a particular site
http://abdataclassaction.com/Cases.aspx
When you click on one of the case name links, it is being internally resolved by something called ASPxCallback.
Does not seem to be anything in CHTMLView that I can override to intercept these callbacks.
Is it possible to capture all these client side script events?
Re: How to intercept client side script events in CHTMLView?
Re: How to intercept client side script events in CHTMLView?
Hi Krishna, thanks for that link.
Unfortunately there is not really a tutorial to go with it and Im still a little lost.
I have incorporated the source code into my project. My View now inherits from CDHtmlViewSpec
rather than directly from CHtmlView. But what now?
What would I override or do with this new base class in order to get the specific callback to the server when a user clicks on any of the cases within the webpage I give above?
Thanks in advance.
Re: How to intercept client side script events in CHTMLView?
Im still stuck on this problem, someone must have some insight?
Where say you have the more conventional <a href="http://
abdataclassaction.com/Cases.aspx " > click here </a> its fine all the
events fire and plus these seem to resolve to a unique URL.
But for this specific problem when they click on a link - internally
it calls a script function - something like OnCaseGoto( 1) which is
then using ASPxCallback, this is not being reflected back into
HTMLView.
My basic problem is I dont know what the problem is?
Some events are firing like
OnDownloadBegin
OnDownloadComplete
But when I then call GetLocationURL within these event handlers the
url returned is always the root
http://abdataclassaction.com/Cases.aspx
Not anything to indicate the specific case/link they have selected.
But via this ASPxCallback it must be connecting to the server with
some unique case parameters.
I need to know what case they have clicked on. Assuming it is
possible?