NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Gordon Holfelder on December 29, 2010, 07:08:12 PM

Title: How errors are displayed in popups
Post by: Gordon Holfelder on December 29, 2010, 07:08:12 PM
Hello There-

I just upgraded to 5.09 / 7.2 and I thought that this had been working. An error, like a required field, should display the error alert and then leave the popup form open. This does not happen. Using Web31, choose Countries, press insert (new country) and press save. The popup closes and the error displays in the web page. Am I correct in that thi houldbe woking?

Thanks,
Gordon
Title: Re: How errors are displayed in popups
Post by: Bruce on December 29, 2010, 11:12:06 PM
Confirmed as a bug Gordon - I'll get this fixed for the next build.
Title: Re: How errors are displayed in popups
Post by: Bruce on December 29, 2010, 11:47:27 PM
Hi Gordon,

ok, it's fixed for the next build.

There's a fairly straight-forward work-around you can use in the meantime.
Open
\clarion6\3rdparty\template\netweb.tpw
or \clarion7\accessories\template\win\netweb.tpw

search for a line (circa line number 2096) which is like this;

  ElsIf band(p_stage,NET:WEB:StageValidate) > 0 and p_web.RequestAjax = 1 and loc:popup

and change it to thisl

  ElsIf band(p_stage,NET:WEB:StageValidate) > 0 and band(p_stage,7) > 0 and p_web.RequestAjax = 1 and loc:popup

cheers
Bruce
Title: Re: How errors are displayed in popups
Post by: Gordon Holfelder on December 30, 2010, 08:06:15 AM
Hi Bruce-

Thanks! That worked like a champ.

Regards,
Gordon Holfelder