469,289 Members | 2,341 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,289 developers. It's quick & easy.

accessing a javascript variable using IHTMLDocument

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

Jul 23 '05 #1
1 4771
In article <40***********************@news-text.dial.pipex.com>,
no*@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

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by quikquic | last post: by
5 posts views Thread by ms_chika | last post: by
6 posts views Thread by Chris Styles | last post: by
reply views Thread by Christopher Bray | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.