/ Forums / Advansys Formativ / Creating Solutions with Formativ / Formativ Portals and frames

  • Creator
    Topic
  • #3992
    Anonymous

    My goal is to extract data from an existing website and use that data in an e-mail message. First, I show the website in a portal. Works ok. When I tried to parse the html, I noticed that this doesn’t work because the actual data I try to extract is within a frame. Question: How can I get the html-code from a specific frame in a portal?

    Regards,

    Ronald.

  • Author
    Replies
  • #6799
    Support 1
    Participant

    Use the Document property of the Portal object. This is the same Document object exposed by the Internet Explorer browser to scripting languages like JavaScript and VBScript. The reference for this object model is at HTML and DHTML Reference.

    As for obtaining the HTML for a specific FRAME, I have not done this. In fact, this is not a Formativ issue, rather it involves programming with the HTML document object model (DOM). I would look at Working with Windows, Frames and Dialog Boxes, especially the frames(i).document property (where i is the index of the relevant frame in the web page frames collection).

    Advansys Support

    #6800
    Anonymous

    Thanks! I’ll dig into that..

    #6798
    Support 1
    Participant

    Glad to be of some help.

    Advansys Support

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.