Re: Error on trial version

  •  03-09-2006, 3:56 PM

    Re: Error on trial version

    one of the problems is that cute edit hopes taht XMLDOM 4 is installed. That may or may not be the case, and I do not remember that it was a requirement. The batch below can be used if you are having trouble that the server and development machine is out of sync.
     
    RC
     
     
     on error resume next
    set doc = server.CreateObject("MSXML2.DomDocument.4.0")
    if isobject(doc)=false then
        set doc = server.CreateObject("MSXML2.DomDocument.2.0")
    end if
    if isobject(doc)=false then
        set doc = server.CreateObject("MSXML2.DomDocument")
    end if
    on error goto 0
     
    update
     
    Another way would be to define a constant in some include files that get loaded in every page. I do this to keep track of my global constants and paramters about a site.
     
    const XMLDOMVER = "MSXML2.DomDocument.3.0"
     
     
    and on the create object 
     
    set doc = server.CreateObject( XMLDOMVER)
View Complete Thread