|
|
Hi
I have a frame set page with two frames on it.
The frame on the left is a navigation bar with a dyanmically created list of pages available to the user. They're hyperlinks and I can easily set the navigation URL to script if necessary.
The frame on the right is the page with data.
I want to be able to save the data on the page in the right frame when the user clicks on a link to a different page in the left.
I have a function in the .ascx in the footer of the data pages that reads the controls and saves the data. Is there any way to call that function?
So far, I haven't been able to come up with a solution.
I've thought about just saving the data every 3 seconds, but that seems to cause a problem when the user saves the data himself (or using previous/next buttons on the data page which cause a save).
Any ideas, I mean ANY ideas are welcome.
|
|
|
|
hi pcunicelli,
from my opinion, your auto-save within 3 seconds maybe is the best way but it will be the worst solutiosn if user clicking back or previous button via their web browser.
my suggestion, your data page (right frame) can be save it at client first (cookies file) then, your menu (left frame) needed to check that cookies files and save into database and delete that cookies immediately.
by the way, it's not good way to auto-saves within 2 different frames changing. user still need to click button from that data page to save to ensure the data is the right and confirm by them.
good luck.
|
|
|
|
|
|
Thanks Yusairi,
I don't think the cookies solution will work because I'm working with an unbound recordset. In order to save the data, I "read" the form's controls. The name of the field they're written to is the name of the control preceded by an 'N' or 'S' for numeric or string data.
I'm not that versed on scripting, but am looking forward to learning. I still think using a callback is the best way.
Peter
|
|
|
|
|
|
|
|