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!


Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1. #11
    Join Date
    Nov 2008
    Location
    Cambridge, UK
    Posts
    901
    Tokens
    100

    Default

    Quote Originally Posted by Adamm View Post
    Way to explain clearly.
    I'm a strong believer of people learning things on their own, not just been spoon fed working code. I appreciate your concern though

  2. #12
    Join Date
    Aug 2006
    Posts
    1,426
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by MattFr View Post
    I'm a strong believer of people learning things on their own, not just been spoon fed working code. I appreciate your concern though
    Like giving a 1 year old a book and expecting it to learn the language?

    Brilliant.



    sod the lot

  3. #13
    Join Date
    Nov 2008
    Location
    Cambridge, UK
    Posts
    901
    Tokens
    100

    Default

    Quote Originally Posted by Adamm View Post
    Like giving a 1 year old a book and expecting it to learn the language?

    Brilliant.
    I'm loving your creative analogy but it's not really the same, is it? If he is able to code some basic languages already, it's pretty easy to pick things up; I certainly did this with Actionscript 3. Sorry that my inferior mind doesn't comprehend the same logic as yours, but I am sure we can stop pushing this further off-topic now

  4. #14
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    Quote Originally Posted by Apolva View Post
    Use jQuery, it's much better than the other AJAX / Javascript effects classes IMO.

    http://jquery.com/

    Just include the script include, then do:
    Code:
    <a href="javascript:$('#div_id_here').load(rootdomain+'/static/privacy.php');">privacy1</a>
    More info about the jQuery load() function:
    http://api.jquery.com/load/

    Edit - Just a second note, with AJAX, the requested page has to be on the same domain/subdomain.
    Thanks for the help, but it still isn't working :S

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
        <title>Administration Panel</title>
        <link REL="stylesheet" href="adminstyle.css" media="screen" type="text/css" lang="en"/>
        <script type="text/javascript" src="../jquery-1.4.2.js"></script>
    </head>
    <body>
    
    <div id="AdminIn2Nav">
        <a href="javascript:$('#AdminIn2Content').load(rootdomain+'/content/home.php');">Admin Home</a> <br />
        <a href="javascript:$('#AdminIn2Content').load(rootdomain+'/content/userman.php');">User Manager</a><br />
    </div>
    
    <div id="AdminIn2Content">
    </div>
    
    </body>
    </html>
    Quote Originally Posted by MattFr View Post
    XMLHTTPRequest, job done.
    Helpful! :X
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  5. #15
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    Try this instead:
    Code:
    <a href="javascript:void(0);" onclick="$('#AdminIn2Content').load('content/home.php');">Admin Home</a>
    If not, link me the page you're having problems with.

  6. #16
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    That did it, thanks!

    Gunna have to look into this JQuery stuff
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

Page 2 of 2 FirstFirst 12

Posting Permissions

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