In Progress

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>

Skills: AJAX, HTML, Javascript, jQuery / Prototype

See more: 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, html add div, json refresh, jquery amount, jquery index, div add html

About the Employer:
( 13 reviews ) Fort Lauderdale, United States

Project ID: #2503463

2 freelancers are bidding on average $30 for this job

AdamsK

Ready for service sir, thanks.

$30 USD in 1 day
(67 Reviews)
5.4
imfsolution

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

$30 USD in 0 days
(6 Reviews)
3.0