Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-02-2012, 07:45 PM   PM User | #1
Gamerholic
New Coder

 
Join Date: Mar 2012
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
Gamerholic is an unknown quantity at this point
Mochi Media Submit scores

Mochi media has a problem with https sites.

It won't submit the score to the gateway url. How can I submit the score via ajax within the mochi media script?

Code:
<script type="text/javascript">
// Mochi Bridge
var options = {partnerID: "xxxx", id: "leaderboard_bridge"};
options.userID = "<?php echo $curmemid ?>";
options.username = "<?php echo $myname ?>";
options.gateway = "https://www.gamerholic.com/game_play_score.php?game_play_id=<? echo     $game_play_id ?>";
options.profileURL = "https://www.gamerholic.com/user.php?id=<?php echo $curmemid ?>";
options.siteURL = "https://www.gamerholic.com/";
options.siteName = "I Win For A Living";
options.callback = function (params) { alert(params.name + " (" + params.username + ")  just scored " + params.score + "!"); }
// uncomment this to display global scores
options.globalScores = "false";
// optional
// options.denyScores = "Login to Example to submit scores!";
// optional
// options.denyFriends = "true";
// optional
// options.denyChallenges = "true";
//uncomment this block for debug mode
//options.width = 320;
//options.height = 240;
//options.debug = "true";
Mochi.addLeaderboardIntegration(options);
</script>
Gamerholic is offline   Reply With Quote
Reply

Bookmarks

Tags
java script, mochi media

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:34 AM.


Advertisement
Log in to turn off these ads.