Dart Home | PowerWEB Zoom for ASP.NET | Custom Development | Reply | PowerWEB Zoom for ASP.NET Topics | Forums |
Author | Forum: PowerWEB Zoom for ASP.NET Topic: Using javascript onload event with PowerZoom |
jlaboure From: Cergy, France Posts: 3 Member Since: 12/19/06 |
posted December 19, 2006 5:54 AM Hello, I use PowerZoom in an aspx page, and i also need to use the javascript 'onload' event (client side). The issue is that i can't get it fired as soon as i add a Zoom control to the form. The reason is likely that Zoom control add the following client script block to the rendered page (wich replace my onload attribute in the html body tag) : window.onload=pwInitZooms; How can I use the onload event, keeping the Zoom control's Init procedure OK ? Thanks, Julien |
Jeff Cranford![]() From: Rome, NY USA Posts: 586 Member Since: 05/30/01 |
posted December 19, 2006 11:22 AM Hi, Yes, it does appear we are not properly accounting for existing onload functions. I've added this to our bug database as #4212 to be addressed in a future release. In the meantime, you can work around this by adding the Zoom init function ("pwInitZooms") to your custom onload call....something like this (I would recommend putting this after all other script on the aspx page...as low as possible): <script> function myOnload(){ alert("my load"); } window.onload = new Function("myOnload();pwInitZooms();"); </script> |
Reply | PowerWEB Zoom for ASP.NET Topics | Forums |
This site is powered by
![]() |