![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I have an HTML page which contains an grid control. In JavaScript I access the grid control like following: document.all['componentName'] In Outlook I check on ActiveExplorers class on type "olExplorer". I added a reference to the mshtml.lib and retrieved the ActiveExplorer content like following: Dim htmlDoc As MSHTML.HTMLDocument Set htmlDoc = Application.ActiveExplorer.HTMLDocument Now I want to access my component. My idea was to access it like in JavaScript, but in the document the 'componentName' object was not found. How can I access my component in the HTMLDocument in the ActiveExplorer? Christian |
Ads |
#2
|
|||
|
|||
![]()
Hi Christian,
try to use the GetElementByID method. That should give you the object. Hope this helps, Greets, Helmut "Christian Havel" schrieb im Newsbeitrag news ![]() Hi, I have an HTML page which contains an grid control. In JavaScript I access the grid control like following: document.all['componentName'] In Outlook I check on ActiveExplorers class on type "olExplorer". I added a reference to the mshtml.lib and retrieved the ActiveExplorer content like following: Dim htmlDoc As MSHTML.HTMLDocument Set htmlDoc = Application.ActiveExplorer.HTMLDocument Now I want to access my component. My idea was to access it like in JavaScript, but in the document the 'componentName' object was not found. How can I access my component in the HTMLDocument in the ActiveExplorer? Christian |
#3
|
|||
|
|||
![]()
Hi Helmut,
thanks for you help! I tried it like following: Set myComponent = htmlDoc.getElementById("componentName") and Set myComponent = htmlDoc.documentElement.document.getElementById("c omponentName") The component is not found. The component is a managed grid. Could this be the problem? Do you have any other idea? Thanks Christian "Helmut Obertanner" wrote: Hi Christian, try to use the GetElementByID method. That should give you the object. Hope this helps, Greets, Helmut "Christian Havel" schrieb im Newsbeitrag news ![]() Hi, I have an HTML page which contains an grid control. In JavaScript I access the grid control like following: document.all['componentName'] In Outlook I check on ActiveExplorers class on type "olExplorer". I added a reference to the mshtml.lib and retrieved the ActiveExplorer content like following: Dim htmlDoc As MSHTML.HTMLDocument Set htmlDoc = Application.ActiveExplorer.HTMLDocument Now I want to access my component. My idea was to access it like in JavaScript, but in the document the 'componentName' object was not found. How can I access my component in the HTMLDocument in the ActiveExplorer? Christian |
#4
|
|||
|
|||
![]()
Hello Christian,
is the Component a Serverside component ? Normally on the client you would only get HTML, except when you have registered the component locally and have embedded the component as object.... in the html page. Greets, Helmut "Christian Havel" schrieb im Newsbeitrag ... Hi Helmut, thanks for you help! I tried it like following: Set myComponent = htmlDoc.getElementById("componentName") and Set myComponent = htmlDoc.documentElement.document.getElementById("c omponentName") The component is not found. The component is a managed grid. Could this be the problem? Do you have any other idea? Thanks Christian "Helmut Obertanner" wrote: Hi Christian, try to use the GetElementByID method. That should give you the object. Hope this helps, Greets, Helmut "Christian Havel" schrieb im Newsbeitrag news ![]() Hi, I have an HTML page which contains an grid control. In JavaScript I access the grid control like following: document.all['componentName'] In Outlook I check on ActiveExplorers class on type "olExplorer". I added a reference to the mshtml.lib and retrieved the ActiveExplorer content like following: Dim htmlDoc As MSHTML.HTMLDocument Set htmlDoc = Application.ActiveExplorer.HTMLDocument Now I want to access my component. My idea was to access it like in JavaScript, but in the document the 'componentName' object was not found. How can I access my component in the HTMLDocument in the ActiveExplorer? Christian |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Outlook.ContactItem'. | Dhananjay | Outlook and VBA | 3 | October 13th 07 07:56 AM |
Preventing Web Page Access from Explorer.exe | [email protected] | Outlook Express | 1 | August 2nd 07 07:23 PM |
Outlook Application ActiveWindow() always return Explorer object | AtulSureka | Outlook - Using Forms | 3 | October 10th 06 02:31 PM |
Type of object for AdvancedSearch | Renjith | Outlook and VBA | 4 | May 17th 06 02:13 PM |
Move object type | Bob Smith | Outlook and VBA | 1 | May 16th 06 07:08 AM |