Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Oct 18, 2019 2:44 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: ActiveX WebBrowser control Accessing the DOM
PostPosted: Fri Oct 28, 2011 3:19 pm 
Offline

Joined: Sat Jun 16, 2007 12:59 pm
Posts: 44
After much searching and failing I humbly ask....

How can I access the DOM when using the WebBrowser ActiveX component (Not HTMLViewer)

I have tried

WebBrowser1.Document.Body.innerHTML = "hello world"

as you would in VB and this fails at compile time.

I have also tried some variations of this
Dim obj as OLEObject

obj = WebBrowser1.Document
obj = OLEObject( obj.Invoke("body") )
obj.Property("innerHTML") = "<font color=blue>Yay!</font>"


And it does not seem to work in 2011r3. I am looking to be able to edit the dom and execute javascript all things that should be possible, I swear I have done it before in RS.


Top
 Profile  
Reply with quote  
 Post subject: Re: ActiveX WebBrowser control Accessing the DOM
PostPosted: Fri Oct 28, 2011 3:51 pm 
Offline

Joined: Sat Jun 16, 2007 12:59 pm
Posts: 44
Hmm, it seems if I copy the activeX control from the example it works as i would expect. Just adding it doesnt


Top
 Profile  
Reply with quote  
 Post subject: Re: ActiveX WebBrowser control Accessing the DOM
PostPosted: Sat Oct 29, 2011 10:39 pm 
Offline

Joined: Mon Sep 22, 2008 9:01 pm
Posts: 61
:|


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group