DCHTMLVIEWER
-
- Posts: 103
- Joined: Fri Sep 17, 2010 2:58 am
DCHTMLVIEWER
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?
Andy
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?
Andy
Re: DCHTMLVIEWER
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?
Roger
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>
The eXpress train is coming - and it has more cars.
-
- Posts: 103
- Joined: Fri Sep 17, 2010 2:58 am
Re: DCHTMLVIEWER
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
How it should look like:
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?
Best Regards,
Andy
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
How it should look like:
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?

Best Regards,
Andy
- Attachments
-
- html+js.zip
- (85.41 KiB) Downloaded 715 times
Re: DCHTMLVIEWER
I don't think so.Is it possible that even if I have IE 10, XbpHtmlViewer() opens up another version of IE?
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.
Re: DCHTMLVIEWER
as i can say Alaska use WebBrowser Object from IFRAME.DLLAndy Edward wrote:Am I right to say that DCHTMLVIEWER is basically calling Internet Explorer instance?
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'],
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
Jimmy
-
- Posts: 103
- Joined: Fri Sep 17, 2010 2:58 am
Re: DCHTMLVIEWER
Hi Jimmy,
It seems like I'm stuck with basic charts if I'm using ActiveX
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: inside your Code i sawbut you say you are using IE10 ?Code: Select all
name: 'MSIE versions', categories: ['MSIE 6.0', 'MSIE 7.0', 'MSIE 8.0', 'MSIE 9.0'],
Yes, when I'm using a normal browser (IE, Opera, Firefox, Chrome) the charts work perfectly.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.
It seems like I'm stuck with basic charts if I'm using ActiveX
Re: DCHTMLVIEWER
as i say activeX is limited to WebBrowser Object from IFRAME.DLL but there are more inside.Andy Edward wrote:It seems like I'm stuck with basic charts if I'm using ActiveX
did you try Xbase++ v2.x CTP ?
it does include CXP using a HMTLlayout API Engine to render HTML !
greetings by OHR
Jimmy
Jimmy
Re: DCHTMLVIEWER
It doesn't support Javascript or HTML 5.did you try Xbase++ v2.x CTP ?
it does include CXP using a HMTLlayout API Engine to render HTML !
The eXpress train is coming - and it has more cars.
Re: DCHTMLVIEWER
HTML5 ... don't know if HTMLlayout Engine can render it.rdonnay wrote:It doesn't support Javascript or HTML 5.
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
Jimmy
Re: DCHTMLVIEWER
i mean other Xbase++ Solution :Andy Edward wrote:Yes, when I'm using a normal browser (IE, Opera, Firefox, Chrome) the charts work perfectly.
c:\ALASKA\XPPW32\Source\samples\activex\webbrowser\webbrowser.exe
on Win 7 / 8.x with IE > 8
greetings by OHR
Jimmy
Jimmy