Skip to content

How to get data with ajax request #20

Description

@decapo01

I'm having trouble getting data with an ajax request.

I have the code

val myPromise = $.ajax(url)

myPromise.done((data: Any, textStatus: String, jqXHr: JQueryXHR) => {
  println(data)
})

in the console log I get [object Object]

if I try to match data I get

Uncaught TypeError: Cannot read property 'getName__T' of null

I checked the textStatus and it returns success. I've also checked the request in the chrome dev tools and it is returning a json string. How do I use that json string after I've recieved it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions