Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.
The script below only works if I leave the alert in. If I comment it out, the script does nothing. It should work without the alert. It should iterate through each element with the 'editable' class and update the innerHTML with the index from the array. It should, but it doesn't. I've fiddled with it for a while. What is happening here??? T.I.A.!
[code]var textContent = 'Header Text|White Text Over Green BG|Primary Text Content|First Footer Text|Second Footer Text';
alert('saved text content loaded into template');
var contentArray = textContent.split('|');
$('#ajaxContainer .editable').each(function(
this.innerHTML = contentArray[index];
});[/code]
Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.
Posted on 2011-05-10 at 13:53:56ID: 36812625
All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.