开发者

Jquery How to change url for every ajax respond

开发者 https://www.devze.com 2022-12-26 06:37 出处:网络
$(\".blok\").newWindow({ windowTitle:\"Example1\", ajaxURL:\"Action.php?task=BlokDuzenleFormGetirBlokId=\"+$(\".blok\").attr(\'id\')
$(".blok").newWindow({
 windowTitle:"Example1",
 ajaxURL:"Action.php?task=BlokDuzenleFormGetirBlokId="+$(".blok").attr('id')
});

when first clicked on blok class a href, newWindow loads from data开发者_运维技巧 by $(".blok").attr('id'). Then every action sen same url to ajax, with not change. is there a way change url every single respond to call function by unique id parametre or anything like that.


Try this:

$(".blok").each(function(){
  $(this).newWindow({
     windowTitle:"Example1",
     ajaxURL:"Action.php?task=BlokDuzenleFormGetirBlokId="+$(this).attr('id')
  });

});
0

精彩评论

暂无评论...
验证码 换一张
取 消