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

using jsonp to allow for crossdomain xhr requests#27

Closed
captnswing wants to merge 1 commit intoobfuscurity:masterfrom
captnswing:master
Closed

using jsonp to allow for crossdomain xhr requests#27
captnswing wants to merge 1 commit intoobfuscurity:masterfrom
captnswing:master

Conversation

@captnswing
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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