hi,
I think your problem is in the html part, change the div containing the form
to this:
<div id="mainadform" style="position: relative;">
And it should work.
If the position isn't specified explicitly NS4 can't get a handle on the
layer.

On a side-note, despite what MS might say, spaces in object names can also
be dangerous.
Ad Type --> Ad_Type


Cheers,
Richard Bennett

[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to DynAPI2.53)
visit the DynAPI homepage (and FAQ) ::
http://dynapi.sourceforge.net/dynapi/index.php?menu=1
Browse (and search) the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi

----- Original Message -----
From: "ClassiViews Support" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 14 June, 2001 16:23
Subject: [Dynapi-Help] Forms, inlines and setHTML on NS4


> 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
>


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

Reply via email to