CS 142 Lecture Notes: FormsSlide 1 Simple Form Value1: Value2:

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to Freeware/Shareware Chapter Four Essential Tools for Web Page Authors.
Advertisements

CS 142 Lecture Notes: FormsSlide 1 Simple Form Product: Price:
CS 142 Lecture Notes: FormsSlide 1 Simple Form Product: Price:
Paramount Health Group Benefit Portal for XL India Employees
The Librarian Web Page Carol Wolf CS396X. Create new controller  To create a new controller that can manage more than just books, type ruby script/generate.
CS 142 Lecture Notes: Rails Controllers and ViewsSlide 1 Simple Rails Template
Introduction to MVC Action Methods, Edit View, and a Search Feature NTPCUG Dr. Tom Perkins.
Pennsylvania Department of Environmental Protection Office of Oil and Gas Management Oil and Gas Production/Waste Reporting Offline Spreadsheet Report.
Proprietary and Confidential. Do not distribute. 1 ERA Manager – 5010 Changes Training.
WBLE Training Prepared by : Albert Yong and Jass Kok Web-Based Learning Environment Version 1.0 (August 2009) Centre for Learning and Teaching.
CS 142 Lecture Notes: FormsSlide 1 Simple Form Value1: Value2:
CS 142 Lecture Notes: Rails ActiveRecordSlide 1 Model for Student Table SELECT * FROM students; | id | name.
Help Manual for Stage 1,Submit Bid Hash (Bid Preparation) on DAE portal.
Paramount Health Group Benefit Portal for CSCIL Employees
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Unit 7 – Working with Forms 1. Creating a form 2. Accessing the submitted data 3. Common operations on forms.
Lecture 6 – Form processing (Part 1) SFDV3011 – Advanced Web Development 1.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Lecture 7 – Form processing (Part 2) SFDV3011 – Advanced Web Development 1.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Homework for October 2011 Nikolay Kostov Telerik Corporation
AQS Web Quick Reference Guide Changing Raw Data Values Using Maintenance 1. From Main Menu, click Maintenance, Sample Values, Raw Data 2. Enter monitor.
E-Volunteer AGENCY ADMINISTRATION
Integrating JavaScript and HTML5 HTML5 & CSS 7 th Edition.
Ruby on Rails Your first app. Rails files app/ Contains the controllers, models, views and assets for your application. You’ll focus on this folder for.
V 1.0Slide 1 Staff – Basic Info. V 1.0Slide 2 Staff – Basic Info Input the search criteria. Click search to start searching.
Photo Gallery INFO 2310: Topics in Web Design and Programming.
CS 142 Lecture Notes: Rails ActiveRecordSlide 1 Model for Student Table SELECT * FROM students; | id | name.
CS 142 Lecture Notes: Rails ActiveRecordSlide 1 Model for Student Table SELECT * FROM students; | id | name.
Copyright 2002, Paradigm Publishing Inc. CHAPTER 12 BACKNEXTEND 12-1 LINKS TO OBJECTIVES Mail Merge Concepts Mail Merge Concepts Mail Merge Wizard Mail.
Saving Form Data You can save form data in Google Spreadsheets using the following steps. 1.Create a Google Spreadsheet in your documents 2.Use Tools to.
ACCUPLACER Duplicate Student IDs Indiana Department Of Education
1 Review of Form Elements. 2 The tag Used in between tags.  Form elements(text control, buttons, etc.. ) goes here. OR  Form elements(text control,
Physics Exercise Generation and Simulation Interface Welcome! Login as Student Login as Instructor Register as Instructor Register as Student.
Mediclaim Portal for The Digital Group InfoTech pvt. ltd. Employees
® IBM Software Group © 2006 IBM Corporation Using JSF Mini-Calendar Controls This section describes how to use a JSF Mini-Calendar Control with EGL It.
ITM © Port, Kazman1 ITM 352 More on Forms Processing.
Teacher Web Page Creation Eileen Musselman. Log on to Muhlenberg’s Intranet Click Submit button.
Usability changes for Invitations & Campaigns Beyond URAL the usability changes for Invitations and Campaigns are detailed here.
Create, Update and Delete Carol Wolf Computer Science.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
CS 142 Lecture Notes: Rails ActiveRecordSlide 1 Model for Student Table SELECT * FROM students; | id | name.
Workflow Demo: Upload, Review and Approve. Cpay : Users & Functionalities Customer AdministratorCustomer AuthorizerUploaderReviewerApproverInterceptor.
Learning to use the Interactive Online Classroom Classroom Activities.
ICM – API Server & Forms Gary Ratcliffe.
BIT 286: Web Applications Lecture 04 : Thursday, January 15, 2015 ASP.Net MVC -
Paramount Health Group Benefit Portal for HUAWEI Employees
Section led by Ivan Lee Reachable at ivan period lee at cs period stanford period edu 1.
CS 142 Lecture Notes: FormsSlide 1 Simple Form Product: Price:
Rails and routing INFO 2310: Topics in Web Design and Programming.
CS 160 and CMPE/SE 131 Software Engineering February 9 Class Meeting Department of Computer Science Department of Computer Engineering San José State University.
The Controller Carol Wolf Computer Science. Rails generate commands  Using the generate command, you can create a number of useful objects.  Rails:
Unity Application Generator How Can I… Export variables of a Control module, modify the Initial values and import the list back into UAG.
BIT 286: Web Applications Lecture 04 : Thursday, January 15, 2015 ASP.Net MVC -
Informatics Computer School CS114 Web Publishing HTML Lesson 4.
2016 Commercial Project Submittal Webinar
Instructions You can easily edit the text and images on these Pinterest viral quotes by selecting either the text box or picture and working with that.
MetaData Metadata is data about data. It is that documentation about data and everything you do it It can be as simple as a date and an author or pages.
Benefit Portal for CSCIL Employees
Web Programming– UFCFB Lecture 17
MIS Professor Sandvig MIS 324 Professor Sandvig
Model for Student Table
In the home page, click on “Reports”
Web SA: File Upload Function
Instructions You can easily edit the text and images on these Pinterest viral quotes by selecting either the text box or picture and working with that.
ECARS - INCOMPLETE SERVICE REQUESTS.
Model for Student Table
VENDOR STOCK MASS UPLOAD MANUAL Enter the login id and password
PHP.
Presentation transcript:

CS 142 Lecture Notes: FormsSlide 1 Simple Form Value1: Value2:

CS 142 Lecture Notes: FormsSlide 2 Rails Form Helpers {:action => :modify, :id do |form| %> Name: Date of birth:... Name of model class (Student) Name of variable containing data Initial value will Text to display in submit button <input id="student_name" name="student[name]" size="30" type="text" value="Hernandez" />

CS 142 Lecture Notes: FormsSlide 3 Post Action Method def = Student.find(params[:id]) then redirect_to(:action => :show) else render(:action => :edit) end Hash with all of form data Redirects on success

CS 142 Lecture Notes: FormsSlide 4 Validation class Student < ActiveRecord::Base def validate if (gpa 4.0) then errors.add(:gpa, "must be between 0.0 and 4.0") end validates_format_of :birth, :with => /\d\d\d\d-\d\d-\d\d/, :message => "must have format YYYY-MM-DD“ end Custom validation method Built-in validator Saves error info

CS 142 Lecture Notes: FormsSlide 5 Error Message Helper {:action => :modify, :id do |form| %>......

CS 142 Lecture Notes: FormsSlide 6 File Uploads with Rails {:multipart => true} :url => {...}) do |form| %> In form post method: params[:student][:photo].read() params[:student][:photo].original_filename

CS 142 Lecture Notes: FormsSlide 7