Hi,
How can we access AJS values in VM file and reload based on that value.
Community moderators have prevented the ability to post new answers.
Are you referring to the AJS javascript object?
What you'd best be looking at doing is sending the structure of your page using Velocity (vm file) and the populate the contents with data returned from AJAX calls. Then you can periodically poll to automatically update the data on your page.
To make it easier you can also use libraries such as KnockoutJS to bind your Javascript objects to the DOM so you don't have to manually update it with jQuery etc..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.