Đang Thực Hiện

I need you to add a throttle function to my JQuery Function

Hello,

I just need some code added to the snippet below so that the amount of times the function can be called by clicking the button is throttled.

I'm quite new to JQuery so I couldn't quite figure it out.

I'm using the JQuery plugin located here - [url removed, login to view]

I've also attached the plugin to this project.

Here is the code for the button and function that it calls. The function needs to be throttled:

<div><a onclick="updateme();" class="button"><span style="color:white;">Refresh</span></a></div>

<script type="text/javascript">

function updateme() {

[url removed, login to view]({

type: 'GET',

url: '[url removed, login to view]<?php echo $product['product_id']; ?>',

dataType: 'json',

success: function(data) {

if ([url removed, login to view]) {

$('.pns-price').fadeOut().html([url removed, login to view]).fadeIn();

}

}

});

}

</script>

Kĩ năng: AJAX, HTML, Javascript, jQuery / Prototype

Xem nhiều hơn: this class jquery, json calls, jquery class, google html snippet, button onclick php, jquery json ajax, jquery ajax json, google ajax jquery, ajax json jquery, php jquery ajax, add div div, data refresh ajax, jquery fadein html, google snippet, php route, class json, javascript snippet, javascript add button, button html jquery, jquery button text

Về Bên Thuê:
( 13 nhận xét ) Fort Lauderdale, United States

ID dự án: #2503463

2 freelancer đang chào giá trung bình $30 cho công việc này

AdamsK

Ready for service sir, thanks.

$30 USD trong 1 ngày
(67 Nhận xét)
5.4
imfsolution

HI Sir! An expert web developer is here. Please see PM for my sample work and more details. Thanks!

$30 USD trong 0 ngày
(6 Nhận xét)
3.0