I’ve added a few new utilities to Fox Trails, mainly a few more field builders. They are undocumented at this point, but given the right parameters, they will work. These builders (utilities ending in “for”) require that you include both prototype.js and helpers.js in your .vml template.

You can do this by adding <script type=”text/javascript” src=”<<webroot>>/lib/somefilename.js”></script> in your .vml template.

The parseJSON utility is a very rudimentary tool that will allow you to parse a simple json string into properties of a visual foxpro object. This can be useful for passing data from a web page to foxtrails using Ajax. Currently this utility does not support json with nested objects, arrays or collections.

parseJSON now supports nested objects.

These utilities do not have any Unit Tests yet.

Leave a Reply

You must be logged in to post a comment.