File extension changes behavior in Chrome and Firefox
File extension changes behavior in Chrome and Firefox
I have an .html file which works as expected in Chrome 5.0.375.99, IE 8.0.7600.16385, and Firefox 3.6.6.
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
$(document).ready(function () {
oTable = $('#companyList').dataTable();
});
CompanyId
Abbreviation
CompanyName
Url
ImageName
1
TTT
3T
link1
3t-logo.jpg
2
BTI
Bicycle Technology International
link2
bti-logo.jpg
[/code]
When I rename the file extension to .xhtml, the datatable returns "No matching records found" in Chrome and Firefox, but still works in IE. The only difference is the file extension. Could this have something to do with content encoding? Other ideas?
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
$(document).ready(function () {
oTable = $('#companyList').dataTable();
});
CompanyId
Abbreviation
CompanyName
Url
ImageName
1
TTT
3T
link1
3t-logo.jpg
2
BTI
Bicycle Technology International
link2
bti-logo.jpg
[/code]
When I rename the file extension to .xhtml, the datatable returns "No matching records found" in Chrome and Firefox, but still works in IE. The only difference is the file extension. Could this have something to do with content encoding? Other ideas?
This discussion has been closed.