access pxplus variable in Javascript

Started by suriakumar, December 31, 2025, 07:58:49 AM

Previous topic - Next topic

suriakumar

Sir,

1) Is it possible to access pxplus variable in java script

2) java script variables in pxplus

We can do it php.  In php we can use php variable in java script and similarly we can use java script variables in Php.

Is there any such options in PXPLUS
Just give me small example

J.SURIAKUMAR

Mike King

PxPlus, like PHP, runs server side thus the answer is no, you cannot directly access JavaScript variables from PxPlus.

Below is a link to the same question asked about PHP where they discuss why server side processing, like PxPlus and PHP, cannot directly access JavaScript variables.

https://stackoverflow.com/questions/2379224/how-can-i-use-a-javascript-variable-as-a-php-variable
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com

Devon Austen

While not accessing variables like request you can use *BROWSER within pxplus to execute JS and get the return of a JS function call or define or set a JS global variable.
Principal Software Engineer for PVX Plus Technologies LTD.