Question

I'm trying to use the GET method to send and retrieve information from the server but I seem to be having some trouble with the formatting the data for transport.

Does backbone serialize the data into url parameters when using .save() .fetch() or .create()?

I'm trying to

model.save({count: 8},{type:'get'});

But apparently the object isn't being converted to url strings....is it I need to do my own serializing? or am I doing it wrong?

What is the convention when using ":get" instead of "post"?

Was it helpful?

Solution

If you want to use get you need to pass processData:true in the options

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top