using javascript in infopath 2007 - InfoPath Dev
in

InfoPath Dev

using javascript in infopath 2007

Last post 11-20-2009 03:00 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-17-2009 04:23 AM

    • Binay
    • Not Ranked
    • Joined on 11-09-2009
    • Posts 15

    using javascript in infopath 2007

    Hi All,

    I am trying to get  infopath 2007 form textbox value using javascript on click of button outside infopath

    I am getting error "Microsoft JScript runtime error: Automation server can't create object" in first line of the

    "var oApp = new ActiveXObject("InfoPath.Application");"

     

    function GetInfopath()

    {

    var oApp = new ActiveXObject("InfoPath.Application");

    var oXDocument = oApp.XDocuments.Open("http://localhost/Test/xyz.xsn");

    var oParam = oXDocument.DOM.selectSingleNode("//my:txtName")

    alert(oParam.text);

    }

    Please Help

     

    Thanks

    Binay

  • 11-20-2009 03:00 PM In reply to

    Re: using javascript in infopath 2007

    Is the button the code is on in a web page? I'm wondering if it is a security related error...

    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.