DCHTMLVIEWER

This forum is for eXpress++ general support.
Message
Author
Andy Edward
Posts: 103
Joined: Fri Sep 17, 2010 2:58 am

DCHTMLVIEWER

#1 Post by Andy Edward »

Hi Roger,

I tried using your sample in \exp19258\Samples\Activex\Webbrow.exe to run the attached html file.

It is a page with some charts done using highcharts and I'm seeing occasional crashes and hangs. Sometimes the sample will just quit by itself.

Please click around the first chart and run again the program once or twice to see the problem.

Do you think this is a problem from xbase itself?

Am I right to say that DCHTMLVIEWER is basically calling Internet Explorer instance?
chart.zip
(1.73 KiB) Downloaded 622 times
Andy

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

Re: DCHTMLVIEWER

#2 Post by rdonnay »

Andy -

Yes, you are right that DCHTMLVIEWER uses Internet Explorer.
It is using the XbpHtmlViewer() class.

I haven't used it very much with Javascript, so I don't know how the IE ActiveX control behaves under those conditions.

I ran your Javascript under FoxFire and it seems ok, however I don't know what conditions would make it lock up.

The below links from your HTML suggest that this HTML is not being sent from your own server. Am I right?

I have used Jquery in the past and had problems when I had to load the Javascript from another place on the web. If you have a slow link to the source, it will hang. I made sure that the *.js files were always on my server. Also, I see that you are using Ajax. I have no experience with this but I suspect that it is the source of your hangups because it is always polling the server.

Do you get the sames results when you open IE and run your HTML from it?

Code: Select all

  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  <script src="http://code.highcharts.com/highcharts.js"></script>
Roger
The eXpress train is coming - and it has more cars.

Andy Edward
Posts: 103
Joined: Fri Sep 17, 2010 2:58 am

Re: DCHTMLVIEWER

#3 Post by Andy Edward »

Hi Roger,

You raised an interesting point on the javascript being on remote location instead of the local server. I've downloaded all the necessary javascript in my local server, but the occasional hangs still occur. It's like that the XbpHtmlViewer() is unable to process the chart's animation. Please take a look at my screenshots. The columns in 'untitled-1.jpg' should go all the way up until below the percentage text, but it stuck there and hangs the webbrow.exe
The animation hangs halfway
The animation hangs halfway
Untitled-1.jpg (45.86 KiB) Viewed 12261 times
How it should look like:
This is how it should look like
This is how it should look like
Untitled-2.jpg (46.15 KiB) Viewed 12261 times
When I open my IE (IE 10, Windows 7 Ultimate 32 bit), the charts are fine. That's what boggles me, if XbpHtmlViewer() opens up an IE instance, I don't see why it should crash.

Is it possible that even if I have IE 10, XbpHtmlViewer() opens up another version of IE? :think:

Best Regards,

Andy
Attachments
html+js.zip
(85.41 KiB) Downloaded 621 times

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

Re: DCHTMLVIEWER

#4 Post by rdonnay »

Is it possible that even if I have IE 10, XbpHtmlViewer() opens up another version of IE?
I don't think so.
It opens the ActiveX control that is registered on your computer.
If you have IE 10, then that should be the only one registered.

It could be that some Javascript doesn't run well from an ActiveX instance.
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: DCHTMLVIEWER

#5 Post by Auge_Ohr »

Andy Edward wrote:Am I right to say that DCHTMLVIEWER is basically calling Internet Explorer instance?
as i can say Alaska use WebBrowser Object from IFRAME.DLL
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
with there Demo c:\ALASKA\XPPW32\Source\samples\activex\webbrowser\webbrowser.exe which i use to test your Chart.HTML

i did try to run your Sample on Windows v8.1 with IE11 and fail at Line 12 ... hm ... perhaps no Java Script Runtime ...

inside your Code i saw

Code: Select all

name: 'MSIE versions',
categories: ['MSIE 6.0', 'MSIE 7.0', 'MSIE 8.0', 'MSIE 9.0'],
but you say you are using IE10 ?

so i try it on a XP PC with IE8 and all work fine when click on Chart to change.
as i remember IE Security have change since Vista and i got more timing Problem using Xbase++ activeX.
greetings by OHR
Jimmy

Andy Edward
Posts: 103
Joined: Fri Sep 17, 2010 2:58 am

Re: DCHTMLVIEWER

#6 Post by Andy Edward »

Hi Jimmy,
Auge_Ohr wrote: inside your Code i saw

Code: Select all

name: 'MSIE versions',
categories: ['MSIE 6.0', 'MSIE 7.0', 'MSIE 8.0', 'MSIE 9.0'],
but you say you are using IE10 ?
The categories array, is just a collection of strings that will make up the chart. It's a demo datafrom the highchart website.
Auge_Ohr wrote: so i try it on a XP PC with IE8 and all work fine when click on Chart to change.
as i remember IE Security have change since Vista and i got more timing Problem using Xbase++ activeX.
Yes, when I'm using a normal browser (IE, Opera, Firefox, Chrome) the charts work perfectly.

It seems like I'm stuck with basic charts if I'm using ActiveX

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: DCHTMLVIEWER

#7 Post by Auge_Ohr »

Andy Edward wrote:It seems like I'm stuck with basic charts if I'm using ActiveX
as i say activeX is limited to WebBrowser Object from IFRAME.DLL but there are more inside.

did you try Xbase++ v2.x CTP ?
it does include CXP using a HMTLlayout API Engine to render HTML !
greetings by OHR
Jimmy

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

Re: DCHTMLVIEWER

#8 Post by rdonnay »

did you try Xbase++ v2.x CTP ?
it does include CXP using a HMTLlayout API Engine to render HTML !
It doesn't support Javascript or HTML 5.
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: DCHTMLVIEWER

#9 Post by Auge_Ohr »

rdonnay wrote:It doesn't support Javascript or HTML 5.
HTML5 ... don't know if HTMLlayout Engine can render it.
JavaScript is IMHO to modify HTML which is as a Document Object Model (DOM) in the browser.

when we speak about using HTML as Xbase++ Form we will switch from "native" Windows Control to HTML Style Control.
but you need to render HTML Content, this is what HTMLlayout Engine is doing.

with Xbase++ activeX and ot4xb you can build a connection to HTMLlayout Engine and show "Hello world" ;)
i have a dream : XppFd.EXE will create HTML Code.
greetings by OHR
Jimmy

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: DCHTMLVIEWER

#10 Post by Auge_Ohr »

Andy Edward wrote:Yes, when I'm using a normal browser (IE, Opera, Firefox, Chrome) the charts work perfectly.
i mean other Xbase++ Solution :
c:\ALASKA\XPPW32\Source\samples\activex\webbrowser\webbrowser.exe
on Win 7 / 8.x with IE > 8
greetings by OHR
Jimmy

Post Reply