perch
asked on
Sharing a database
I'm interested in making some sort of chat using Filemaker. So far I have used Claris Homepage to publish my databases on a local network. This has meant that while surfing the records, you have had to reload the page to see the latest records. I have tried a "document.write" javascript but although the records are rewritten into the homepage I can4t see records which have been added or deleted after that I the first time loaded the page.
Now I would like to know how to view the records of a database in real time. In other words, while browsing, I would like to see all records without having to reload the page. How?
Now I would like to know how to view the records of a database in real time. In other words, while browsing, I would like to see all records without having to reload the page. How?
ASKER
I have 2 frames like you say, but I haven´t got the javascript. I have never used cookies, so could you give me an example. Thanks for helping!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, I have been searching for that script.
Use one pane to display the last n records of the chat.
USe the other pane to allow new lines of chat to be submitted.
The second frame is simply a form that submits the record, and the first frame is simply the result of a the approrpriate database query augmented with a little javascript to reload the page every few seconds, thereby keeping the chat "realtime".
You could augment it by maintaining the last few lines of chat in a cookie, and then your database query would only need to retrieve the new lines each time it reloads.
Good luck,
-D