Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

using jsonp to allow for crossdomain xhr requests #27

Closed
wants to merge 1 commit into from
Closed

using jsonp to allow for crossdomain xhr requests #27

wants to merge 1 commit into from

Conversation

captnswing
Copy link

Graphite seems to support jsonp as of late. I changed tasseo.js to use jsonp in the jQuery.ajax xhr call.

This allows tasseo to be used on another machine than the graphite machine.

@obfuscurity
Copy link
Owner

@captnswing - Tasseo used to do JSONP. Unfortunately, there is a significant memory leak condition when using JSONP.

#17
262df59

I'm surprised this diff works as submitted. IIRC you need to also set jsonp: 'jsonp' so it will recognize Graphite's callback name.

@captnswing
Copy link
Author

ok, apologies for not scanning earlier PRs before submitting this.
PS works on my machine, so far so good :-P

@captnswing captnswing closed this Jun 21, 2012
@obfuscurity
Copy link
Owner

@captnswing - No worries. FWIW I'd like to offer JSONP support again, but it will need to be raw javascript without jQuery (as it appears they have no intention on fixing this bug).

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

Successfully merging this pull request may close these issues.

2 participants