Hi,
I think some patching done on 30/3/2001 might be to blame, see:
 
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 -----
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. {
 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. {
  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" >
 <input type="radio" name="foo" value="foo2" >
 <input type="radio" name="foo" value="foo3" >
 <input type="radio" name="foo" value="foo4" >
</form>
</body>
</html>
****************************** end sample code **************************************
 
 
 
Thanks,
John
 

Reply via email to