Andreas this changed in the current version since the old method did not work with Chrome browsers, the docs are not updated yet. Use something like
PM.Map.bindOnMapRefresh(function(e){ //your_function ... }); if you need you can also pass parameters to the event handler function PM.Map.bindOnMapRefresh({foo: bar, foo2: bar2}, function(e){ //your_function ... }); for more information see the jQuery .bind() function. armin PS: don't try to read the "compressed" JS files, check in the src files. On 29/03/2011 23:13, Andreas Douvalis wrote: > Hi > My name is Andreas and I use pmapper 4.1.1 > > in Wiki i found that: > to execute a JavaScript function every time the map is refreshed then add to > the init function referenced in config.inc something like > > $("#pmMapRefreshImg").bind("load", function(e){ > pm_scaleBar.update(PMap.scale); > }); > Moreover in pm_cjs.js i > found:$("#pm_mapUpdateEvent").bind("change",bindData,bindFunction); > I use uilayout and therefor I suppose that the pm_mapUpdateEvent is the > correct div id. > However I test with $("#pm_mapUpdateEvent").bind("change",bindData, > alert('test')); and it does not work.What is bindData ?Can someone explain me > how can I run one javascript function whenever I update map?How can I use the > above function? > > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users