Web browser and script activeX controls and HTML data

Hello,
I'm trying to use the Microsoft Web Browser (IWebBrowser2) and Script (IScriptControl) activeX controls in Labview to evaluate and execute HTML script.  If I wire the web browser control's document object to the object input of the Script control's AddObject method, I can then evaluate/execute script such as "document.f.btnI.focus();" and such (in this case corresponding to Google's home page).  However, there are other expressions that include the "window" object that are proving much more difficult to work with.  Although I can browse the document object's parentWindow object via the property browser, if I try to access that object programatically, I get the error "Error -2147467262 occurred at No such interface supported".  I'm wondering how to include the window object for scripting.
I'm writing a content-oriented web crawler.  I've been writing it with pretty low level TCP functions, handling 301/302 "object moved" and "<META HTTP-EQUIV="refresh" CONTENT="0; url=http://millercountyliberal.com/">" redirections manually.  But there are other automatic script-based redirections like:
<script language="JavaScript" type="text/javascript">
<!-- window.location="http://www.jrnl.com" -->
</script>
that I'm still trying to figure out how to work with.  As you can see, to work with that one manually involves the window object.  The reason that I don't just let the Web Browser object handle the redirections is because that object often throws script errors, downloads embedded graphics and other unnecessary components, can't handle some non-standard redirections, and sometimes annoyingly crashes.  Any help would be appreciated.  A code sample is attached.  The Web Browser control should already exist on your machine if you have Internet Explorer installed.  The script control may need to be registered before it can be used as follows:
regsvr32 "c:\MyDir\XHTTP.dll"
Thanks.
Attachments:
HTML Script Testing.zip ‏773 KB

Hi Ted,
This seems to be a problem with the way you are referencing the ActiveX properties.  I would research a little more on the API for these objects.  See http://msdn.microsoft.com/workshop/browser/webbrow​ser/reference/ifaces/iwebbrowser2/document.asp for an explanation of the IWebBrowser2 Document property.  I am suspicious of where you are typecasting the Document variant into the IHTMLDocument2 object and this is where the error is being thrown.
A search of this error code on Google shows that this is a generic error from the ActiveX object, and not a LabVIEW error, although it is confusing since LabVIEW uses error codes in this same range.
Hope this helps!
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

Similar Messages

  • RE: ActiveX control and Active Server Pages?

    Martin, if it works in standalone VB program but not in an .asp page
    through VBScript, I guess the reason may be the type mismatch on the
    parameters of the ActiveX automation methods. VBScript is a subset of VB
    and only supports the OLE data type VARIANT for calling the OLE
    interface. The Conductor ActiveX control probably requires the actual
    data types, such as long, BSTR, and so on, to be used on the parameters.
    As a result, VBScript cannot call the methods on the control. One
    workaround you can try is to create your own ActiveX control which is
    simply a wrapper for calling the Conductor control. Its parameter types
    use VARIANT and you do the data conversion in your wrapper code. Hope
    this helps.
    Lenny Hon
    Descartes Systems Group
    -----Original Message-----
    From: Martin Peters [SMTP:[email protected]]
    Sent: Monday, July 27, 1998 10:50 AM
    To:
    Subject: ActiveX control and Active Server Pages?
    Hello Forte users,
    Did anyone try to use the ActiveX control that ships with Conductor
    1.0G in an Active Server Page?
    I tried to use the ActiveX control without luck, so a sample would be
    appreciated. The code
    works fine in Visual Basic.
    Below the code:
    <HTML>
    <BODY>
    <%
    Set thisDirectory =
    Server.CreateObject("CONDUCTORCLIENT.WFDirectoryServiceCtl.1")
    Set thisEngine = thisDirectory.WFFindEngine("ceengine", "centrale")
    Set thisUser =
    Server.CreateObject("CONDUCTORCLIENT.WFUserProfileDescCtrl.1")
    thisUser.New
    thisUser.ProfileName = "MiniUP"
    thisUser.userName = "martin"
    ' The following call fails: Invalid procedure call or argument:
    'thisEngine.OpenSession'
    Set thisSession = thisEngine.OpenSession("CREATE", thisUser, "martin",
    0)
    Set thisProcess = thisSession.CreateProcess("MiniPD", Empty)
    thisSession.CloseSession (WFSESSION_TERMINATED)
    %>
    </BODY>
    </HTML>
    Martin Peters
    COMPAQ
    NSIS - AD&I - Application Connect
    email <[email protected]>
    phone: +31 (30) 2834902
    fax: +31 (30) 2834980
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    I don't have 6.1 in front of me now. I came up with a workaround for my application when I encounted this problem. I created an attribute node for the container and the tab control. Whenever the tab control was not on the page with the control, I made the container invisible. This then hid the activeX control.

  • Flash player 10.1 Help ( ActiveX control and Download manager)

    I've been trying for several hours to download the new flash player 10.1. I tried everything in the FAQ and still nothing. I tried un-installing the older version that I had (9.3.3),   and still nothing.Then when the download manager gets to the end of the download, it keeps saying Error: Installation failed but Adobe Air was still able to download so the problem is obviously flash 10.1. Then it tries to finish installing it and when its done it says that it couldn't register ActiveX control and that error 19166 occured. I already enabled ActiveX so I dont know what the problem could be.
    Help would be appreciated and could someone explain what error 19166 is and how to register or install activex
    ps. I had this problem a while back but somehow I was able to download flash version 9.3.3, so even if I can't download 10.1, can someone give me a link to download version 9 instead.
    System information: Windows 7
                                  Internet explorer 8
                                  32-bit
                                  Norton 360

    Thanks for your reply.I've tried/done everything on that page and I'm still having issues. And I've already disabled Norton and windows firewall and still nothing works.

  • Color palette problems using Toolbar and ImageList ActiveX Controls

    I'm using Toolbar and ImageList ActiveX controls to implement toolbar functionality in a top-level VI.
    I designed the icons used in the toolbar with a 256 color palette. When I initially added the icon images to the ImageList control and ran the VI, the icons were properly displayed in the toolbar, as expected. After saving VI, exiting LabVIEW, and reloading, it appears that a different palette has been applied to the images in the ImageList control. I'm attaching a screenshot of the problem as well.
    Has anyone encountered this type of problem before? Any suggestions you provide will be greatly appreciated.
    Thanks,
    Zach
    Software Engineer
    OnWafer Technologies, Inc.
    www.onwafer.com
    Attachments:
    icon.zip ‏3 KB

    I'm using Toolbar and ImageList ActiveX controls to implement toolbar functionality in a top-level VI.
    I designed the icons used in the toolbar with a 256 color palette. When I initially added the icon images to the ImageList control and ran the VI, the icons were properly displayed in the toolbar, as expected. After saving VI, exiting LabVIEW, and reloading, it appears that a different palette has been applied to the images in the ImageList control. I'm attaching a screenshot of the problem as well.
    Has anyone encountered this type of problem before? Any suggestions you provide will be greatly appreciated.
    Thanks,
    Zach
    Software Engineer
    OnWafer Technologies, Inc.
    www.onwafer.com
    Attachments:
    icon.zip ‏3 KB

  • Does Measurment Studio Standerd edition contains graph and chart ActiveX controls for VB6

    A Very Simple quistion:
    Does Measurment Studio Standerd edition contains graph and chart ActiveX controls for VB6?

    Shady -
    Measurement Studio 7.0 Standard Edition provides support for Visual C++ 2003, Visual Basic .NET 2003, and Visual C# 2003. It just so happens that the Visual C++ support includes ActiveX controls, which are usable in VB6. The CWGraph ActiveX control provides both graphing and charting functionality.
    However, full Visual Basic 6 support, including examples and documentation is not in the Standard edition. It is in the Professional and Enterprise Editions.
    The best thing to do would be for us to get in direct contact with each other to make sure that we get you exactly the (minimum) package you need. If your profile includes your email address, we can contact you. Otherwise, you'll need to go through ni.com/support and refer to t
    his discussion thread to open a direct dialogue.

  • ActiveX controls and clear_form

    If you use ActiveX controls in forms and issue a clear all from
    the menu, or a clear_form built-in, it will kill any ActiveX
    controls in the Form. Once I set a key_clear trigger to clear my
    master data block and used clear_all_master_details to flush all
    the data blocks in my form, leaving control block alone, my
    ActiveX controls stopped crashing.
    I didn't find this mentioned in the documentation, and thought
    someone might be able to save themselves some aggravation.
    null

    Hi,
    to have pure html controls in jspx, I have one idea, for example for < br > tag this is:
    < br xmlns="" / >
    It works, but I think with activex it's not so simple. I tried :
    ' <object xmlns="" id="ThermalLib" height="0" width="0" classid="clsid:904511D2-5407-4033-8DAD-07B33EC7317E"> '
    But it doesn't work.
    Did you solve this problem?
    Mayby somebody know how to launch activex from jspx?
    regards,
    basementjack

  • "Cannot use adobe reader to view pdf in your web browser" error in Windows 7 and Acrobat pro 8.1.7

    I get the error "Cannot use adobe reader to view pdf in your web browser.  Reader will now exit.  Please exit your browser and try again" in Windows 7 x32 and Windows 7 x64 with Acrobat pro 8.1.7.  This happens when trying to open  a PDF file in Internet explorer 8.0.760 or when I open a PDF in Quickbooks 2008.  If I answer ok or cancel the file opens normally.  If I open acrobat 8 first then the pdf files open as expected.  I also tried a copy of Acrobat reader with no difference in the outcome.  Since this happens on two different computers one fresh copy of windows 7 x64 the other an upgrade to windows 7 x32 and they used to work before the change to windows 7, I assume there is some kind of incompatibility with windows 7 and acrobat.  Is this a known issue and will it be fixed in an update to acrobat in the near future?

    tvandersluijs - I'm sorry if that screwed up your machine however:
    1. What version of Adobe Reader are you using because as you can see the registry entry is for Adobe Reader 9, if ur using Adobe Reader 8 then u need to specify ur version as PAllens entry suggested - "E.g. "C:\Program files\Adobe\Acrobat [version]\Reader\AcroRd32.exe""
    2. I've used this solution significantly because I have come across this specific issue for multiple users.
    3. All the registry entry does is tell Windows what program to use by default to open/view PDF documents.
    My intention wasn't to screw up ur machine or anybody elses as I said I've used this solution many times however what I've should gave is the disclaimer to backup ur registry before u make mods so u can revert back in case. Also the ony other thing I can think of is that this solution was for Windows XP using registry editior 5, I'm noticing that the title of this thread is Windows 7.

  • Web-browser only display Summary Status and no menu for configing

    Guys,
    I have 4 Cisco Aironet 1140. I open a web browser IE 8 and type their address "http://<ip address>". Then I enter my username and password in the browser and successfully login to the access point.
    But, There is something strange, why I only see Summary status of my access point after the login process success??? I can't config anything...
    I add a new username and use highest privilage, but the result still the same. Same unusual web display, only displaying summary status of the access point, I can't config ssid, vlan, etc.
    Here's my configuration:
    username Zicco privilege 15 password 7 123A551A02055F106B
    username Bl4st privilege 15 secret 5 $1$UJom$UoNBR07HmSGXdoxTUR1W40
    ip http server
    ip http authentication local
    no ip http secure-server
    Is there any configuration command that must be added? Please help me.
    Thank you

    Hi George, today we solved the problem. With adding this command: "config(terminal)#ip http authentication local" all of 5 access points now able to managed via web browser.
    Sometimes, we can use access point's web browser without adding this command. But in my cases, only using command of"ip http server" isn't enough. You must add "ip http authentication local" command to your configuration. I dont know why.
    And we must have at least one: username <username> privil 15 pass <password> that is full privileged user to use as username and password logon in your access point browser. Otherwise we can't logon to our access point.
    Thank you George, I appreciate your kindness. Regards

  • Overlay an item over an activex control and/ or disabling the mouse scroll wheel

    There seems to be several references in the discussion forum to placing a picture control over an activex item to prevent the activex item being selected etc.
    The thing is, I can't seem to do it: the activex control is always on top, no matter what I do and no matter what control, or decoration I use.
    What am I doing wrong?
    Failing that, is there another way of stopping the user getting access to the activx control?
    Essentially what I want to do is stop them accidentally scrolling through the control's pages with the mouse scroll wheel. I've stopped them accessing the scroll bars, BUT it is still possible to use the scroll wheel unfortunately.
    Something else I tried was a tab control: placing the activex control on a page and then trying to make the page on top transparent. Needless to say that didn't work....
    Andy

    Important questions:
    What ActiveX control are you using?
    I'm using the PDF activex control to display a PDF on the front panel of my VI.
    What version of LabVIEW are you using?
     I'm using LabVIEW 7.1
    What "control pages" are you talking about?
    The pages of the PDF: it has several pages. If a mouse is held over it the user can scroll using the scroll wheel, or if they right click they can access the Adobe menu.
    It's these that I'd like to inhibit them doing.
    Thanks
    Andy
    Attachments:
    Display PDF 7.1.vi ‏98 KB

  • RELATION BETWEEN ACTIVEX CONTROL AND THE TRANSACTION.

    HI,
    I WANT THE RELATION BETWEEN TRANSACTION AND ACTIVE X CONTROL IN TERMS OF GUI AND TCD TEST CASES.
    ARUN REDDY I

    is your CAPS lock key locked? if not kindly do not use all upper case.
    Coming to your question.
    what do you mean by relation between activex & transaction? if you could clarify more we may be able to help.
    Raja

  • How do I uninstall your * web browser without cutting all wireless and wakeup on lan connections?

    To get into detail, I can't uninstall your * web browser unless I kill all net connects and wake up lan and run my Norton and * beg it to finally let me have a chance to uninstall Mozilla Firefox because it's a *.
    ''Edited for language - TonyE''

    https://support.mozilla.com/kb/uninstalling+Firefox

  • Concurrent  ActiveX control and QTML library access limitations

    I have a .Net app that uses the QuickTime ActiveX control for read-only display of movie files. The app also uses the QTML SDK through an 'unmanaged' library for creating and editing movie files.
    I am finding that, when flattening a large movie through the SDK, the ActiveX control interface is blocked. On completion of the SDK operation, the control's behaviour returns to normal. Note that different movie files are in use for each interface. What are the constraints for using the two interfaces concurrently?
    Thanks,

    Technical Note TN2125 implies that this is expected behaviour:
    "Additionally, QuickTime is completely serialized on Windows only allowing a single thread to call into the QuickTime Library at any one time. If one thread is performing a QuickTime operation, any other thread making a QuickTime API call will block waiting for the previous operation to return."
    It would be useful to know how QuickTime Player does not also have this same restriction, as it is possible to manipulate multiple movies concurrently in Player.

  • Process Flow ignores name and location for Control- and Log-Files

    Hi!
    Our OWB Version is 10.1.0.3.0 - DB Version 9.2.0.7.0 - OWF Version 2.6.2
    Clients and server are running on Windows. Database contains target schemas as well as OWB Design and Runtime, plus OWF repositories. The source files to load reside on the same server as the database.
    I have for example a SQL*Loader Mapping MAP_TEXT which loads one flat file "text.dat" into a table stg_text.
    The mapping MAP_TEXT is well configured and runs perfect. i.e. Control file "text.ctl" is generated to location LOC_CTL, flat file "text.dat" read from another location LOC_DATA, bad file "text.bad" is written to LOC_BAD and the log file "text.log" is placed into LOC_LOG. All locations are registered in runtime repository.
    When I integrate this mapping into a WorkFlow Process PF_TEXT, then only LOC_DATA and LOC_BAD are used. After deploying PF_TEXT, I execute it and found out, that Control and Log file are placed into the directory <OWB_HOME>\owb\temp and got generic names <Mapping Name>.ctl and <Mapping Name>.log (in this case MAP_TEXT.ctl and MAP_TEXT.log).
    How can I influence OWB to execute the Process Flow using the locations configured for the mapping placed inside?
    Has anyone any helpfull idea?
    Thx,
    Johann.

    I didn't expect to be the only one to encounter this misbehaviour of OWB.
    Meanwhile I found out what the problem is and had to recognize that it is like it is!
    There is no solution for it till Paris Release.
    Bug Nr. 3099551 at Oracle MetaLink adresses this issue.
    Regards,
    Johann Lodina.

  • Hou to surpport the plug-ins in web browser with AIR mx.control.HTML

    My app used the google earth plug-in in browser, but when i use AIR mx.control.HTML in FB3, the plug-in can not take effect, the tooltip is "The Google Earth Plugin is not currently installed."
    It is always ok in IE, firefox

    The plugin works only on Windows (Firefox and IE).
         http://googlesystem.blogspot.com/2008/05/google-earth-browser-plugin.html
    HTH.

  • Another web browser has hijacked my Firefox and I cannot see how to get rid of it. In the meantime, I have stopped using Firefox on my laptop because I do not trust this other web browser.

    A website I was using to find out some transport information has hijacked my Firefox on my laptop and I am unable to get rid of it. I do not trust this other browser so I have stopped using Firefox altogether on my laptop until I find out how to get rid of this other browser. I have an Apple MacBook.

    Hi there and thanks for replying. I am not quite sure what you mean by 'restore back to the troubled date'. Would you please explain how I should do this?

Maybe you are looking for

  • Error opening file/URL reference by alias and Administrative limit exceeded

    Hello All, Problem: SMTP Error: 4.5.0 error opening file/URL reference by alias and Search failed with: netscape.ldap.LDAPException: error result (11); Administrative limit exceeded Here is my configuration: Windows 2000 server (without Active Direct

  • Pro and air's led display

    Hi, Guys Is there anybody know what is difference between pro's led display and air's? why air's looks brighter than pro's? since apple upgraded pro on Tuesday, is it going to get exactly same display as air's? Thanks

  • Propose suplementary documentation on client_result_caching optimization

    I want to research on Client side result cahing to be able for optimization on that sector, since as I have been informed from another thread, its not just activating it and setting a big enough cahing size. Why client caching doesnt lowers NET traff

  • Machine Access Restriction Timeout

    Hi Community, we use  Anyconnect Client for Machine Authentication. Authentication is for  WLAN done by WLC that asks ACS5.3 that uses Active Directory as the identity store. You have enabled Machine Authentication and Machine  Access Restrictions (M

  • [ANN] New developer poll on the JDev homepage

    What are your JSP plans? Let us know by answering the survey on the JDeveloper home page: http://otn.oracle.com/products/jdev Previous Survey results: JDeveloper DB modeler 16.2% Oracle Designer 26.7% ERWin 26.3% Embarcadero 6.1% Other 24.7%