Solved

How to pass spry variable to innerHTML

Posted on 2012-03-20
1
369 Views
Last Modified: 2012-03-20
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,
0
Comment
Question by:cougarsy
1 Comment
 

Accepted Solution

by:
cougarsy earned 0 total points
ID: 37743353
Hello,

I have solved my problem--

I added this after assigning the innerHTML:

Spry.Data.initRegions();

Open in new window


Cheers!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now