on 03-26-2008 4:31 PM
Hi Experts,
I was trying to write a for loop in WAD to display text repeatedly.
for (i=0; i<4;i++ )
{
document.write("test");
}
After compiling and executing the template in EP, what i notice in the generated HTML is a "/" is automatically added in front of <.
A warning message was displayed on WAD showing < is an invalid character.
I tried replacing with <. It is not working as well. removing the ";", still not working.
Wonder if any comparison operators like <, >, <> can be added into WAD?
Please help. Points will be given. Thanks in advance.
Heng Meng, Yong
try this code
var i=0;
for (i=0;i<=10;i++)
{
document.write("Test" + i);
document.write("<br />");
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Escape Character is used.
For <,> is used.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem is with the < added in WAD. Do i need to add any escape character (If there's any) before the < operator?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
var i=0;
for (i=0;i<=10;i++)
{
document.write("Test" + i);
document.write("<br />");
}
Thanks
Chandran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.