I have created an object in jquery
var obj= {'First': 'yellow','Second': 'red'};
I want to post this object to a vb function which has an objcolor which has primary and tint as properties. The function has two other parameters; sport and car. my post is
$.post('URL.action('ColorReal'),{'sport': 'bowling', 'car': 'olds', 'objcolor': 'obj'});
I set a breakpoints after the function in vb.net controller to see if parameters of function are populated sport as bowling and car has old but the objcolor has nothing. I have tried JSON.stringify(objcolor)
in the post and still nothing is passed. How should the object setting in the post be constructed?
try like
var ob = {
'sport': 'bowling',
'car': 'olds',
'objcolor': [{
'First': 'yellow',
'Second': 'red'
}]
}
$.post('URL.action("ColorReal")', ob);
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
I have tried a lot but can't add show more button automatically just after every three scroll down. .
I am passing variable to add_user. php ,now I want to pass same variable to another page countuser.
Im developing a mvc5 application using codefirst approach. Im returning a jason object to a view in this way,.
hi i have a images and i want to create a nav li for each image item. .