View Single Post
Old 01-25-2018, 11:33 AM   #8
psyang
Powerplay Quarterback
 
Join Date: Jan 2010
Exp:
Default

Quote:
Originally Posted by photon View Post
Yeah, that's the part where I start to get out of my depth

I'll have to poke around and try and see where I can shoehorn it in.
Typically, the ajax call will have two callback functions - one that gets called on success, and one on failure. Hopefully it's easy to find each, and easy to modify the code for the success callback.

The one thing that can trip people up in javascript is understanding context - the "this" object will point to different contexts depending on when/where it is used. So variables/functions you expect to be available in one place may not be available elsewhere because the context has changed. But context is a first class citizen, and can be passed around too, which is cool, but can also be confusing.

Anyways, good luck!
psyang is online now   Reply With Quote
The Following User Says Thank You to psyang For This Useful Post: