Forums > Max For Live

Most efficient way to access Liveapi


Lee
May 16, 2012 | 7:04 pm

Hi, wondered if anyone had a feel for the most efficient way to access the live api through the liveapi object in js.

My choices are essentially between creating one object and using Goto to change the path each time I want to access/update a property or creating a new Liveapi object each time using the id of the object.

I’m guessing the latter is the way to go but wondered if none has any practical experience of this?

Thanks, L



Lee
May 17, 2012 | 10:33 pm

After some experimentation, it seems the best way is to cache each LiveAPI object created and use these to get/set any values in the set or in a controller.

L


Viewing 2 posts - 1 through 2 (of 2 total)