Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

denied access to createobject(com)

New Here ,
Apr 14, 2009 Apr 14, 2009

I am moving a client's website to another host.  The contact form returns an error... my host say's that createobject(COM) is disabled on their server.

I don't want to change hosts.  I would like to change the way the contact form works.  My problem is that I am not a developer... unless you could the RPGII I did 15 years ago...

I think I could muddle through this if I was pointed in the right direction.

Part of the code is:

// *************************************************************************************

objXMLDOM = CreateObject("COM", "msxml2.DOMDocument.4.0");
objXMLDOM.async = false;
XMLloadSuccess = objXMLDOM.load("#now_path#");
objNodes = objXMLDOM.selectNodes("standardform/field");

// *************************************************************************************

Is there another way to create this object?  Do I need to have the whole form and code redone?

Thanks!

283
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 22, 2009 Apr 22, 2009
LATEST

I'm sure some others in the forum can offer more specific suggestions, but CF has native support for XML parsing (which is what it looks like your COM object was used for).  You should be able to use functions like XMLParse() and XMLSearch() to accomplish the same things without having to resort to a COM call.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources