Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding simple JSONP support #294

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jwestbrook
Copy link
Collaborator

For issue #197 , this should add transparent JSONP support to all browsers that PrototypeJS supports.

I added unit tests for a cross domain url but was exactly sure how to make WEBrick do it correctly.

This should add transparent JSONP support to all browsers that
PrototypeJS supports.
@savetheclocktower
Copy link
Collaborator

Let's pencil this in for 1.8.

@jwestbrook
Copy link
Collaborator Author

no worries - had this PR sitting on my laptop and seeing all the updates reminded me to open this.

@savetheclocktower
Copy link
Collaborator

Despite jQuery's way of handling this, I'm hesitant to make it part of Ajax.Request, since the JSONP transport is completely different from your ordinary XMLHttpRequest. I would prefer a separate class like Ajax.JSONRequest. Thoughts?

@jwestbrook
Copy link
Collaborator Author

actually that would make it very clear if the dev was expecting JSONP to use the JSONPRequest method (and don't name it JSONRequest thats confusing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants