PxPlus User Forum

Main Board => Discussions => Web Services => Topic started by: suriakumar on December 31, 2025, 07:58:49 AM

Title: access pxplus variable in Javascript
Post by: suriakumar on December 31, 2025, 07:58:49 AM
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
Title: Re: access pxplus variable in Javascript
Post by: Mike King on December 31, 2025, 09:44:11 AM
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
Title: Re: access pxplus variable in Javascript
Post by: Devon Austen on January 05, 2026, 08:52:44 AM
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.