lisounder Posted February 10, 2011 Share Posted February 10, 2011 This retrieves the test in all browsers, Firefox, Opera, Chrome, etc., but not in Explorer 8. I get an unknown runtime error using the script debug. Many thanks for any help. <script type="text/javascript"> <!-- get tell a friend body text document.getElementById('textarea_body').innerHTML = '{$form.body|escape:javascript}'; --> </script> Link to comment https://forums.phpfreaks.com/topic/227252-getelementbyid-error-with-explorer-8/ Share on other sites More sharing options...
iPixel Posted February 10, 2011 Share Posted February 10, 2011 this may be silly, but perhaps try placing textarea_body in double quotes as opposed to single?! my best guess at the moment. Link to comment https://forums.phpfreaks.com/topic/227252-getelementbyid-error-with-explorer-8/#findComment-1172402 Share on other sites More sharing options...
lisounder Posted February 10, 2011 Author Share Posted February 10, 2011 Thanks for the suggestion... changed to double quotes but still fails in Explorer 8. Been racking my brain on this one with no luck. document.getElementById("textarea_body").innerHTML = '{$form.body|escape:javascript}'; Link to comment https://forums.phpfreaks.com/topic/227252-getelementbyid-error-with-explorer-8/#findComment-1172449 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.