[jQuery] Communicating Info from Server to Javascript, Prior to Ajax Calls?

[jQuery] Communicating Info from Server to Javascript, Prior to Ajax Calls?


Let's say I want my javascript to know some info, e.g. the username of
the user, and I'd like to communicate it prior to any Ajax calls. So
far I've been storing the info in a hidden field that jQuery can
access via an id. Is this the correct approach?
Thanks in advance to all for any info.





    • Topic Participants

    • vikr