BrazilBill
Programmer
Hi, can anyone help a newbie? First post.
I'm using XMLHTTP to test for the existence of an HTM file with VBScript, providing a link if it does (Cant rely on client environment to allow FileSystemObject without annoying ActiveX prompts). Usual thing, works fine on app. 90% of the XP and 2000 machines (other OS's not relevant), but on the remainder the 'Object Expected' runtime error displays, and causes the script to fall over.
All failing machines have identical browsers (IE6) to working ones. The HTM page in question pulls in a VBS from the header section, which contains something like (I'm at home, it's at work :0)
Could it be a security issue on certain machines? I really need to figure this one out so any help would be appreciated.
Cheers,
BB
I'm using XMLHTTP to test for the existence of an HTM file with VBScript, providing a link if it does (Cant rely on client environment to allow FileSystemObject without annoying ActiveX prompts). Usual thing, works fine on app. 90% of the XP and 2000 machines (other OS's not relevant), but on the remainder the 'Object Expected' runtime error displays, and causes the script to fall over.
All failing machines have identical browsers (IE6) to working ones. The HTM page in question pulls in a VBS from the header section, which contains something like (I'm at home, it's at work :0)
Code:
set xmlobj = CreateObject("Microsoft.XMLHTTP")
xmlobj.Open "GET", "myFile.htm", False
xmlobj.Send
If xmlobj.ResponseText <> "" then
document.write("<A HREF = 'myFile.htm'>Link</A>")
end if
Could it be a security issue on certain machines? I really need to figure this one out so any help would be appreciated.
Cheers,
BB