Re: accessing $memberInfo in javascripts file

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
leesiusing
Posts: 5
Joined: 2014-08-15 16:23

Re: accessing $memberInfo in javascripts file

Post by leesiusing » 2014-09-15 04:11

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

User avatar
a.gneady
Site Admin
Posts: 1287
Joined: 2012-09-27 14:46
Contact:

Re: Re: accessing $memberInfo in javascripts file

Post by a.gneady » 2014-09-15 19:56

$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.
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

Post Reply