help > [EMAIL PROTECTED] wrote: > > Send Dynapi-Help mailing list submissions to > [EMAIL PROTECTED] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.sourceforge.net/lists/listinfo/dynapi-help > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dynapi-Help digest..." > > --------------------------------------------------------------- > Today's Topics: > > 1. Re: form elements in a loadpanel?? (Richard Bennett) > > --------------------------------------------------------------- > > Subject: Re: [Dynapi-Help] form elements in a loadpanel?? > Date: Sun, 8 Apr 2001 00:39:57 +0200 > From: "Richard Bennett" <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: <[EMAIL PROTECTED]> > References: <003301c0bf83$d7beca80$bf00a8c0@belize> > > Hi, > I think some patching done on 30/3/2001 might be to blame, see: > http://www.mail-archive.com/dynapi-cvs%40lists.sourceforge.net/msg00181.html > > If you open src/lib/dynapi/event/mouse.js > > and change line 28 from this: > > DynMouseEvent.prototype.cancelBrowserEvent=function() > {this.browserReturn=false}; > > to this: > > DynMouseEvent.prototype.cancelBrowserEvent=function(b) > {this.browserReturn=b}; > > once again mouse events work ok in NS. I'm not sure if the patch > causes other problems... > > > > This should also help for Jimena Catalina's event problem. > > Cheers, > Richard Bennett > > [EMAIL PROTECTED] > www.richardinfo.com > (Everything running on, and ported to the 19/12/2000 snapshot of > DynAPI2) > 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: John Hammen > To: [EMAIL PROTECTED] > Sent: Saturday, April 07, 2001 6:57 PM > Subject: [Dynapi-Help] form elements in a loadpanel?? > > Hi All, > > I've been working on a project where I need to display > radio-buttons in a loadpanel. I'm not going to POST their > state at all, but I do need to catch their onClick handler. > > Everything works great in IE5 and NS6 and _used_ to work > great in NS4, but now I get no response from the onClick > handler of the 'input type=radio' tag, it's like the browser > isn't even recognizing the event at all. Something in the > DynAPI changed in the last week or two that broke this > functionality, but I can't yet figure out what it was. > > Is there something I can do to fix this? Any clues would be > appreciated... > > Here's a simple test case- works great in IE5/NS6, doesn't > work at all in NS4: > > ****************************** test.html > ************************************** > > <html> > <head> > <script language="Javascript" src="./js/dynapi.js"></script> > <script language="Javascript"> > DynAPI.setLibraryPath('./js/lib/'); > DynAPI.include('dynapi.api.*'); > DynAPI.include('dynapi.event.*') > DynAPI.include('dynapi.gui.loadpanel.js'); > </script> > <script language="Javascript"> > DynAPI.onLoad=function() { > lp = new LoadPanel(); > lp.setHTML("no file loaded"); > > lp.setSize(250,50); > lp.moveTo(200,100); > lp.setBgColor('yellow'); > > counter = 0; > var el = new EventListener(); > el.onload = function(e) { > status = 'got load event '+ counter++; > } > lp.addEventListener(el); > > DynAPI.document.addChild(lp); > lp.setURL('test_inner.html') > } > </script> > </head> > <body bgcolor="#ffffff"> > </body> > </html> > ****************************** test_inner.html > ************************************** > > <html> > </head> > <body bgcolor="#FFFFFF" text="#000000"> > <form name="form1" method="post" action=""> > <input type="radio" name="foo" value="foo1" > onclick="alert('foo')"> > <input type="radio" name="foo" value="foo2" > onclick="alert('foo')"> > <input type="radio" name="foo" value="foo3" > onclick="alert('foo')"> > <input type="radio" name="foo" value="foo4" > onclick="alert('foo')"> > </form> > </body> > </html> > ****************************** end sample code > ************************************** > > > > Thanks, > John > > > --------------------------------------------------------------- > _______________________________________________ > 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
