look at how you are referencing the form elements.  I think you need to change it to
allow for NS.  I don't think that NS uses an array of alements in the same fashion as
you have used.

ClassiViews Support wrote:

> I have the following code:
> ---------BEGIN CODE------------
> function update_price(){
> mf=DynAPI.document.getAll()["mainadform"];
>  ma=mf.doc.mainform;
>         alert(ma["Ad Type"].value);
>         switch(ma["Ad Type"].value){
>                 case "Private":
>                         switch(ma["Duration"].value){
>                                 case "1 Week":
>                                         mpr.setHTML('<font face="Arial" color=white
> style="font-size:16pt"><center><img
> src="images/arrows_right.gif">&nbsp;&nbsp;&nbsp;<b>This ad will cost
> $9.95</b>&nbsp;&nbsp;&nbsp;<img
> src="images/arrows_left.gif"></center></font>');
>                                         break;
>                                 case "2 Weeks":
>                                         mpr.setHTML('<font face="Arial" color=white
> style="font-size:16pt"><center><img
> src="images/arrows_right.gif">&nbsp;&nbsp;&nbsp;<b>This ad will cost
> $19.90</b>&nbsp;&nbsp;&nbsp;<img
> src="images/arrows_left.gif"></center></font>');
>                                         break;
>                                 case "3 Weeks":
>                                         mpr.setHTML('<font face="Arial" color=white
> style="font-size:16pt"><center><img
> src="images/arrows_right.gif">&nbsp;&nbsp;&nbsp;<b>This ad will cost
> $29.85</b>&nbsp;&nbsp;&nbsp;<img
> src="images/arrows_left.gif"></center></font>');
>                                         break;
>                                 case "1 Month":
>                                         mpr.setHTML('<font face="Arial" color=white
> style="font-size:16pt"><center><img
> src="images/arrows_right.gif">&nbsp;&nbsp;&nbsp;<b>This ad will cost
> $29.95</b>&nbsp;&nbsp;&nbsp;<img
> src="images/arrows_left.gif"></center></font>');
>                                         break;
>                         }
>                         break;
>
>                 case "Commercial":
>                         switch(ma["Duration"].value){
>                                 case "1 Month":
>                                         mpr.setHTML('<font face="Arial" color=white
> style="font-size:16pt"><center><img
> src="images/arrows_right.gif">&nbsp;&nbsp;&nbsp;<b>This ad will cost
> $49.95</b>&nbsp;&nbsp;&nbsp;<img
> src="images/arrows_left.gif"></center></font>');
>                                         break;
>                                 case "3 Months":
>                                         mpr.setHTML('<font face="Arial" color=white
> style="font-size:16pt"><center><img
> src="images/arrows_right.gif">&nbsp;&nbsp;&nbsp;<b>This ad will cost $119.85
> ($39.95/Month)</b>&nbsp;&nbsp;&nbsp;<img
> src="images/arrows_left.gif"></center></font>');
>                                         break;
>                                 case "6 Months":
>                                         mpr.setHTML('<font face="Arial" color=white
> style="font-size:16pt"><center><img
> src="images/arrows_right.gif">&nbsp;&nbsp;&nbsp;<b>This ad will cost $209.70
> ($34.95/Month)</b>&nbsp;&nbsp;&nbsp;<img
> src="images/arrows_left.gif"></center></font>');
>                                         break;
>                                 case "12 Months":
>                                         mpr.setHTML('<font face="Arial" color=white
> style="font-size:16pt"><center><img
> src="images/arrows_right.gif">&nbsp;&nbsp;&nbsp;<b>This ad will cost $359.40
> ($29.95/Month)</b>&nbsp;&nbsp;&nbsp;<img
> src="images/arrows_left.gif"></center></font>');
>                         }
>                         break;
>         }
> }
> ---------END CODE------------
>
> Which works on IE 4 & 5.5 (Win), but NS4(win) does not update the mpr
> DynLayer HTML.  Any suggestions?
>
> Oh, mpr is a global var set to a new dynlayer by DynAPI.onload.
>
> Don Whitehead
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010




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

Reply via email to