Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Reload velocity template using AJS

Pandu Ranga April 25, 2013

Hi,

How can we access AJS values in VM file and reload based on that value.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Colin Goudie
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 25, 2013

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..

TAGS
AUG Leaders

Atlassian Community Events