Function to return value of as a global variable

Hi

Just wondering what the best approach would be to execute a client side function to retrieve a value from a MySQL db as a string.

For example I have a variable [b]username[/b ] that I populate after server side authentication when my application window opens. What I would then like to do is be able to pass that variable into a function that returns for instance staffname from the db and puts it into a global variable for use in the toolbar or other UI components.

Your suggestions would be much appreciated!

Connectors and dataprocessor are designed for CRUD operations. In your case the simple AJAX call will work better

docs.dhtmlx.com/api__dhtmlxajax_get.html

You can call a custom script that will return the required value.

Exactly what I was looking for. Thank you