dc_spawnurl() DCHTMLVIEWER
Posted: Sat May 14, 2016 10:24 am
I use this function and command to open a web page for government automotive recalls.
I pass it the vehicle ID Number which I then place in the mouse buffer.
The page opens fine and I simply paste the vin into it and recalls are displayed for the vehicle. When I go to close the page or go back a page it I get the following error:
'An error has occurred in the script on this page
Line 1
Char 21265
object doesn't support property or method attachEvent.
I doesn't break the app but it I annoying.
FUNCTION RECALLWEB(cVin)
LOCAL oClip
LOCAL GetList[0], GetOptions, oStatus,oHTMLViewer, ;
cNavigate := "https://vinrcl.safercar.gov/vin/"
/// stuff vin in mouse
oClip:=XBPclipboard():new():create()
oClip:open()
oclip:clear()
oClip:setbuffer(cVin,XBPCLPBRD_TEXT)
oclip:close()
DC_SpawnUrl(cNavigate)
@ 0,0 DCHTMLVIEWER oHtmlViewer;
SIZE 1024,768 PIXEL ;
RESIZE DCGUI_RESIZE_RESIZEONLY ;
NAVIGATE cNavigate
dcgetoptions resize
dcread gui fit options getoptions noautorestore ;
TITLE 'Viewing HTML Via IE'
return nil
Are there any clauses in dc_spawnurl or DCHTMLVIEWER that would cause this.?.
Perhaps it should be run in it's own thread?
BTW the web page does not get script error when run directly from windows on IE 10 or 11
Any pointers would help.
Bob Volz
I pass it the vehicle ID Number which I then place in the mouse buffer.
The page opens fine and I simply paste the vin into it and recalls are displayed for the vehicle. When I go to close the page or go back a page it I get the following error:
'An error has occurred in the script on this page
Line 1
Char 21265
object doesn't support property or method attachEvent.
I doesn't break the app but it I annoying.
FUNCTION RECALLWEB(cVin)
LOCAL oClip
LOCAL GetList[0], GetOptions, oStatus,oHTMLViewer, ;
cNavigate := "https://vinrcl.safercar.gov/vin/"
/// stuff vin in mouse
oClip:=XBPclipboard():new():create()
oClip:open()
oclip:clear()
oClip:setbuffer(cVin,XBPCLPBRD_TEXT)
oclip:close()
DC_SpawnUrl(cNavigate)
@ 0,0 DCHTMLVIEWER oHtmlViewer;
SIZE 1024,768 PIXEL ;
RESIZE DCGUI_RESIZE_RESIZEONLY ;
NAVIGATE cNavigate
dcgetoptions resize
dcread gui fit options getoptions noautorestore ;
TITLE 'Viewing HTML Via IE'
return nil
Are there any clauses in dc_spawnurl or DCHTMLVIEWER that would cause this.?.
Perhaps it should be run in it's own thread?
BTW the web page does not get script error when run directly from windows on IE 10 or 11
Any pointers would help.
Bob Volz