problem displaying with Mozilla/epiphany

Using Mozilla on the ActiveWidgets website and on the examples locally works great, but when I try to create the sample data using a module on my webserver (roxen) it fails to display (IE shows it fine)
I have relocated the ActiveWidgets to an absolute address rather than keeping it relative, but again this is fine with IE.

the generated page is below - thank you for any suggestions

<title>Grid page from /test/grid.sml grid element 1</title>
<link href='/js/ActiveUI/runtime/classic/activeui.css' rel='stylesheet' type='text/css' />
<script src='/js/ActiveUI/runtime/activeui.js'></script>
.active-controls-grid {height: 100%; font: menu;}
.active-column1 {text-align: left;}
.active-column2 {text-align: left;}
.active-column3 {text-align: left;}
.active-column4 {text-align: left;}
.active-column5 {text-align: left;}
var myColumns1 = [
"Ticker"," Company Name"," Market Cap."," $ Sales"," Employees"
var myData1 = [
["MSFT","Microsoft Corporation"," 314","571.156"," 32"],
["ORCL"," Oracle Corporation"," 62","615.266"," 9"],
["SAP"," SAP AG (ADR)"," 40","986.328"," 8"],
["CA"," Computer Associates Inter"," 15","606.335"," 3"],
["ERTS"," Electronic Arts Inc."," 14","490.895"," 2"],
["SFTBF"," Softbank Corp. (ADR)"," 14","485.840"," .000"],
["VRTS"," Veritas Software Corp."," 14","444.272"," 1"],
["SYMC"," Symantec Corporation"," 9","932.483"," 1"],
["INFY"," Infosys Technologies Ltd."," 9","763.851"," 830.748"],
["INTU"," Intuit Inc."," 9","702.477"," 1"],
["ADBE"," Adobe Systems Incorporate"," 9","533.050"," 1"],
["PSFT"," PeopleSoft"," Inc."," 8","246.467"],
["SEBL"," Siebel Systems"," Inc."," 5","434.649"],
["BEAS"," BEA Systems"," Inc."," 5","111.813"],
["SNPS"," Synopsys"," Inc."," 4","482.535"],
["CHKP"," Check Point Software Tech"," 4","396.853"," 424.769"],
["MERQ"," Mercury Interactive Corp."," 4","325.488"," 444.063"],
["DOX"," Amdocs Limited"," 4","288.017"," 1"],
["CTXS"," Citrix Systems"," Inc."," 3","946.485"],
["KNM"," Konami Corporation (ADR)"," 3","710.784"," .000"],
var obj1 = new Active.Controls.Grid;
obj1.setColumnText(function(i){return myColumns1[i]});
obj1.setDataText(function(i, j){return myData1[i][j]});
obj1.setAction("click", function(src){window.status = src.getProperty('item/text')});
December 9,
Difficult to guess - maybe try to add type="text/javascript" in your top script tag:
<script src='/js/ActiveUI/runtime/activeui.js' type='text/javascript'></script>

General suggestion for debug - try first using alert(obj) instead of document.write(obj) and check what goes out.

Are you getting any javascript errors at all (in js console)?

Alex (ActiveWidgets)

Alex (ActiveWidgets)
December 9,
another suggestion - look at your web server log and check that there is no errors (are you using the right path? uppercase/lowercase?)
Alex (ActiveWidgets)
December 9,
The alert(obj) code does show a lot of div tags with the expected contents, there is part of the grid displayed on the webpage but no contents. However Mozilla reports on the command line
Failed to load XBL document http://localhost/js/activeui/runtime/classic/gecko.xml
This file is accessible, so its not a permissions thing. Still a bit stumped with this as the examples work fine as does your website

thanks for suggestions so far.
December 12,
Could it be that your webserver does not return "text/xml" as Content-Type for this file?
December 12,
Indeed this seems to be the problem, lookin at other servers gecko.xml file brings it up in the browser but with my webserver it fails to show it, I must assume either that it is not allowing this type of file (xml) or it is passing it to rubbish.

thanks for your help, now I will try the old fashioned telnet debug method to see whats going on.

Thanks once more
December 12,
Yes this was the problem, now I have gotten my webserver to deliver xml files without parsing the content things work great.
thanks for a useful tool.
December 12,

This topic is archived.

See also:

Back to support forum