How to intercept client side script events in CHTMLView?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: How to intercept client side script events in CHTMLView?

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    78

    Question 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?

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: How to intercept client side script events in CHTMLView?

    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Apr 2005
    Posts
    78

    Question 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.

  4. #4
    Join Date
    Apr 2005
    Posts
    78

    Question 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?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center