Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

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?
0
perch
Asked:
perch
  • 2
  • 2
1 Solution
 
vux984Commented:
Create a frames site with two panes.
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
0
 
perchAuthor Commented:
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!
0
 
vux984Commented:
This should point you in the right direction. You will have to tweak it a bit to suit your application of course...

http://www.tips-tricks.com/automa.asp
0
 
perchAuthor Commented:
Thanks, I have been searching for that script.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now