Hi all,

I have the following HTML code (code to follow at end) that I want to
add to a workflow HTML field.

I am developing the HTML in Webstorm and it works 100% in Firefox and
IE, but when I add the code to the HTML content of the HTML field in
designer and I click "Check Syntax" I get the following error:

Error: at line 13 and column: 12. syntax error
Error: at line 47 and column: 5. syntax error

The code is simply adding a row to a table...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>


<script language="javascript" type="text/javascript">

function addField() {
var tbodyvar = document.getElementById('tblBody');
var rowCount = tbodyvar.rows.length;
var row = tbodyvar.insertRow(rowCount);

for (var i=0; i< 4; i++){
var cell1 = row.insertCell(i);
var input;

if (document.all){ //input.name doesn't work in IE
input = document.createElement('input');
input.innerHTML += '<input name="field_"+rowCount+i />';

input = document.createElement('input');
input.name = "field_"+rowCount+i;
//input.id = input.name;
//input.type = "text";
//input.value = ""+rowCount+i;
//input.className = "textfield";

input.type = 'text';
input.size = '17';
input.id = "field_"+rowCount+i;




<form id="the_form">

<table width="50%" border="1" cellspacing="0" cellpadding="0">
<tbody id="tblBody">
<td height="30">
<input name="field_10" type="text" class="textfield" id="field_10" />
<td height="30">
<input name="field_11" type="text" class="textfield" id="field_11" />
<td height="30">
<input name="field_12" type="text" class="textfield" id="field_12" />
<td height="30">
<input name="field_13" type="text" class="textfield" id="field_13" />

<input name="count" type="hidden" id="count" value="2"/>
<input name="add" type="button" class="button" id="add" value="Add Another" onClick="addField();"/>



ccikara's Profile: http://forums.novell.com/member.php?userid=86966
View this thread: http://forums.novell.com/showthread.php?t=454237