Skip to content

adding simple JSONP support #294

New issue

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

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

Already on GitHub? # to your account

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)

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

Successfully merging this pull request may close these issues.

2 participants