using javascript in infopath 2007 - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » using javascript in infopath 2007 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: Oldest to newest Newest to oldest Previous Next 11-17-2009 04:23 AM Binay Joined on 11-09-2009 Posts 15 using javascript in infopath 2007 Reply Contact 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 Filed under: using javascript in infopath 2007 11-20-2009 03:00 PM In reply to Hilary Stoupa Joined on 06-20-2008 Posts 13,297 Re: using javascript in infopath 2007 Mark as Not AnswerMark as Answer... Reply Contact 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.
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
Please Help
Thanks
Binay
Is the button the code is on in a web page? I'm wondering if it is a security related error...