cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript in Web Application Designer (WADuFF09

Former Member
0 Kudos

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 &LT;. 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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

try this code

var i=0;

for (i=0;i<=10;i++)

{

document.write("Test" + i);

document.write("<br />");

}

Answers (3)

Answers (3)

Former Member
0 Kudos

Escape Character is used.

For <,&gt is used.

Former Member
0 Kudos

The problem is with the < added in WAD. Do i need to add any escape character (If there's any) before the < operator?

ChandranGanesan
Active Contributor
0 Kudos

Hello,


var i=0;
for (i=0;i<=10;i++)
{
document.write("Test" + i);
document.write("<br />");
}

Thanks

Chandran