Xpages - code partial refresh

Hi,

If i place a script block with some javascript code inside a table and partially refresh the table the code executes fine. If i do the same inside a div or a panel (xp:div, xp:panel) it doesn’t work in IE (it works in FF).

Could someone help me with that?

Thanks,

Tibor