dc_spawnurl() DCHTMLVIEWER

This forum is for eXpress++ general support.
Post Reply
Message
Author
bobvolz
Posts: 117
Joined: Sun Jan 31, 2010 11:25 am

dc_spawnurl() DCHTMLVIEWER

#1 Post by bobvolz »

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

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: dc_spawnurl() DCHTMLVIEWER

#2 Post by rdonnay »

The DC_SpawnUrl() doesn't seem to be the problem.

I tried it and it works fine.

DCHTMLVIEWER does give the script error.
This appears to be a problem in the Microsoft activex control.
The eXpress train is coming - and it has more cars.

Post Reply