473,511 Members | 10,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

inserted alert

20 New Member
Hello
I have been working on a couple of pages that access the same database "A". On one page, the users type in their information and when they submit, it goes into the db "A". The other page is just a page that the staff looks at that displays certain user information in a certain order (data comes from "A"). The staff page refreshes every two minutes automatically or sooner if a staff member presses the refresh button.
A staff member asked me if the staff page can refresh every time a user puts in their information. I'm not sure if I want to change the page, but if I did, how would I go about doing something like that? The user page and staff pages are not really connected to each other. They are both connected to the same db. Should I try to send something from the user page to the staff page that tells it to refresh when submit is press on the user page? Or should I just connect to the db more often and get the records and compare the db recordset with the web page recordset and display if different? Or maybe not compare at all and just refresh the information every minute or something.
Anyone have any ideas?

Thanks
Aug 29 '07 #1
3 1134
markrawlingson
346 Recognized Expert Contributor
Hmmm... well, with the introduction of AJAX this could be done. You'd have to be intimately familiar with ajax/javascript though.

You could setup a 1 line xml file or text file that simply holds a true/false value, initialized with false. Then, whenever a new submission comes in, you could write true to the file. Now you know that someone has submitted information.

On the page that displays the information from database A to your co-workers, you could have an ajax function check the file for a TRUE value in the background every x seconds (without refreshing the page). If it reads it and the file contains TRUE instead of FALSE you could call a refresh on the page and then set the file back to FALSE, ready for the next submission.

If you want to get even more complicated you could even write an ajax function to redisplay the information on the page even without refreshing.
Aug 29 '07 #2
fluff
20 New Member
whoa...ajax is amazing!
I will look into it. Thank you very much!
Aug 29 '07 #3
markrawlingson
346 Recognized Expert Contributor
It certainly is. The best thing to hit the web in about 7 years in my opinion!
Aug 29 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2220
by: hshen | last post by:
Hi All, I have encountered a weird behavoir of embedded MySQL. Through a simple program I made (in Delphi 6), I can insert rows to a table through embedded MySQL and I can retrieve the rows from...
2
13368
by: george | last post by:
This is like the bug from hell. It is kind of hard to explain, so please bear with me. Background Info: SQL Server 7.0, on an NT box, Active Server pages with Javascript, using ADO objects. ...
11
36998
by: serge | last post by:
When i debug a trigger is it possible to add a WATCH on the INSERTED or DELETED? I think not, at least I couldn't figure out a way to do so. Does someone have a suggestion on how I can see the...
0
1449
by: baaul | last post by:
I need to INSERT rows from #temp table into #final table with grp_code and bap_id combination. Thanks. Create Table #tmp ( sort_id int default 0, grp_Code int default 1,...
2
2949
by: Daz | last post by:
Hi. I would like to know how to obtain a reference to (or at least, element type of) the last node which was inserted into the document. I am using an event listener to listen for dom inserts,...
1
1759
by: den | last post by:
<input id="txtTop" type="text" onkeyup="fun_control(this)"/> function fun_control(var2) { if ((var2.value== 0) || (var2.value== 1) || (var2.value== 2) || (var2.value== 3) ) {alert('ok is a ...
0
924
by: chirnag | last post by:
I have and audit table to collection changes happening on an entity. This will be taken care by triggers. During a batch test, I found that out of 1000 inserts into the main table, I got only 997...
2
2086
by: Kev | last post by:
Hello world, I am trying to capture the latest entry into a text box by the user and then insert it in a separate text box. I must not be searching the right key words because I can only find...
3
1723
by: JurgenvonOerthel | last post by:
I want to replace one element in a list<stringby a list<stringand I need to obtain an iterator to the first element in the inserted list. In code: void...
5
1051
by: sjdevnull | last post by:
Is there some event I can monitor to tell either if a new li has been created as a child of a certain ul, or to tell if the ul contents have changed in general (so that I can walk the children...
0
7144
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7427
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7512
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5069
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.