Hi all,

Is createElement still unsupported in NS4.x? I haven't seen the error
message 
mentioned below ("createElement is not a function"), but I have run into one

problem:

When resizing netscape 4.7x, the first resize doesn't recreate the layers in

resizeHandler(), but if you resize again (without reloading), the layers are

created. The layers are definitely deleted the first time, but not
recreated. 
Seems like the first time you resize is the only time there is a problem. 
Anyone know why this happens or what the workaround is?

Thanks,
Monica

-----Original Message-----
From: Michael Pemberton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 07, 2001 8:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Dev] Q: from HTML3.


> Dear Dynapi experts,
> after much ignorance I managed to make up something which works as I like.
> It is compliant with the DOM level 2 (http://www.w3.org/TR/DOM-Level-2/).
>
> I was wondering what should I do to "convert" this code so that it use
DynApi.
> Infact, currently this code does not run with Netscape 4.7X as Netscape
reports that
> "createElement is not a function"
>

This currently an unsupported feature in NS4.x

>
> <HTML>
> <HEAD>
> <TITLE>Untitled</TITLE>
> </HEAD>
> <BODY ID="oBody" >
> <h1>Product level</h1>
> <FORM name="formName" method="POST" action="/cgi-bin/submit.cgi"">
> <SELECT ID="oSelect"  SIZE="3" ></SELECT>
> <INPUT type="TEXT"   ID="oData" >
> <INPUT TYPE="button"
>        VALUE="add to list"
>        onclick="var oOption = document.createElement('OPTION');
>                      oOption.text=oData.value;
>           oSelect.add(oOption);">

I think this could be replaced with:
       onclick="oSelect.options[oSelect.options.length] = new
Option(oData.value,oData.value);"

I'm just going off the NS JS1.3 Docs. I haven't tried this myself so I'm not
sure how it
will work in IE.

> <INPUT TYPE="button" VALUE="Submit">
> </FORM>
>
> </BODY>
> </HTML>

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010




_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to