I'm trying to assign strings to array elements in javascript. It works in Firefox but in IE it throws "Unknown runtime error".
Expand|Select|Wrap|Line Numbers
- sContent = '<p>this is a features test post.</p><p><a title="test" href="http://url.com">link</a></p>';
- g_ImageTable[g_imax++] = new Array ('<?php echo $sFeatureImgUrl; ?>', '<?php echo $iId; ?>', '<?php echo $sPermalink; ?>', '<?php echo $sTitle; ?>', sContent, '<?php echo $sCategory; ?>', '<?php echo $sTime; ?>', '<?php echo $sAuthor; ?>');
Expand|Select|Wrap|Line Numbers
- getobject("Ath_PostContent").innerHTML = g_ImageTable[g_iimg][4];
The contents of sContent at that time are
[HTML]"<p>another feature post. another feature post. another feature post. another feature post. another feature post. another feature post. another feature post. another feature post. another feature post. another feature post. another feature post. another feature post.</p>"[/HTML]
I'm not quite sure what else to try.
Any ideas?