cougarsy
asked on
How to pass spry variable to innerHTML
Hello,
I am building innerHTML for a div that will change depending on what the user selects. Code is below.
The Spry content {CompanyName} does not show the company name, but "{CompanyName}". I am not sure what the correct syntax is to build the innerHTML to show this variable.
I hope I have explained it clearly...thanks in advance for your help!
Cheers,
I am building innerHTML for a div that will change depending on what the user selects. Code is below.
myStr = myStr + "<tr spry:repeat='Mailings1' spry:setrow='Mailings1'>";
myStr = myStr + "<td width='289' bgcolor='#B891D9' class='companyinfo' align='center' style='border-top:thick'><strong>{CompanyName}</strong></td>";
myStr = myStr + "<td width='216' bgcolor='#B891D9' class='companyinfo' align='center'> </td>";
myStr = myStr + "<td width='319' bgcolor='#B891D9' class='companyinfo' align='center'> </td>";
myStr = myStr + "</table>";
The Spry content {CompanyName} does not show the company name, but "{CompanyName}". I am not sure what the correct syntax is to build the innerHTML to show this variable.
I hope I have explained it clearly...thanks in advance for your help!
Cheers,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.