Sigma Php Ajax framework, Ajax Components, GUI Builder
May 23, 2012, 03:26:57 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Save Failed! alert showing even after data is saved  (Read 394 times)
prasanthkc
Newbie
*
Posts: 1


View Profile
« on: February 03, 2012, 03:45:20 AM »

SAVE Failed!
Exception:


Shows above alert while i am saving data. The data is saved, but showing alert. Where can i edit the function gives the alert msg, i tried editing saveFailure() in gt_grid.js included in the plugin module, but nothing happens. Pls help me to resolve the issue asap!!
Logged
onyx
Jr. Member
**
Posts: 5


View Profile
« Reply #1 on: February 10, 2012, 02:43:07 AM »

I am getting this too...

but  just started with this code. However I do know how to modify the Javascript to make it readable.

So replace the gt_grid_all.js with your own uncompacted version may help you to then track and debug, by changing it to be : at the start, then using Chrome's console to select and copy the entire dump of the file to your own new file, then include that instead.


Specifically, the block calling out this error condition is:


Godspeed tracking this down!
Logged
onyx
Jr. Member
**
Posts: 5


View Profile
« Reply #2 on: February 13, 2012, 06:06:11 PM »

Found that there is actually no bug in the javascript, but you must be VERY careful about the Controller.php. In particular, wrap each $json-> data in a check, so you are not invalidating the results.

My current working Controller.php follows, but is heavily customised to suit my app.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!