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

AJAX bindings don't work #16

Closed
bergmark opened this issue May 9, 2013 · 1 comment
Closed

AJAX bindings don't work #16

bergmark opened this issue May 9, 2013 · 1 comment
Labels

Comments

@bergmark
Copy link
Member

bergmark commented May 9, 2013

This is because of faylang/fay#251

We should either fix that, or add temporary ajax bindings that actually works.

For now just use flat FFI bindings, like this:

jPost :: String -> Automatic f -> (Automatic g -> Fay ()) -> Fay ()
jPost = ffi "jQuery.ajax(%1, { data: JSON.stringify(%2), type: 'POST', processData: false, contentType: 'text/json', success: %3 })"
@bergmark
Copy link
Member Author

This was fixed in fay-jquery 0.4.0.0.

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

No branches or pull requests

1 participant