For some reason (although I installed 1.5.1 the latest version) the file scroller.js had not been installed in the /form directory.
doh! Ok I've included scroller.js in the installation xml file - mybad sorry!
I've also updated the SVN to improve the scroller.js code. I think the issue was that the scroller was only updating elements that were set to "show in table view".
Navigation works when I use the templates provided (default, bluesky, mint) but I would like to access in the form some of the data using $this->_data and the array does not seem to updated when going to the next record.
No it wouldn't. This is what happens
- Page is loaded via php (here is where $this->_data is craeted)
- On page load a form manager js class is created
- For each element on the form an element js class is created (different for each element type)
- these js element objects are then associated to the form.
- When you navigate with the scroller it sends an ajax request to the server to get the required record.
- the server sends this back as a JSON object
- each element js object receives an update command which will update its value by manipluating the DOM (i.e. the html )
- If using a custom template, for the object to be able to update its value, it will need to be encased in the correct div - e.g.
<div id="jos_fabrik_formdata_1___dropdown" class="readonly">One</div>
if you look at the source of the default template this is apprent.
hth
Rob