Link to home
Start Free TrialLog in
Avatar of cougarsy
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.

	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'>&nbsp;</td>";
	myStr = myStr + "<td width='319' bgcolor='#B891D9' class='companyinfo' align='center'>&nbsp;</td>";
	myStr = myStr + "</table>";

Open in new window


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
Avatar of cougarsy
cougarsy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial