originally posted in:BungieNetPlatform
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?
English
#Offtopic
-
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
-
Edited by Prototape: 2/23/2015 10:59:56 PMDepends 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.