Retrieve a VML graphical object

D

dudu

Hi,

I want to get all elements ids from a page, including ids of VML graphical
objects.

I used Application.ActiveDocument.All collection from FrontPage 2003 Object
Model but the id of the VML graphical objects is not returned.

Here is the code:

Dim objElements As IHTMLElementCollection
Set objElements = Application.ActiveDocument.body.All

For Each obj In objElements
lvwObj.ListItems.Add , , obj.tagName + "_" + obj.Id
Next

obj.tagName for an <v:rect> tag is display as "xxxescher" ?!? and id string
is empty.

My question is how can I get the correct ids of the all VML graphical
objects.

Please help me!!!

Thanks.
 
C

clintonG

Your doing client-side and you should lookup some DOM methods such as
getElementById.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top