Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

Change field event not firing

$
0
0
I have a change field event that was worked well using PHPRunner 10.2. Now I'm using 10.3 and the event is not firing. I'll appreciate if I could be assisted with where I might have been wrong.

Below are the codes that I have in the event:

Client Before:

params["value"] = this.getValue();

Server:

$pno = $params["value"];

$sql = "select personnelno from personnel_tb where personnelno= '".$pno."'";
$rs = DB::Query($sql);
$row = $rs->fetchAssoc();
if (!$row) {
$result['message'] = "You have not entered a recognised personnel number, please contact Admin.";

}

Client After:


if (result["message"] ) {
alert(result['message']);
this.clear();
this.setFocus();
}

Viewing all articles
Browse latest Browse all 2586

Trending Articles