I am not a javascript pro but I assume that an event is attached every time you render an ajax button into your view. Since 1.1.9 you can choose to use live events or not. CHtml reference:
Hope it helps
P.S.: Did you set the scriptMap entry for the script that is downloaded twice to false? Like when jquery is downloaded again and again you could do:
This code doesn’t tell you anything. Any javascript errors on the client side? JQuery not loaded? What is file.js? When setting the scriptMap entry for JQuery to false you tell Yii to not load JQuery. So only disable it when you are sure that it was loaded already. If not your image refresh script won’t work
First request -> load page and JQuery
Ajax request to same action -> use scriptMap to prevent JQuery from being downloaded again