accessing a javascript variable using IHTMLDocument

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alf

    accessing a javascript variable using IHTMLDocument

    Hi,

    I have the IHTMLDocument2 interface set up for a web page in an MFC VC++
    prog.
    eg

    IHTMLDocument2* pHTMLDocument2;
    hr = pMC->QueryInterface (IID_IHTMLDocum ent2,
    (void**)&pHTMLD ocument2 );

    The page contains:
    var variable_name = "variable data";
    within a <SCRIPT> tag.
    Is there a straightforward way to return the value of the variable_name
    using the interface?

    Of course I know I can do a hard-coded search using, say, 'c' char
    functions, but I just wondered...

    TIA

    BTW
    Apologies if this is the wrong forum - please redirect me as appropriate.



  • kaeli

    #2
    Re: accessing a javascript variable using IHTMLDocument

    In article <40ace6a0$0$253 29$cc9e4d1f@new s-text.dial.pipex .com>,
    not@home.com enlightened us with...[color=blue]
    > Hi,
    >
    > I have the IHTMLDocument2 interface set up for a web page in an MFC VC++
    > prog.
    > eg
    >
    >[/color]

    Microsoft newsgroups are great for these questions.


    &group=microsof t.public.vc.mfc

    or
    msnews:microsof t.public.vc.mfc .*

    --
    --
    ~kaeli~
    Time flies like an arrow. Fruit flies like a banana.



    Comment

    Working...