codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Frame Set question  pcunicelli at 18:48 on Thursday, August 25, 2005
 

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.


  Re: Frame Set question  Yusairi at 03:28 on Friday, August 26, 2005
 

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.
Yusairi: site expert
http://www.codetoad.com


  Re: Frame Set question  pcunicelli at 13:31 on Friday, August 26, 2005
 

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








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
• C++
• Re: refresh parent after closing pop up window
• Dynamic Insertion
• Date and Time function around the world???
• Significant Factors
• Perl array access
• Re: huffman encoding and decoding in C++...
• Perl One Liner: Replace {(
• Re: html including php, accessing the functions


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2009