JQuery/Javascript

Permalink
I have a file upload JQuery block which works but not entirely as I'd like. My block calls a JQuery which in turn calls PHP code to do the actual file processing. I want to access C5 user attributes (Company, Name etc from the user profile) to name the directories. Can anyone give some pointers on how to access those variables/classes from the PHP code which is effectively called outside of C5 by the JQuery or how to pass them to the JQuery and in turn pass them to the PHP?

bucklandmedia
 
Shotster replied on at Permalink Reply
Shotster
Hi Tim,

Sounds like you're talking about an AJAX request, in which case a "tools" file would probably be appropriate. Andrew "da man" Embler has written a nice tutorial here...

http://andrewembler.com/posts/javascript-jquery-and-concrete5/...

Scroll down to where it talks about AJAX and tools.

-Steve
JohntheFish replied on at Permalink Reply
JohntheFish
See
http://www.concrete5.org/documentation/how-tos/developers/ajax-less... and the associated add-on for fairly minimal working examples.