Hi,
I'm not necessarily looking for detailed code examples, just a basic idea of how to accomplish this.
A simplified version of what I need to do is this:
1. Display table with say, 100 rows, in frame.
2. On Click of button fetch single row from server db...
3. ...then return that row to client browser and add it to the existing table in the frame, so we now see 101 rows.
The purpose is simple--I'm displaying records from a server table, and when one is added to the server table (via events totally unrelated to the client browsser), the client browser can see the new row without refetching and sending the entire 101 rows to the client
This seems like a common thing that must've been done a million times, but no one seems to be able to tell me how to do it. I've gotten all sorts of bizzare suggestions of Rube-Goldberg-like contraptions involving hidden browsers, writing huge cookies, etc.
But it seems to me that some client script language should support some sort of temporary client-side table, to which i can save the current 100 rows, then append the new row, then write the full thing back to the frame.
How would I accomplish step 3 above, specifically, with what method could I pass the single row from server to client, with what method could I cache the existing 100 rows on the client, finally, how do I pick up the new row in the client script, and write it all to the frame--all in a smooth motion?
Thanks for any input,
--jsteph
I'm not necessarily looking for detailed code examples, just a basic idea of how to accomplish this.
A simplified version of what I need to do is this:
1. Display table with say, 100 rows, in frame.
2. On Click of button fetch single row from server db...
3. ...then return that row to client browser and add it to the existing table in the frame, so we now see 101 rows.
The purpose is simple--I'm displaying records from a server table, and when one is added to the server table (via events totally unrelated to the client browsser), the client browser can see the new row without refetching and sending the entire 101 rows to the client
This seems like a common thing that must've been done a million times, but no one seems to be able to tell me how to do it. I've gotten all sorts of bizzare suggestions of Rube-Goldberg-like contraptions involving hidden browsers, writing huge cookies, etc.
But it seems to me that some client script language should support some sort of temporary client-side table, to which i can save the current 100 rows, then append the new row, then write the full thing back to the frame.
How would I accomplish step 3 above, specifically, with what method could I pass the single row from server to client, with what method could I cache the existing 100 rows on the client, finally, how do I pick up the new row in the client script, and write it all to the frame--all in a smooth motion?
Thanks for any input,
--jsteph