Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > IE5 and document.createElement

Reply
Thread Tools

IE5 and document.createElement

 
 
Andrew Poulos
Guest
Posts: n/a
 
      12-06-2004
I'm having some trouble getting document.createElement to work with IE
5. Is this because it's unsupported? And, if it is unsupported, is using
innerHTML a valid workaround?

Andrew Poulos
 
Reply With Quote
 
 
 
 
Randy Webb
Guest
Posts: n/a
 
      12-06-2004
Andrew Poulos wrote:

> I'm having some trouble getting document.createElement to work with IE
> 5. Is this because it's unsupported? And, if it is unsupported, is using
> innerHTML a valid workaround?


<URL:
http://msdn.microsoft.com/workshop/a...ateElement.asp
/>

Implies that it should work in IE5, but what code is not "working"?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
 
Reply With Quote
 
 
 
 
Andrew Poulos
Guest
Posts: n/a
 
      12-06-2004
Randy Webb wrote:
> Andrew Poulos wrote:
>
>> I'm having some trouble getting document.createElement to work with IE
>> 5. Is this because it's unsupported? And, if it is unsupported, is
>> using innerHTML a valid workaround?

>
> <URL:
> http://msdn.microsoft.com/workshop/a...ateElement.asp
> />
>
> Implies that it should work in IE5, but what code is not "working"?
>

I've tested it further and I think the problem is different from the one
I first thought it was. Some thing like this doesn't work:

<script type="text/javascript">
window.onload = foo;
</script>
<body>

whereas this does work:

<script type="text/javascript">
</script>
<body onload="javascript:foo();">

This is not the way I want to handle events. Is there something I can do
to get the first way (event handlers?) to work in IE5?

Andrew Poulos

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse proxy problem with IE5 and a servlet delphine.ziegler@gmail.com Java 0 09-02-2005 05:13 PM
IE5 and IE5.5 css layout issues. Tom HTML 0 08-02-2004 11:58 AM
Servlet session tracking problems with IE5 and MPEG files Gilles Kuhn Java 3 12-01-2003 08:35 PM
IE5.5 and absolute position of a div david graham HTML 11 09-11-2003 11:09 AM
** IE5, IE6 and NETSCAPE COMPATIBILITY PROBLEM ** Federico Bari HTML 3 09-04-2003 11:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57