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
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default Ajax Pageloader doesn't work offline?

    I have been making my cousin a site on my computer and i used the ajax page loader. It works in ie6, firefox and all other browsers but in ie7 it doesn't work.

    Its the pageloader from dynamic drive.. But the thing is, when i download the script and put it on my machine it dnt work either, yet it works when i browse it online.

    Anyone know how to fix this problem?

  2. #2
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    I think IE limits offline pages, put it in your localhost so it thinks its a page off the web.
    Lets set the stage on fire, and hollywood will be jealous.

  3. #3
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Na i cba with that.

    That's really annoying....

  4. #4
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    Lol, how is moving it to htdocs annoying

    Make it a shortcut and add a keyboard shortcut, helps


  5. #5
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    No u plonka, i meant my cousins school doesn't have localhost.... ?

    But thanks for telling me about Cntrl c and cntrl v, thats really helped me, +REP



    I just wanna know if theres a way to get round this problem

  6. #6
    Join Date
    Jul 2008
    Location
    Hastings, UK.
    Posts
    2,050
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jackboy View Post
    No u plonka, i meant my cousins school doesn't have localhost.... ?

    But thanks for telling me about Cntrl c and cntrl v, thats really helped me, +REP



    I just wanna know if theres a way to get round this problem
    Download FIREFOX from the computer you're on, chuck it on a portable device, send it to your cousin, your cousin has firefox.. Shazzam!

  7. #7
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Calon View Post
    Download FIREFOX from the computer you're on, chuck it on a portable device, send it to your cousin, your cousin has firefox.. Shazzam!
    He has firefox.

    Also Calon should i use $_GET for my pages? Or is it being deprecated?
    Last edited by Jackboy; 16-11-2008 at 12:17 AM.

  8. #8
    Join Date
    Oct 2008
    Posts
    43
    Tokens
    0

    Default

    Hey there,


    EDIT:
    I reread your first post, it seems a missed the point a bit first time round. When run locally internet explorer will default to its Intranet security policy (which is stricter than what it uses on the web) You will usually get a pop-up / notification asking if you would like to allow the script to run when this happens. At this point its normally possible to add an exception if need be.
    I haven't used IE in a while, so sorry if I'm not being very specific.

    ----

    For a simple ajax page loading mechanism i would suggest something along the lines of
    Code:
    <script>
    function LoadPage(page,usediv) {
             // Set up request varible
             try {xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");}  catch (e) { alert("Error: Could not load page.");}
             //Show page is loading
             document.getElementById(usediv).innerHTML = 'Loading Page...';
             //scroll to top
             scroll(0,0);
             //send data
             xmlhttp.onreadystatechange = function(){
                     //Check page is completed and there were no problems.
                     if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
                            //Write data returned to page
                            document.getElementById(usediv).innerHTML = xmlhttp.responseText;
                     }
             }
             xmlhttp.open("GET", page);
             xmlhttp.send(null);
             //Stop any link loading normaly
             return false;
    }
    </script>
    source: http://www.habboxforum.com/showthread.php?t=342560

    Dynamic drive tend to hold errors due to be wildly over complicated where a very simple solution can do much the same job.

    Hope that helps,
    Cs-Dude
    Last edited by CS-dude; 16-11-2008 at 06:32 AM.

  9. #9
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Nope, it just says "Loading page" for ages and doesn't load....

Posting Permissions

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