<@link_to controller="home2" action="companyInfo" destination="replaceMeFrame">Company Info</@>So instead... for now:
<script type="text/javascript" language="javascript"> $(document).ready(function() { $("#loadcompany").click(function(event) { $.ajax({ type: 'GET', url : '../htmlsnippets/companyinfo.html', success: function(result){ $('#replaceMeFrame').replaceWith(result); } }); });//loadcompany.click Views
Views in ActiveWeb are also called templates. They are located in the following directory:
src/main/webapp/WEB-INF/viewsNo JSPs
ActiveWeb does not use JSPs. The main reason for not using JSPs is thir inability to test generated HTML with JSPs in a test environment. For more on testing, see ... Generating views in tests.
Load the ActiveWeb javascript aw.js into your page
Some view functions like link_to require that you have the aw.js script loaded. Simply place the aw.js file in your webapp/js directory and add loading it to your page header <script src="../js/aw.js"></script>