JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
2/23/2015 10:52:13 PM
2

Can't Figure Out How To Store This In A Variable

I am trying to figure out how to put a value (such as a player's membershipId) into a variable. It may sound like a piece of cake for some of you, but I can't get it. Can anyone help me?

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • Need more info about what programming language u're using... For javascript array var tempArray = [ ]; tempArray .push( yourID ); then just for loop through that tempArray for your ID

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • Edited by Prototape: 2/23/2015 10:59:56 PM
    Depends on the language, heres a javascript reference: Var userid = where the id is stored. If you want the user to input their own id, then reference to the input box. So if the input box's id is userinput, it would be this: Var userid = $("userinput"); That's with jQuery as well. Otherwise it would be something like getelementbyid or something like that. It all depends on what you want to accomplish or how you want it to grab the user id. I imagine it works similarly in other languages. I haven't personally done anything with Bnets platform so I can't give anything more in depth, but I hope this helps.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

    3 Replies
    You are not allowed to view this content.
    ;
    preload icon
    preload icon
    preload icon