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

2009-04-22 Thread Vik
Thanks for the feedback, Jordon. Let's say it's not something that belongs in the cookie. Then is it correct to do it via a hidden field? On Apr 19, 2:59 pm, Jordon Bedwell jor...@envygeeks.com wrote: If you use PHP then it's better to have it output the userID as a variable already inside of

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

2009-04-22 Thread Jordon Bedwell
: Communicating Info from Server to Javascript, Prior to Ajax Calls? Thanks for the feedback, Jordon. Let's say it's not something that belongs in the cookie. Then is it correct to do it via a hidden field? On Apr 19, 2:59 pm, Jordon Bedwell jor...@envygeeks.com wrote: If you use PHP then it's better

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

2009-04-19 Thread Jordon Bedwell
If you use PHP then it's better to have it output the userID as a variable already inside of JavaScript to save the extra code, or to set it as a cookie, as a matter of fact, if you use Expression Engine, WP or most any other major CMS, there is a cookie already set with that info so you can just