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 9 of 9
  1. #1
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Talking Drag, Drop and Save.

    Hey,

    I have been messing about with scriptaculous and making a drag and drop... then send an AJAX request to save the position in a database.

    The boxes are created from the database and then put on the page.

    http://omgrly.com/misc/draggy/testdrag.php

    It has the posibility to turn into a Habbo Homes system or anything you want.

    Want the source code for the php? Contact me on MSN ([email protected]).

    Feel free to check out the source code.

    Any ideas on what to use this for? Lol.

    Thanks,
    Jake.

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

    Latest Awards:

    Default

    It seems to be a little...errr....messed up?..

  3. #3
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    Ok,

    How do you mean?

    EDIT: Looks like im going to have to change the request to POST... :p
    Last edited by Florx; 11-01-2008 at 09:16 PM.

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

    Latest Awards:

    Default

    DIVs are well off the page an stuff lol

  5. #5
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    Thanks for pointing that out.

    Ive changed the AJAX request method to POST so people can't mess with the variables.

    Thanks,
    Jake.

  6. #6
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    Hmm.. doesn't seem to work. Every time I refresh the page they're not how I left them plus the colours change. :S

  7. #7
    Join Date
    Dec 2007
    Posts
    412
    Tokens
    0

    Default

    Quote Originally Posted by Hitman View Post
    Hmm.. doesn't seem to work. Every time I refresh the page they're not how I left them plus the colours change. :S
    Because someone else moved them lol.

  8. #8
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    I disabled the AJAX save while I added some validation.

    Somebody was messing it up lol. Try now :p

    Thanks,
    Jake.

  9. #9
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by php.net View Post
    Because someone else moved them lol.
    Ahh, that'll explain it. They must be fast then.

Posting Permissions

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