> 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
mp...@ph...
ICQ: 12107010
|