R
rami4tis
hi
Ive a little code that run without errors on .vbs file
when i try to run this code on asp file ive got error :
Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object
wht is the problem ?
any ideas ?
this is the code :
Dim objApp
Dim objWindows, objWindow
Dim objIE
Set objApp = CreateObject("shell.application")
Set objWindows = objApp.Windows()
For i=0 to objWindows.Count - 1
Set objIEWnd = objWindows.Item(i)
If objIEWnd.LocationURL = "http://www.url.com Then
Set objIE = objIEWnd
objIE.Navigate(otherurl)
End If
Next
Set objIE = Nothing
Set objWindow = Nothing
set objWindows = Nothing
Set objApp = Nothing
thanks in advance ,
poli
Ive a little code that run without errors on .vbs file
when i try to run this code on asp file ive got error :
Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object
wht is the problem ?
any ideas ?
this is the code :
Dim objApp
Dim objWindows, objWindow
Dim objIE
Set objApp = CreateObject("shell.application")
Set objWindows = objApp.Windows()
For i=0 to objWindows.Count - 1
Set objIEWnd = objWindows.Item(i)
If objIEWnd.LocationURL = "http://www.url.com Then
Set objIE = objIEWnd
objIE.Navigate(otherurl)
End If
Next
Set objIE = Nothing
Set objWindow = Nothing
set objWindows = Nothing
Set objApp = Nothing
thanks in advance ,
poli