accessing a javascript variable using IHTMLDocument

  • Follow


Hi,

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

IHTMLDocument2* pHTMLDocument2;
hr = pMC->QueryInterface(IID_IHTMLDocument2,
(void**)&pHTMLDocument2 );

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.



0
Reply Alf 5/20/2004 5:11:17 PM

In article <40ace6a0$0$25329$cc9e4d1f@news-text.dial.pipex.com>, 
not@home.com enlightened us with...
> Hi,
> 
> I have the IHTMLDocument2 interface set up for a web page in an MFC VC++
> prog.
> eg
> 
>

Microsoft newsgroups are great for these questions.

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8
&group=microsoft.public.vc.mfc

or
msnews:microsoft.public.vc.mfc.*

-- 
--
~kaeli~
Time flies like an arrow. Fruit flies like a banana.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

0
Reply kaeli 5/20/2004 5:56:25 PM


1 Replies
373 Views

(page loaded in 0.034 seconds)

Similiar Articles:













7/26/2012 6:20:39 PM


Reply: