title: Sending push notification through Urban Airship via JavaScript
body: <p>I've set up a simple web site consisting of a button with a JavaScript onclick method from which I want to send a push notification to my phone using Urban Airship. </p>
  
  <p>If I use quotes around the data property, I get a "500 (Internal Server Error)". If I don't use quotes around the data property, I get a popup authorization window from Urban Airship in which I write my app key and master secret. It seems to accept this, but afterwards I get a "405 (Method Not Allowed)". </p>
  
  <p>According to the Chrome Dev Tools, both ways get handled as a GET, even though it's specified as a POST (which is required). What could be wrong?</p>
  
  <pre><code>function sendButtonClick(){
      jQuery.ajax({
          type: 'POST',
          contentType: 'application/json; charset=utf-8',
          username:'my app key',
          password:'my app secret',
          url: 'https://go.urbanairship.com/api/push/broadcast/',
          data: {"android": {"alert": "alerttest", "extra": {"extra test": "extra value test"}}},
          dataType: 'jsonp',
      });
  };
  </code></pre>
  
  <p>Thanks in advance!</p>