No, I thought you might not have set it to anything at all. But why bother with inline layers at all, if the position is absolute, you can just as well put the form in a dynlayer, and move it where you want. Anyway, I pasted your code in a page (attached) and like this it works IE5.5/NS4/NS6/Mozilla Richard. ----- Original Message ----- From: "ClassiViews Support" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 14 June, 2001 19:23 Subject: RE: [Dynapi-Help] Forms, inlines and setHTML on NS4 > Richard, > > I have the div set to absolute (as I thought it should be). Is that what is > causing the problem? > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Richard > Bennett > Sent: Thursday, June 14, 2001 12:00 PM > To: [EMAIL PROTECTED] > Subject: Re: [Dynapi-Help] Forms, inlines and setHTML on NS4 > > > 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"> <b>This ad will cost > > $9.95</b> <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"> <b>This ad will cost > > $19.90</b> <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"> <b>This ad will cost > > $29.85</b> <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"> <b>This ad will cost > > $29.95</b> <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"> <b>This ad will cost > > $49.95</b> <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"> <b>This ad will cost > $119.85 > > ($39.95/Month)</b> <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"> <b>This ad will cost > $209.70 > > ($34.95/Month)</b> <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"> <b>This ad will cost > $359.40 > > ($29.95/Month)</b> <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 > > > > _______________________________________________ > Dynapi-Help mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/dynapi-help >Title: DynAPI2 Examples - Dynapi by email
|
wxcxwcxwcxwcxwc vcxcvcxvcvcx xvccxvxcvxccxv vcxcvxcvxcvxcv |
