Hi all,
I'm using the RealView MDK-ARM with the RealView Realtime Libary. At the moment I'm working on building a small embedded webpage for the MCB2300.
Everything works fine, but the fcarm tool used to create the small filesystem that holds the files for the webserver, might need an improvement.
I have the problem that I'm using javascript in the HTML files. So have lines off text with backslashes like:
... t if(ValueString.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}&/ t { t alert("IP matches format\n"); t } t else t { t alert("IP doesn't matches format\n"); t } ...
The fcarm already maskerades the " with \". But it doesn't do it with \. So I have to mask the \ manually with \\ like in the following example.
... t if(ValueString.match(/^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}&/ t { t alert("IP matches format\\n"); t } t else t { t alert("IP doesn't matches format\\n"); t } ...
I think such an improvment would be easy to implement. Why isn't it already implemented?
Rainer
Hi Andrea,
as far as I know, Keil has solved the issue with the backslash in the javascripts in their latest update. But I didn't have time to test it because I'm in a critical state on writing my diploma thesis. I'm still working with the old version embedded development toolkit 3.04.
In the case of css I can shortly desribe my experiences only: 1. Html-files with embedded css statement work fine. 2. Seperate css-files which are linked to a html-file through a kind of include tag in the header doesn't work properly.
I used an example webpage with seperate css-file which worked on my PC, moved them to the keil embedded webserver and the css didn't work. I didn't have time to address the problem properly, but I assume the FCARM tool doesn't recognize css-file with their special meaning and so it doesn't work.
As a workaround I used the scipting functions. I put all the css information in a central include file with the html tags and input that through the i command into the files.
Example:
File with central css statements: cssfile.inc: (must have the ending "inc"!)
<style type="text/css"> ... css statements (don't use comments, it doesn't work) ... </style>
scriptfile with orginal html-content: hello.cgi (must have ending "cgi"!)
t <html> t <head> # includes central css information i cssfile.inc t </head> t <body> t <h1>Hello World</h1> t </body> t </html> .
I'm using a index.html with a frameset that links to the cgi script files.
I hope that helps you...
We have fixed this problem. The fix will be available in the next RL-ARM release. If you need a fix now, please send an email to Keil support.
Franc