Page 1 of 1

Re: accessing $memberInfo in javascripts file

Posted: 2014-09-15 04:11
by leesiusing
Hi,

I wanna control the field edit ability by using js magic file.

How to access $memberInfo array in the javascripts???

Thanks in advance!!!1


Aaron

Re: Re: accessing $memberInfo in javascripts file

Posted: 2014-09-15 19:56
by a.gneady
$memberInfo array is accessible only server-side, while the JavaScript magic files run on the client-side ... So, you need to create a server-side PHP script to retrieve the array, and you can then access it via an Ajax request from the JavaScript file.