Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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.