Hi
How can I make it so that when I select in my velocity template some item after that sends an ajax request and fill in the fields for this object?
Thanks
Add javascript to your velocity template and attach your javascript to the focus or onchange event of the required item. Then you can make an ajax request in your javascript.
I think you have to make AJAX request on the change event of the item.
The ajax request will then send you the response and then you can fill your fields.
Something like this:
<span>AJS</span><span>.</span><span>$</span><span>.</span><span>get()</span>
It looks like you're new here. Sign in or register to get started.