Categories | Question details Back To List | ||
custom javascript doesnt work anymore after grid.updateFromXMl(); hello, i have some js inserted in grid (hidden row). everything is fine but after mygrid.updateFromXMl(loadDataURL); it doesnt work anymore. this script adds a tooltip on hover... <script type="text/javascript"> var theTips = new TipsX3 ($$('.tipper'), {showDelay: 0}); </script> with class "tipper" i can add tooltips... <li class="tipper" title="inline title::some inline contents here">testing with inline content</li> there are other js that doesnt work after updateFromXMl like snap.com - it adds snapshots on hover to links... when i call mygrid.init() these javascripts will work after updatefromXMl, but grid flare on init... is there a way to use only updatefromXMl with such javascripts ? thank you mathias Answer posted by Stanislav on Sep 10, 2007 14:07 Update from XML functionality reset content of cell which come in XML document, so if this content was modified - all modification will be lost It seems that scripts which you mention made some modification to cell content and can work correctly after updateFromXML because modification lost, I don't see any way to preserve such custom modification on full grid updating, as far as I can see, only way to workaround issue - attache code to onXLE event and reinit tooltip script each time after XML reloaded. |