Use javascript at web application.
Posted: Tue Jan 12, 2016 12:35 pm
Hi,
I was able to build a web application with OMERO.web. Now I want to add some JavaScript logic into the web page. For this I wrote a js-file and store it next to the html file.
When I load the web application at the client I can see the content of the html page, but the js-file is not loaded. The error at the client browser is:
GET http://localhost:8080/WebHWorld/media/javaScript.js 404 (NOT FOUND)
The html file looks like this:
What do I need to change to load a javascript file?
Thanks!
I was able to build a web application with OMERO.web. Now I want to add some JavaScript logic into the web page. For this I wrote a js-file and store it next to the html file.
When I load the web application at the client I can see the content of the html page, but the js-file is not loaded. The error at the client browser is:
GET http://localhost:8080/WebHWorld/media/javaScript.js 404 (NOT FOUND)
The html file looks like this:
- Code: Select all
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="javaScript.js"></script>
</head>
<body>
<form action="/WebHWorld/" method="get">
<!-- MY CONTENT-->
</form>
</body>
<!html>
What do I need to change to load a javascript file?
Thanks!