Forum Moderators: open

Message Too Old, No Replies

Check to see if a data base has been changed

data base is a file

         

MrGecko

1:03 pm on Mar 8, 2007 (gmt 0)

10+ Year Member



I'm making a chat engine and i got every thing working i just need a script that will check to see if the data base has been change and if it has it will refresh a frame

can any one help me

cmarshall

1:09 pm on Mar 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You may find this has already been done.

Check for "AJAX Chat" software.

MrGecko

1:27 pm on Mar 8, 2007 (gmt 0)

10+ Year Member



is ajax the same thing as javascript?

eelixduppy

1:33 pm on Mar 8, 2007 (gmt 0)



>> is ajax the same thing as javascript?

Not exactly. You use JavaScript, but they aren't the same.

AJAX = Asynchronous JavaScript And XML

AJAX Tutorial [w3schools.com]

MrGecko

1:36 pm on Mar 8, 2007 (gmt 0)

10+ Year Member



do i have to have ajax installed on my web server to use it?

eelixduppy

1:39 pm on Mar 8, 2007 (gmt 0)



ajax isn't server-side, therefore, no installation. You just need a browser that is capable; most are as of now.

MrGecko

1:40 pm on Mar 8, 2007 (gmt 0)

10+ Year Member



Thanks i'll take alook at it

phranque

1:41 pm on Mar 8, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



AJAX means Asynchronous JavaScript and XML.

functionally it means you have something in javascript that can request information from the server and update the page without having to send a complete new page.

the mechanism is typically the XMLHttpRequest object requesting an XML document from the server which is then parsed by the javascript.

MrGecko

1:44 pm on Mar 8, 2007 (gmt 0)

10+ Year Member



if i can find a script in php than i'll be happy

phranque

2:00 pm on Mar 8, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



i just need a script that will check to see if the data base has been change and if it has it will refresh a frame

a script on your server can't do jack to your frame without a request.
however, your frame can refresh itself - if it has an asynchronous tool to request a document from a script on your server...

MrGecko

2:12 pm on Mar 8, 2007 (gmt 0)

10+ Year Member



now i'm using a meta tag but it dose it every sec not when there is a update to the data base

MrGecko

2:20 pm on Mar 8, 2007 (gmt 0)

10+ Year Member



i think i found one i can read the source and find out how it works

MrGecko

2:20 pm on Mar 8, 2007 (gmt 0)

10+ Year Member



php Free Chat is a free, simple to install, fast, customizable and multi
languages chat that uses a simple filesystem for message and nickname
storage. It uses AJAX to smoothly refresh (no flicker) and display the
chat zone and the nickname zone. It supports customized themes based on
CSS and a plugin system that allows you to write your own storage
routines (ex: Mysql, IRC backends ...), and you own chat commands!