I want to add a new page called “sensor” to 4_4_Multiple_web_pages by doing this
The new HTML page is located in the “data” folder and is a copy of “about.html”.
After saving and build the new image
1. Build filesystem image
2. Upload filesystem image
All 4 icons is now in the navigation bar
Pressing the original 3 buttons is ok but pressing the new sensor link the response is
“This page does not work. HTTP error 500”
Dragging the “sensor.html” file to the browser shows a normal response.
What do I miss??
Kind regards
Kurt Kristensen
the cod does not shows properly in my question
hope this is better!
Hi.
Have you taken a look at the JavaScript console when you try to access that page?
Usually, it provides more information that is useful for debugging.
Regards,
Sara
Hi
I solved the problem myself!!
the reason is that all the file references need the complete http file name meaning.
<a href=”sensor”>Sensor</a> is not enough.
it should be
<a href=”sensor.http”>Sensor</a>
I wonder why both “sensors and outputs” does not need the complete file name???
kind regards
Kurt Kristensen