Quantcast
Channel: Moodle for mobile
Viewing all articles
Browse latest Browse all 8344

Re: How underscore works for dropdown?

$
0
0
par Nitu Dhaka.  

Hi Juan,

Need little more help, again I am getting confused.

The following code is written in main.js . Here I am calling the web service to update the database for rating. The web service is working fine(checked by client.php). but when in moodle mobile interface it comes on updating it gives an error "We lost the connection you need to reconnect again. Your token is invalid", and thereafter it throw at login page(mean log out the user) However all other web services and functions are working fine with the same token. I am checking the issue for 4-5 hours, but did not get the problem. And the web service have multidimension structure for parameter and return function.

The alert box for "now working fine' is not coming. Mean the error is before it. Please highlight the error.

ratepost: function(forumId, userid, ratevalue, postid, scaleid ) {

var data = {
"post[0][forumid]" : forumId,
"post[0][itemid]" : postid,
"post[0][scaleid]" : scaleid,
"post[0][rating]" : ratevalue,
"post[0][userid]" : userid
};
var d = new Array();
d[0] = data;


MM.moodleWSCall('local_forum_rating', d, function(res) {
alert('now working fine');
});
},

 


Viewing all articles
Browse latest Browse all 8344

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>