Hello,
I'm trying to assign strings to array elements in javascript. It works in Firefox but in IE it throws "Unknown runtime error".
- 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; ?>');
Then it breaks when I try to use that array entry -
- getobject("Ath_PostContent").innerHTML = g_ImageTable[g_iimg][4];
sContent is offset 4 and in debugging, that's where it dies.
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?