Search All Forums
Dart Home | PowerWEB Zoom for ASP.NET | Custom Development Reply | PowerWEB Zoom for ASP.NET Topics | Forums   
AuthorForum: PowerWEB Zoom for ASP.NET
Topic: Using javascript onload event with PowerZoom

From: Cergy, France
Posts: 3
Member Since: 12/19/06
posted December 19, 2006 5:54 AM


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

How can I use the onload event, keeping the Zoom control's Init procedure OK ?


Jeff Cranford

From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted December 19, 2006 11:22 AM


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

function myOnload(){
  alert("my load");
window.onload = new Function("myOnload();pwInitZooms();");
Reply | PowerWEB Zoom for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX