Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3

Thread: Javascript help

  1. #1
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default Javascript help

    Hi,

    I'm trying to make a 'back' button for my AJAX Content Loader.

    My idea was that the first time the site is loaded the var "pages" is set to '0' and then everytime a page loads its increases once.

    Then after it is increased the var: page_<value of 'pages'> is set to the URL being loaded.

    So then to make a back button I'd just have to do my 'dopage' function but using the var: 'page_<value of 'pages'>-1' instead of an URL.

    My problem is I can't figure out how to set a var which has the value of another var in its name, if you get me

    If you don't understand, I'll try and explain it more clearly.

    Thanks to anyone who tries to help x

  2. #2
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    Hmmm, I understand, but I'm not entirely sure that it's impossible



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  3. #3
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    I tried doing liek:

    pages[Number(pages)] = url;

    so it'd set liek:

    pages[1]= url;

    But nope, didn't work

Posting Permissions

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