Git Product home page Git Product logo

flyjsonp's People

Contributors

alotaiba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flyjsonp's Issues

Ampersand trouble

When I send a request (POST request for authentication, in this specific case) with an ampersand as part of one of the params, it disappears by the time it gets to my webapp. I'm guessing it's because there's a part of the process that mistakes it as an ampersand in a query string or something like that. Any idea how to get around this issue? Perhaps do some other encode/decode before calling FlyJSONP, like Base64, to avoid the characters? (Although that has equals signs; perhaps that'd be an issue, too?)

Can't draw data from a RAILS service

Hi to all,

I am trying to pull some json from a restfull RAILS app which is already feeding other clients but the success response
is not triggered.

Among other things I tried with the following code:

    FlyJSONP.init({debug:true});
    var url = document.getElementById("txt").value;

    FlyJSONP.get({
      url: url,
      success: callBack,
      error: function (errorMsg) {
        console.log(errorMsg);
      },
      parameters: {
        username: 'user',
        password: 'pass',
        contentType: "application/json"            
      }
   });

And here's what I get back:

In console:

Initializing!
flyjsonp.js:133Initialization options
flyjsonp.js:133
Object
flyjsonp.js:133Getting JSONP data
ad_formats:-1Resource interpreted as Script but transferred with MIME type application/json.

And the headers:

Request URL:https://api.ffm.nugg.ad/ad_formats?username=demo&password=demonugg&contentType=application%2Fjson&callback=flyjsonp_851E4A080E7D4B9D9772559D3AC9F11B
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:/
Referer:http://dashboard.nuggad.dev/ie_test.html
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22
Query String Parametersview URL encoded
username:demo
password:demonugg
contentType:application/json
callback:flyjsonp_851E4A080E7D4B9D9772559D3AC9F11B
Response Headersview source
Cache-Control:must-revalidate, private, max-age=0
Connection:Keep-Alive
Content-Type:application/json; charset=utf-8
Date:Thu, 22 Dec 2011 12:51:01 GMT
Etag:"54f43d428fb532fd87397740b05f8fb1"
Keep-Alive:timeout=15, max=99
Server:Apache/2.2.9 (Debian) Phusion_Passenger/3.0.9 mod_ssl/2.2.9 OpenSSL/0.9.8g
Set-Cookie:_nuggad_session=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJWZkNjVjMTJhNzAyOTQ5M2I2MWViZTEzMGY1YmQ5YmZhBjsAVEkiDHVzZXJfaWQGOwBGaUU%3D--2d89a4ee6ae3e7527c2315e45697c3b36e8aeca5; domain=.nugg.ad; path=/; HttpOnly
Status:200
Transfer-Encoding:Identity
X-Powered-By:Phusion Passenger (mod_rails/mod_rack) 3.0.9
X-Rack-Cache:miss
X-Request-Id:f60fb62d2b0ad3335587c6f54eb77966
X-Runtime:0.009249
X-Ua-Compatible:IE=Edge,chrome=1

Thank in advance for any suggestion!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.