Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2014
    Thanked 0 Times in 0 Posts

    HashMaps and websites

    I am creating a game and forums, and I would like to have accounts for them. I have taken the CodeCademy Javascript course, but I am still not very good at it. I need help creating it, and would like some advice on creating HashMaps. It needs to be able to do the following:
    1) jQuery on the domain should be able to read and edit information on the file(s, as I have no idea if I'm going to make a separate file for each user, or have it as one) containing the HashMaps.
    2) The game, in Javascript, should be able to read the information.

    When I say "read", obviously I mean it should see the HashMaps and be able to compare them.

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Thanked 613 Times in 593 Posts
    just use script tags to point at your config. you would give them a variable name or wrap a callback call around the JSON in the external file.
    my site (updated 2014/10/20)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.3, IE11:9.2, IE9:2.7, IE10:2.6, FF:16.8, CH:47.5, SF:7.8, NON-MOUSE:37%


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts