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 4 of 4
  1. #1
    Join Date
    Mar 2006
    Posts
    131
    Tokens
    0

    Default I wondered if anyone knows..

    Hey,
    i was wondering if anyone could help me with somthing pretty small
    i am trying to send information via java/ajax whatever you wanna call it.. but it doesnt work :eusa_wall

    The code i have been trying is..

    function send(){
    var url = 'send.php?from=pixzo&type=message';
    new Ajax.Request(
    url, {
    onComplete: saved
    });
    }

    thank you

  2. #2
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Pixzo View Post
    Hey,
    i was wondering if anyone could help me with somthing pretty small
    i am trying to send information via java/ajax whatever you wanna call it.. but it doesnt work :eusa_wall

    The code i have been trying is..

    function send(){
    var url = 'send.php?from=pixzo&type=message';
    new Ajax.Request(
    url, {
    onComplete: saved
    });
    }

    thank you
    Good luck finding the answer, but I suck at ajax.

  3. #3
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Quote Originally Posted by Pixzo View Post
    Hey,
    i was wondering if anyone could help me with somthing pretty small
    i am trying to send information via java/ajax whatever you wanna call it.. but it doesnt work :eusa_wall

    The code i have been trying is..

    function send(){
    var url = 'send.php?from=pixzo&type=message';
    new Ajax.Request(
    url, {
    onComplete: saved
    });
    }

    thank you
    PHP Code:
    function send()
    {
      var 
    url 'send.php?from=pixzo&type=message';
      if(
    window.XMLHttpRequest)
      {  
        
    httpAjax = new XMLHttpRequest();
      }
      else if(
    window.ActiveXObject)
      {
        
    httpAjax = new ActiveXObject("Microsoft.XMLHTTP");
      }
      
    httpAjax.open("POST"urltrue);
      
    httpAjax.onreadystatechange saved;
      
    httpAjax.setRequestHeader("Content-Type""application/x-www-form-urlencoded");
      
    httpAjax.send();

    That should work, though I don't understand what you want.
    Hi, names James. I am a web developer.

  4. #4
    Join Date
    Mar 2006
    Posts
    131
    Tokens
    0

    Default

    Thank you very much
    I have no rep power, But i have pm'd you on that

Posting Permissions

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