[Javascript] Unknown runtime error
abhishek khurana
khurana.abhi at gmail.com
Wed Aug 20 00:50:19 CDT 2008
Hey Nagendra,
A little heads up it wud have been mentioning the browser causing this
problem.
The snippet (provided by u) works well on FF.
A little bit of googling, makes me arrive to the following snippet to make
it work on IE:
<html>
> <head>
> <script>
> function foo(){
> var d = document.createElement("div");
> d.innerHTML = "<nobr>aaa</nobr>";
> document.getElementById('aaa').appendChild(d);
> //document.getElementById('aaa').innerHTML="<nobr>aaa</nobr>";
> }
> </script>
> </head>
> <body onload="foo();">
> <nobr><div id='aaa' style='display:inline;'></div></nobr>
> </body>
> </html>
>
thanks,
On Wed, Aug 20, 2008 at 10:31 AM, Nagendra Oleti <ovsnk-reachme at yahoo.com>wrote:
> Hi
> The following sample throws "Unknown runtime error", any ideas to fix this?
> <html>
> <head>
> <script>
> function foo(){
> document.getElementById('aaa').innerHTML="<nobr>aaa</nobr>";
> }
> </script>
> </head>
> <body onload="foo();">
> <nobr><div id='aaa' style='display:inline;'></div></nobr>
> </body>
> </html>
> thanks
> Nagendra Oleti
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript
>
--
Abhishek Khurana
www.iXiGO.com
your travel search begins here
+91 9899270737
iXiGO.com A NASSCOM Top-100 Innovator and a Red Herring Top-100 Global
Finalist
More information about the Javascript
mailing list