What is wrong with < in script ?
3 posters
Page 1 of 1
What is wrong with < in script ?
the script file does not accept less than sign (<) whenever I change to < , script errors
ERROR
NO ERROR
ERROR
NO ERROR
Re: What is wrong with < in script ?
Hi @TamDonCo,
I didn't manage to replicate an error on my end. Then again I was doing it in the HTML pages, is that where you were getting the error ?
Try placing the content of your script in a CDATA section :
Here's my example script using CDATA :
Here's a topic on CDATA :
http://stackoverflow.com/questions/7092236/what-is-cdata-in-html
I didn't manage to replicate an error on my end. Then again I was doing it in the HTML pages, is that where you were getting the error ?
Try placing the content of your script in a CDATA section :
- Code:
//<![CDATA[
// JAVASCRIPT HERE
//]]>
Here's my example script using CDATA :
- Code:
<script type="text/javascript">//<![CDATA[
(function() {
var a = 5,
b = 6;
if (a && b && window.console) {
if (a < b) {
console.log('Lesser');
} else {
console.log('Greater');
}
}
}());
//]]></script>
Here's a topic on CDATA :
http://stackoverflow.com/questions/7092236/what-is-cdata-in-html
Re: What is wrong with < in script ?
hi Ange Tuteur
just update
it still has error
when I do
<script src=.......link here> < / script>
it works fine but I copy the contents and paste into file to run local and it has error
just update
it still has error
when I do
<script src=.......link here> < / script>
it works fine but I copy the contents and paste into file to run local and it has error
Re: What is wrong with < in script ?
Where are you adding this code?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: What is wrong with < in script ?
@TamDonCo would it be possible for you to post the code here so that we may look over it ?
Re: What is wrong with < in script ?
Ange Tuteur wrote:@TamDonCo would it be possible for you to post the code here so that we may look over it ?
Yes I can but it 's very long script .. is it OK
Re: What is wrong with < in script ?
You can post it in 2 posts.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: What is wrong with < in script ?
Could you post a screenshot of the error message you get?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: What is wrong with < in script ?
This is no screen shot, this works backgroud, it lets user to type in Vietnamese because Vietname has accents such as á , à , ư , ủ ... etc.
the above link works well when you put in <script scr= ..... > < / script>
the above link works well when you put in <script scr= ..... > < / script>
Re: What is wrong with < in script ?
Maybe I do not understand the purpose of this for your forum. You can set your language in your profiles and forum for Vietnamese.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Suggested Script (Need Someone that can read script)
» Servimg has wrong name
» Wrong links
» Something went wrong with this post
» What 's wrong with Bestbuy ?
» Servimg has wrong name
» Wrong links
» Something went wrong with this post
» What 's wrong with Bestbuy ?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum