How can I make buttons unclickable?

gawakamygawakamy Member Posts: 109
edited April 2012 in Tech Support
Hi, GS Tech Supporters.
I made some buttons for IAP, and need to make them unclickable before user purchase them. How do I make it?

Answers

  • gawakamygawakamy Member Posts: 109
    @uptimistik Hi, how can I make "do action" and "do nothing"? Are there any behavior to make them?
  • howarddarlene28howarddarlene28 Member Posts: 2
    Maybe you can try this?

    $(document).ready(function() {
    $('input[type="button"]').click(function() {
    var input = this;
    input.disabled = true;
    setTimeout(function() {
    input.disabled = false;
    }, 3000);

    });
    });
  • gawakamygawakamy Member Posts: 109
    @howarddarlene28 Hi, Howard. I can not make sense what you mentioned. Where and how do I put them in? It looks like not a GS behavior. :(
  • patapplepatapple Member Posts: 873
    Maybe you can try this?

    $(document).ready(function() {
    $('input[type="button"]').click(function() {
    var input = this;
    input.disabled = true;
    setTimeout(function() {
    input.disabled = false;
    }, 3000);

    });
    });
    are you kidding me???? this is gamesalad...
  • MantoManto Member Posts: 796
    edited April 2012
    Do it just like this.

    image
  • gawakamygawakamy Member Posts: 109
    @Manto1 Thanks!! It works. I appreciate you. :)
  • MantoManto Member Posts: 796
    You're welcome :)
Sign In or Register to comment.