CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Periodically save Edit Grid

Print topic Send  topic

Author Message
slynch401k

Posts: 15
Posted: 10/03/2006, 11:51 AM

What is the best solution for saving the contents on a editable grid. I want the contents to be saved on for example when someone clicks the sort column.

Now if they click the sort, all entries disapear and I am afraid that someone will do this so I want it to save periodically.

Thanks in advance.

Steve
View profile  Send private message
slynch401k

Posts: 15
Posted: 10/03/2006, 6:23 PM

OK, how about can I call the submit button before a postback, if so how?

Thanks
View profile  Send private message
peterr


Posts: 5971
Posted: 10/03/2006, 8:54 PM

Couple ideas on periodical form submit found via Google:
http://www.faqts.com/knowledge_base/view.phtml/aid/6502
http://www.experts-exchange.com/Web/Web_Languages/JavaS...Q_22002774.html

I'm only not sure how would you deal with validation errors during such temporary submit/save.

Submitting the page and sorting/redirecting at the same time is probably not confirming to HTML standards and could be unreliable, if at all possible. Though maybe you could try some "tricks" using frames, IFRAME, DIV, Ajax. There are vast resources on the Internet covering such general topics.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
timdw

Posts: 25
Posted: 10/05/2006, 3:54 AM

An alternative would be some Javascript to detect if there are any changes. If there are, pop up an appropriate warning message asking for confirmation.

They discuss this here: http://www.aztec-it.com.au/article.php?story=20041022095620298 and http://www.tek-tips.com/viewthread.cfm?qid=1263118&page=1 has some code (ignore the top, the post at the bottom by jmille34) to automatically detect changes in a form. You could trigger this by putting in an onclick event on the sorter links, or even loop through all the links on the page during page onload to set the onclick event.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.