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 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Site Alert

  1. #1
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default Site Alert

    Ok I have my site alert script that pops up.

    It used to be just a JS alert that was refreshed in an iframe and it popped up.

    But I made one like on Habbo. How can I use ajax to get the alerts?

    +REP to anyone who helps me complete this and rares on habbo

    Kevin

  2. #2
    Join Date
    Jan 2007
    Location
    Ontario, Canada
    Posts
    140
    Tokens
    0

    Default

    I think its somehting like this, correct me if not:

    <a href="javascript:void(null)"
    onclick="alert('Class was cancelled this day.')">
    <font size="2" face="verdana" color="#c51585">
    <b>- 31 Oct 05 -</b></font></a>
    Link for tutorial: http://www.activewidgets.com/javascr...ert-boxes.html
    Last edited by Ceoxe; 06-01-2007 at 03:00 PM.

  3. #3
    Join Date
    Sep 2004
    Location
    Liverpool
    Posts
    1,175
    Tokens
    52

    Latest Awards:

    Default

    Don't know if this is what you want but, i typed in "Ajax alerts" on google and this popped up;


    http://www.servletsuite.com/servlets/ajaxalerttag.htm
    Please report all posts that break the forum rules by clicking the 'Report' post icon.

    Report Infraction Problems
    Report Reputation Problems

  4. #4
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Neither one of those are what im looking for but +rep to you both in two days.

  5. #5
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Reformed View Post
    Don't know if this is what you want but, i typed in "Ajax alerts" on google and this popped up;


    http://www.servletsuite.com/servlets/ajaxalerttag.htm
    Yes but unless he is running a server that supports java servlet pages then that it totally useless crap.
    Last edited by Tomm; 06-01-2007 at 03:03 PM.

  6. #6
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Can you look tom for something?

  7. #7
    Join Date
    Jan 2007
    Location
    Ontario, Canada
    Posts
    140
    Tokens
    0

    Default

    i found this, its not AJAx but im not sure

    <tr>
    <td width='100&#37;' onMousedown='initializedragie()'>
    <table border='0' width='100%' cellspacing='0' cellpadding='0'>
    <tr>
    <td width='1%' background='bg image'><img src='/images/layout/alert/sign_lt.gif' width='15' height='97' border='0'></td>
    <td width='100%' bgcolor='#EFEFEF'> <font size='1' face='Verdana' color='#000000'><font face='Verdana' size='1' color='#000000'><center>Text Here<!-- line --><br><!-- break --></font></font><br>

    <a href='#' onClick='hidebox();return false'><center><br><img src='the okey image' width='38' height='23' border='0'></a></center>
    <td width='1%' background='image'><img src='alert image' width='16' height='97' border='0'></td>
    </tr>
    </table>
    </td>
    </tr>

  8. #8
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice View Post
    Ok I have my site alert script that pops up.

    It used to be just a JS alert that was refreshed in an iframe and it popped up.

    But I made one like on Habbo. How can I use ajax to get the alerts?

    +REP to anyone who helps me complete this and rares on habbo

    Kevin
    Depends what you want ajax for?

    SO you have a habbo style alert box?

    You use ajax, much in the same way as you would use the iframe. You have a php page, you make ajax check it every say 20 seconds or what ever. If it has a message on it, then ajax returns it, and u call the function to make the pop up. If not, theres no alert, so ajax doesnt call the alert function.

    The php page changes depedning on whether or not theres an alert or not.

  9. #9
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    http://www.habbo-record.com/site/index.php

    is the site the code will be on to display the alert. I have the code to display the alert. I just need to get the alert if there is one.

    I could do this VIA php but i cant using ajax

  10. #10
    Join Date
    Jan 2007
    Location
    Ontario, Canada
    Posts
    140
    Tokens
    0

    Default

    I dont quite understand what thta last post meant

Page 1 of 2 12 LastLast

Posting Permissions

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