This topic is locked
[SOLVED]

 Confirm on Add / Edit Feature on PHPRUNNER on a large project

12/16/2010 7:48:17 PM
PHPRunner General questions
romaldus author

why xlinesoft does'nt include confirm on add/edit feature in PHPRUNNER?

Confirm on add/edit is a very basic feature for web apps. Until the release of PHPRunner 5.3 (build 7113) i must MANUALLY add some javascript in visual editor. Some phprunner competitors has include this feature since the first release of their software.
I'm talking about a very large project with hundreds of add/edit page. Can you imagine how long to add the scipts manually in add/edit pages without mistake? It's pain....

Sergey Kornilov admin 12/17/2010

Personally I believe this is a very bad usability feature. It does nothing useful but prevents users from clicking on Save button accidentally. I would understand adding it to a few pages with very important info but adding it to each page is a usability nightmare.
There are other ways to achieve the same functionality like client and server side validation, saving a copy of old data in another table for archive purposes, option to undo. For example, on Amazon orders are placed to the queue where you can cancel or modify them for some period of time, until it shipped.
Sorry, there is no way to add this option to all pages at once rather than modifying source. Check files AddPage.js and EditPage.js in source\include\common\runnerJS\pages folder.
Function saveHn() is the one that prepares form and submits data. You can try to inject your own code there.