Hi guys,
I got some questions where I cannot help myself:
I want to host my website from a sd card. I went to GitHub - adafruit/SDWebBrowse: File browsing using the Arduino Ethernet shield and used that code and it worked, so that I am now able to view the content of my sd-card over the network.
But: When I click on the .html-file the browser opens it as an pure text-document. I see the whole html-syntax but it is not translated so that I see the resulting webpage.
UPDATE: It DOES work with the internet explorer. Why not in Firefox??
Example: That’s what I see, when I click on the html-file:
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>
$(document).bind("mobileinit", function() {
$.mobile.page.prototype.options.addBackBtn = true;
});
</script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0-alpha.1/jquery.mobile-1.2.0-alpha.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.0-alpha.1/jquery.mobile-1.2.0-alpha.1.min.js"></script>
</head>
<body>
<div id="home" data-role="page" data-add-back-btn="true">
<div data-role="header" >
<h1>Test</h1>
</div><!-- /header -->
and so on…what do I have to do, so that my browser translates it to a finaly webpag?
Regards,
Stevil