I wrote html code locally in my machine, when run it in tomcat everything works fine, but when I checked it and deployed in Apache Server, all my html data attributes disappear. Thanks, your help is appreciated.
not2easy
3:37 pm on Feb 5, 2015 (gmt 0)
Hi mlotfi, welcome to the forums. When you write it on your local machine, can you view the page locally on your computer using your browser? When you say "deployed in Apache Server" is that local or hosted within a domain you own? Knowing the tools used (what was used to write your code), your OS and the environment where the differences are seen can help people figure out where to look for the causes.
mlotfi
3:50 pm on Feb 5, 2015 (gmt 0)
Hi not2easy,
yes I can view the page locally in my computer using any browser, it's working fine. the Apache Server is hosted within a domain, another linux machine. I am using Netbeans, (java, jsp, html).
my local machine is a windows 7.
Apache Server is hosted in RHEL 5.7 64 bit. Apache HTTPD v2.4.3
how to configure Apache HTTPD v2.4.3 to use html5 ?
Thanks.
lucy24
8:05 pm on Feb 5, 2015 (gmt 0)
how to configure Apache HTTPD v2.4.3 to use html5
I think you may have misdiagnosed the problem. HTML version has nothing to do with the server; it's simply an instruction to the browser about how to parse the text it receives. Any server, any platform, will send html files as plain text to the browser. (The same applies to almost all files with almost all extensions, except where there is server-side activity such as includes or php.)
What, exactly, is disappearing?
mlotfi
8:45 pm on Feb 5, 2015 (gmt 0)
when runing my html code locally, here is what I see in view source code :
Did you see that both data-id="28" data-price="100" disappear when run it in Apache server ?
not2easy
8:48 pm on Feb 5, 2015 (gmt 0)
Cross posted a totally useless comment, sorry, I did not see this latest addition. It appears that this is supposed to be a template, that the text showing within the
<html tags>
is intended to interact with a script?
phranque
10:19 pm on Feb 5, 2015 (gmt 0)
turn off javascript and compare the results. most likely you have some javascript modifying the html. perhaps the javascript isn't being loaded when you view it locally.
lucy24
11:41 pm on Feb 5, 2015 (gmt 0)
both data-id="28" data-price="100" disappear when run it in Apache server
Where do these two elements come from in the first place? Clearly it isn't hand-rolled HTML.