You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the JQuery module, the JS object finally passed to JQuery is automatically logged to the console. When I call the ajax function from the JQuery module like so
main = ajax "/ajax/example"putStrLn (\_ _ _ ->return())
error: function ($p1){
success: function ($p1){
url: Fay$$Cons {
car: "/"
cdr: Fay$$Cons {
car: "a"
cdr: Fay$$Cons {
car: "j"
cdr: Fay$$Cons {
...
And the result is that the actual url in the ajax request is http://my.domain.com/[object Object]. It looks like what's happening is that the url isn't being correctly serialized from a Fay list back to a JS string.
The text was updated successfully, but these errors were encountered:
I noticed this as well. I think the problem is that String is only serialized to a js string if the ffi parameter type is explicit as String. Here we have a record that contains Defined String fields instead. So we can solve by...
having Fay always serialize strings into js strings (would be a partial function...)
hard coding the ajax queries (then we lose a lot of flexibility)
In the JQuery module, the JS object finally passed to JQuery is automatically logged to the console. When I call the ajax function from the JQuery module like so
then what shows up in the log is
in more detail, the members of this object are:
And the result is that the actual url in the ajax request is
http://my.domain.com/[object Object]
. It looks like what's happening is that the url isn't being correctly serialized from a Fay list back to a JS string.The text was updated successfully, but these errors were encountered: