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