Adding Columns normally straightforward i Once model generated regenerate a

Adding columns normally straightforward i once model

This preview shows page 7 - 10 out of 10 pages.

a. Adding Columns normally straightforward i. Once model generated, regenerate a matching controller ii. Integrate new parts with your original controller b. Renaming Column can be problematic i. After regenerating model, delete any old columns ii. Some refactoring may be needed 1. Find and replace old column name with new column name in controllers and views 2. Careful not to replace columns with same names in different tables (controllers and views)
Image of page 7
FIT5032 Final Revision Neal Week9 1. JQuery a. JavaScript Library i. Make using JavaScript easier to accomplish b. Default syntax: i. $(selector).action() 1. A Selector to select the html element needed 2. An action that is applied to these elements c. $(document).ready(function() { alert('Welcome to jQuery'); }); i. The document ready function is used so that jQuery runs after all objects in the page are loaded. ii. $(function(){ alert('Welcome to jQuery'); }); 1. alternate syntax d. DOM- Document Object Model e. Add jQuery i. To HTML 1. <script type='text/javascript' src='Scripts/jquery.js' /> ii. To an MVC application, add to layout file: 1. @Scripts.Render("~/bundles/jquery") f. remove class i. $("#data tbody tr:even").removeClass("data"); g. add class i. $('#data tbody tr:even').addClass("rowColour2"); h. DatePicker i. The Date field ID is the name of the date field in the database e.g.: yearPub ii. MVC automatically specifies the id of controls as being the same as their database attribute name. iii. Add the Stylesheet references, which are included in the jQuery UI download to the Views/Titles/Create View. Week 10 1. Benefits of JavaScript Frameworks a. Some frameworks customised for: i. mobile devices ii. single-page applications b. With cross-compatibility issues of web browsers i. JavaScript frameworks provided the standard api’s c. More recently standards such as HTML5 allow even more portable applications 2. Single Page Applications 3. Angular JS
Image of page 8
FIT5032 Final Revision Neal i. Bi-directional data binding, from model to view and view to model 4. The AngularJS framework has three major parts 5. How to add Angular JS a. <scriptsrc="Scripts/angular.min.js"></script> Week 11 1. Deployment a. During development i. using internal Visual Studio embedded webservers and database servers b. When hosting web application, full IIS and database needed c. Depending on service provided i. If just platform provided then need to manage IIS and databases ii.
Image of page 9
Image of page 10

You've reached the end of your free preview.

Want to read all 10 pages?

  • Three '18
  • Staff

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture