html head script script script function function script title title head body form input input form body html
|
|
- Easter Burns
- 5 years ago
- Views:
Transcription
1 ajax0.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <script src=" 6 <script> 7 8 function quote() 9 { 10 $.getjson("/quote", {symbol: $("#symbol").val()}, function(data) { 11 alert(data.price); 1 }); 13 } </script> 16 <title>ajax0</title> 17 </head> 18 <body> 19 <form onsubmit="quote(); return false;"> 0 <input autocomplete="off" autofocus id="symbol" placeholder="symbol" type="text"/> 1 <input type="submit" value="get Quote"/> </form> 3 </body> 4 </html>
2 ajax1.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <script src=" 6 <script> 7 8 $(document).ready(function() { 9 10 $("#quote").submit(function() { 11 1 $.getjson("/quote", {symbol: $("#symbol").val()}, function(data) { 13 alert(data.price); 14 }); 15 return false; }); }); 0 1 </script> <title>ajax1</title> 3 </head> 4 <body> 5 <form id="quote"> 6 <input autocomplete="off" autofocus id="symbol" placeholder="symbol" type="text"/> 7 <input type="submit" value="get Quote"/> 8 </form> 9 </body> 30 </html>
3 ajax.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <script src=" 6 <script> 7 8 function quote() 9 { 10 $.getjson("/quote", {symbol: $("#symbol").val()}, function(data) { 11 $("#quote").html(`a share of ${data.name} costs $${data.price}.`); 1 $("#symbol").val(""); 13 }); 14 } </script> 17 <title>ajax</title> 18 </head> 19 <body> 0 <form onsubmit="quote(); return false;"> 1 <input autocomplete="off" autofocus id="symbol" placeholder="symbol" type="text"/> <input type="submit" value="get Quote"/> 3 </form> 4 <p id="quote"></p> 5 </body> 6 </html>
4 application.py 1 import csv import os 3 import urllib.request 4 5 from flask import Flask, jsonify, render_template, request 6 from flask.exthook import ExtDeprecationWarning 7 from warnings import simplefilter 8 simplefilter("ignore", ExtDeprecationWarning) 9 from flask_autoindex import AutoIndex app = Flask( name ) 1 AutoIndex(app, browse_root=os.path.curdir) def quote(): 16 symbol = request.args.get("symbol") 17 url = f" apikey=najxwia8d6vn6a3k&datatype=csv&function=time_series_intraday&interval=1min&symbol={symbol}" 18 webpage = urllib.request.urlopen(url) 19 datareader = csv.reader(webpage.read().decode("utf-8").splitlines()) 0 next(datareader) 1 row = next(datareader) return jsonify({ 3 "name": symbol.upper(), 4 "price": float(row[4]), 5 "symbol": symbol.upper() 6 }) def register(): 31 return "You're registered! (Well, not really.)"
5 blink.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <script> 6 7 // toggles visibility of greeting 8 function blink() 9 { 10 let div = document.getelementbyid("greeting"); 11 if (div.style.visibility == "hidden") 1 { 13 div.style.visibility = "visible"; 14 } 15 else 16 { 17 div.style.visibility = "hidden"; 18 } 19 } 0 1 // blink every 500ms window.setinterval(blink, 500); 3 4 </script> 5 <title>blink</title> 6 </head> 7 <body> 8 <div id="greeting"> 9 hello, world 30 </div> 31 </body> 3 </html>
6 dom0.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <script> 6 7 function greet() 8 { 9 alert(`hello, ${document.getelementbyid("name").value}!`); 10 } 11 1 </script> 13 <title>dom0</title> 14 </head> 15 <body> 16 <form id="demo" onsubmit="greet(); return false;"> 17 <input autocomplete="off" autofocus id="name" placeholder="name" type="text"/> 18 <input type="submit"/> 19 </form> 0 </body> 1 </html>
7 dom1.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <title>dom1</title> 6 </head> 7 <body> 8 <form id="demo"> 9 <input autocomplete="off" autofocus id="name" placeholder="name" type="text"/> 10 <input type="submit"/> 11 </form> 1 <script> document.getelementbyid("demo").onsubmit = function() { 15 alert("hello, " + document.getelementbyid("name").value + "!"); 16 return false; 17 }; </script> 0 </body> 1 </html>
8 dom.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <script src=" 6 <script> 7 8 $(document).ready(function() { 9 $("#demo").submit(function(event) { 10 alert(`hello, ${$("#name").val()}!`); 11 event.preventdefault(); 1 }); 13 }); </script> 16 <title>dom</title> 17 </head> 18 <body> 19 <form id="demo"> 0 <input autocomplete="off" autofocus id="name" placeholder="name" type="text"/> 1 <input type="submit"/> </form> 3 </body> 4 </html>
9 form0.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <title>form0</title> 6 </head> 7 <body> 8 <form action="/register" method="get"> 9 <input autocomplete="off" autofocus name=" " placeholder=" " type="text"/> 10 <input name="password" placeholder="password" type="password"/> 11 <input name="confirmation" placeholder="password (again)" type="password"/> 1 <input name="agreement" type="checkbox"/> I agree 13 <input type="submit" value="register"/> 14 </form> 15 </body> 16 </html>
10 form1.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <title>form1</title> 6 </head> 7 <body> 8 <form action="/register" id="registration" method="get"> 9 <input autocomplete="off" autofocus name=" " placeholder=" " type="text"/> 10 <input name="password" placeholder="password" type="password"/> 11 <input name="confirmation" placeholder="password (again)" type="password"/> 1 <input name="agreement" type="checkbox"/> I agree 13 <input type="submit" value="register"/> 14 </form> 15 <script> let form = document.getelementbyid("registration"); 18 form.onsubmit = function() { 19 0 if (!form. .value) 1 { alert("missing "); 3 return false; 4 } 5 else if (!form.password.value) 6 { 7 alert("missing password"); 8 return false; 9 } 30 else if (form.password.value!= form.confirmation.value) 31 { 3 alert("passwords don't match"); 33 return false; 34 } 35 else if (!form.agreement.checked) 36 { 37 alert("checkbox unchecked"); 38 return false; 39 } 40 return true; 41 4 }; </script>
11 45 </body> 46 </html> form1.html
12 form.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <script src=" 6 <script> 7 8 $(document).ready(function() { 9 10 $("#registration").submit(function() { 11 1 if (!$("#registration input[name= ]").val()) 13 { 14 alert("missing "); 15 return false; 16 } 17 else if (!$("#registration input[name=password]").val()) 18 { 19 alert("missing password"); 0 return false; 1 } else if ($("#registration input[name=password]").val()!= $("#registration input [name=confirmation]").val()) 3 { 4 alert("passwords don't match"); 5 return false; 6 } 7 else if (!$("#registration input[name=agreement]").is(":checked")) 8 { 9 alert("checkbox unchecked"); 30 return false; 31 } 3 return true; }); }); </script> 39 <title>form</title> 40 </head> 41 <body> 4 <form action="/register" id="registration" method="get"> 43 <input autocomplete="off" autofocus name=" " placeholder=" " type="text"/> 44 <input name="password" placeholder="password" type="password"/>
13 45 <input name="confirmation" placeholder="password (again)" type="password"/> 46 <input name="agreement" type="checkbox"/> I agree 47 <input type="submit" value="register"/> 48 </form> 49 </body> 50 </html> form.html
14 froshims4/application.py 1 from cs50 import SQL from flask import Flask, render_template, redirect, request 3 4 app = Flask( name ) 5 6 db = SQL("sqlite:///froshims4.db") 7 9 def index(): 10 return render_template("index.html") 11 1 methods=["get", "POST"]) 14 def register(): 15 if request.method == "GET": 16 return render_template("register.html") 17 elif request.method == "POST": 18 if not request.form.get("name") or not request.form.get("dorm"): 19 return render_template("failure.html") 0 db.execute("insert INTO registrants (name, dorm) VALUES(:name, :dorm)", 1 name=request.form.get("name"), dorm=request.form.get("dorm")) return render_template("success.html") def registrants(): 7 rows = db.execute("select * FROM registrants") 8 return render_template("registrants.html", registrants=rows) 9 30 methods=["get", "POST"]) 3 def unregister(): 33 if request.method == "GET": 34 rows = db.execute("select * FROM registrants") 35 return render_template("unregister.html", registrants=rows) 36 elif request.method == "POST": 37 if request.form["id"]: 38 db.execute("delete FROM registrants WHERE id = :id", id=request.form.get("id")) 39 return redirect("/")
15 1 {% extends "layout.html" %} 3 {% block body %} 4 <ul> 5 <li><a href="/registrants">registrants</a></li> 6 <li><a href="/register">register</a></li> 7 <li><a href="/unregister">unregister</a></li> 8 </ul> 9 {% endblock %} froshims4/templates/index.html
16 1 {% extends "layout.html" %} 3 {% block body %} 4 You must provide your name and dorm! 5 {% endblock %} froshims4/templates/failure.html
17 froshims4/templates/layout.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <meta content="initial-scale=1, width=device-width" name="viewport"/> 6 <title>froshims4</title> 7 </head> 8 <body> 9 <h1>frosh IMs</h1> 10 {% block body %}{% endblock %} 11 </body> 1 </html>
18 1 {% extends "layout.html" %} 3 {% block body %} 4 <form action="/register" method="post"> 5 <input autocomplete="off" autofocus name="name" placeholder="name" type="text"/> 6 <select name="dorm"> 7 <option disabled selected value="">dorm</option> 8 <option value="apley Court">Apley Court</option> 9 <option value="canaday">canaday</option> 10 <option value="grays">grays</option> 11 <option value="greenough">greenough</option> 1 <option value="hollis">hollis</option> 13 <option value="holworthy">holworthy</option> 14 <option value="hurlbut">hurlbut</option> 15 <option value="lionel">lionel</option> 16 <option value="matthews">matthews</option> 17 <option value="mower">mower</option> 18 <option value="pennypacker">pennypacker</option> 19 <option value="stoughton">stoughton</option> 0 <option value="straus">straus</option> 1 <option value="thayer">thayer</option> <option value="weld">weld</option> 3 <option value="wigglesworth">wigglesworth</option> 4 </select> 5 <input type="submit" value="register"/> 6 </form> 7 {% endblock %} froshims4/templates/register.html
19 1 {% extends "layout.html" %} 3 {% block body %} 4 <ul> 5 {% for registrant in registrants %} 6 <li>{{ registrant.name }} from {{ registrant.dorm }}</li> 7 {% endfor %} 8 </ul> 9 {% endblock %} froshims4/templates/registrants.html
20 froshims4/templates/unregister.html 1 {% extends "layout.html" %} 3 {% block body %} 4 <form action="{{ url_for('unregister') }}" method="post"> 5 <select name="id"> 6 <option disabled selected value="">registrant</option> 7 {% for registrant in registrants %} 8 <option value="{{ registrant.id }}"/>{{ registrant.name }} from {{ registrant.dorm }}</option> 9 {% endfor %} 10 </select> 11 <input type="submit" value="unregister"/> 1 </form> 13 {% endblock %}
21 1 {% extends "layout.html" %} 3 {% block body %} 4 You are registered! (Really.) 5 {% endblock %} froshims4/templates/success.html
22 froshims5/application.py 1 from flask import Flask, render_template, redirect, request from flask_sqlalchemy import SQLAlchemy 3 4 app = Flask( name ) 5 6 # Flask-SQLAlchemy 7 app.config["sqlalchemy_track_modifications"] = False 8 app.config["sqlalchemy_database_uri"] = "sqlite:///froshims5.db" 9 app.config["sqlalchemy_echo"] = True 10 db = SQLAlchemy(app) 11 1 class Registrant(db.Model): tablename = "registrants" 15 id = db.column(db.integer, primary_key=true) 16 name = db.column(db.text) 17 dorm = db.column(db.text) def init (self, name, dorm): 0 self.name = name 1 self.dorm = dorm 3 5 def index(): 6 return render_template("index.html") 7 8 methods=["get", "POST"]) 30 def register(): 31 if request.method == "GET": 3 return render_template("register.html") 33 elif request.method == "POST": 34 if not request.form.get("name") or not request.form.get("dorm"): 35 return render_template("failure.html") 36 registrant = Registrant(request.form.get("name"), request.form.get("dorm")) 37 db.session.add(registrant) 38 db.session.commit() 39 return render_template("success.html") def registrants(): 44 rows = Registrant.query.all() 45 return render_template("registrants.html", registrants=rows)
23 46 47 methods=["get", "POST"]) 49 def unregister(): 50 if request.method == "GET": 51 rows = Registrant.query.all() 5 return render_template("unregister.html", registrants=rows) 53 elif request.method == "POST": 54 if request.form.get("id"): 55 Registrant.query.filter(Registrant.id == request.form.get("id")).delete() 56 db.session.commit() 57 return redirect("/") froshims5/application.py
24 1 {% extends "layout.html" %} 3 {% block body %} 4 <ul> 5 <li><a href="/registrants">registrants</a></li> 6 <li><a href="/register">register</a></li> 7 <li><a href="/unregister">unregister</a></li> 8 </ul> 9 {% endblock %} froshims5/templates/index.html
25 1 {% extends "layout.html" %} 3 {% block body %} 4 You must provide your name and dorm! 5 {% endblock %} froshims5/templates/failure.html
26 froshims5/templates/layout.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <meta content="initial-scale=1, width=device-width" name="viewport"/> 6 <title>froshims4</title> 7 </head> 8 <body> 9 <h1>frosh IMs</h1> 10 {% block body %}{% endblock %} 11 </body> 1 </html>
27 1 {% extends "layout.html" %} 3 {% block body %} 4 <form action="/register" method="post"> 5 <input autocomplete="off" autofocus name="name" placeholder="name" type="text"/> 6 <select name="dorm"> 7 <option disabled selected value="">dorm</option> 8 <option value="apley Court">Apley Court</option> 9 <option value="canaday">canaday</option> 10 <option value="grays">grays</option> 11 <option value="greenough">greenough</option> 1 <option value="hollis">hollis</option> 13 <option value="holworthy">holworthy</option> 14 <option value="hurlbut">hurlbut</option> 15 <option value="lionel">lionel</option> 16 <option value="matthews">matthews</option> 17 <option value="mower">mower</option> 18 <option value="pennypacker">pennypacker</option> 19 <option value="stoughton">stoughton</option> 0 <option value="straus">straus</option> 1 <option value="thayer">thayer</option> <option value="weld">weld</option> 3 <option value="wigglesworth">wigglesworth</option> 4 </select> 5 <input type="submit" value="register"/> 6 </form> 7 {% endblock %} froshims5/templates/register.html
28 1 {% extends "layout.html" %} 3 {% block body %} 4 <ul> 5 {% for registrant in registrants %} 6 <li>{{ registrant.name }} from {{ registrant.dorm }}</li> 7 {% endfor %} 8 </ul> 9 {% endblock %} froshims5/templates/registrants.html
29 froshims5/templates/unregister.html 1 {% extends "layout.html" %} 3 {% block body %} 4 <form action="{{ url_for('unregister') }}" method="post"> 5 <select name="id"> 6 <option disabled selected value="">registrant</option> 7 {% for registrant in registrants %} 8 <option value="{{ registrant.id }}"/>{{ registrant.name }} from {{ registrant.dorm }}</option> 9 {% endfor %} 10 </select> 11 <input type="submit" value="unregister"/> 1 </form> 13 {% endblock %}
30 1 {% extends "layout.html" %} 3 {% block body %} 4 You are registered! (Really.) 5 {% endblock %} froshims5/templates/success.html
31 geolocation.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <title>geolocation</title> 6 </head> 7 <body> 8 <script> 9 10 navigator.geolocation.getcurrentposition(function(position) { 11 document.write(position.coords.latitude + ", " + position.coords.longitude); 1 }); </script> 15 </body> 16 </html>
32 map.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <style> 6 7 html, body, #map 8 { 9 height: 100%; 10 margin: 0; 11 } 1 13 </style> 14 <title>map</title> 15 </head> 16 <body> 17 <div id="map"></div> 18 <script> 19 0 function initmap() { 1 let map = new google.maps.map(document.getelementbyid("map"), { center: {lat: , lng: }, 3 zoom: 4 4 }); 5 new google.maps.marker({ 6 map: map, 7 position: {lat: 4.376, lng: } 8 }); 9 new google.maps.marker({ 30 map: map, 31 position: {lat: , lng: } 3 }); 33 } </script> 36 <script src=" key=aizasyd060hfrs8e7sdasffhgqmid5ckrzau74&callback=initmap"></script> 37 </body> 38 </html>
33 storage.html 1 <!DOCTYPE html> 3 <html> 4 <head> 5 <title>storage</title> 6 </head> 7 <body> 8 <script> 9 10 if (!localstorage.getitem("counter")) { 11 localstorage.setitem("counter", 0); 1 } 13 document.write(localstorage.getitem("counter")); 14 localstorage.setitem("counter", parseint(localstorage.getitem("counter")) + 1); </script> 17 </body> 18 </html>
html head meta meta link title title head body div header header main main footer © footer div body html
bootstrap.html 3 7 8 9 10 11
More informationblink.html 1/1 lectures/6/src/ form.html 1/1 lectures/6/src/
blink.html 1/1 3: blink.html 5: David J. Malan Computer Science E-75 7: Harvard Extension School 8: 9: --> 11:
More informationlectures/0/src0/cs76/css/index.html index.html David J. Malan A homepage for the course that mimics ios's UI. 11. <!
lectures/0/src0/cs76/css/index.html 1 1 1 1 1 1 1 2 2 2 2 2 2 2
More informationajax1.html 1/2 lectures/9/src/ajax/ ajax1.html 2/2 lectures/9/src/ajax/
ajax1.html 1/2 3: ajax1.html 5: Gets stock quote from quote1.php via Ajax, displaying result with alert(). 6: 7: Computer Science 50 8: David J. Malan 9: 10: --> 1 1 15: 16:
More informationsrc1-malan/ajax/ajax1.html ajax1.html Gets stock quote from quote1.php via Ajax, displaying result with alert().
src1-malan/ajax/ajaxhtml 1 1 1 1 1 2 2 2 2 2 2 2 2 30. 3 3 3 3 3 3 3 3 3 40. 4 4 4 4 4 4 4 4 ajaxhtml Gets stock quote from quotephp via Ajax, displaying result with alert(). Building Mobile Applications
More informationArmin lucumr.pocoo.org
Flask @ Armin Ronacher @mitsuhiko lucumr.pocoo.org Slides and Code https://github.com/mitsuhiko/pyladies-flask Flask http://flask.pocoo.org/ Step 0 Install virtualenv $ sudo apt-get install python-virtualenv
More informationA Sample Approach to your Project
A Sample Approach to your Project An object-oriented interpreted programming language Python 3 :: Flask :: SQLite3 A micro web framework written in Python A public domain, barebones SQL database system
More information1061SMAP12 TLMXM1A (8648) (M2143) (Fall 2017) (MIS MBA) (2 Credits, Elective) [Full English Course] Fri 8,9 (15:10-17:00) B206
Tamkang University Social Media Apps Programming Google Map API 1061SMAP12 TLMXM1A (8648) (M2143) (Fall 2017) (MIS MBA) (2 Credits, Elective) [Full English Course] Fri 8,9 (15:10-17:00) B206 Min-Yuh Day,
More informationFlask Guide. Meher Krishna Patel. Created on : Octorber, 2017 Last updated : May, More documents are freely available at PythonDSP
Flask Guide Meher Krishna Patel Created on : Octorber, 017 Last updated : May, 018 More documents are freely available at PythonDSP Table of contents Table of contents i 1 Flask 1 1.1 Introduction.................................................
More informationPrincess Nourah bint Abdulrahman University. Computer Sciences Department
Princess Nourah bint Abdulrahman University Computer Sciences Department 1 And use http://www.w3schools.com/ PHP Part 3 Objectives Creating a new MySQL Database using Create & Check connection with Database
More informationWeb Development and HTML. Shan-Hung Wu CS, NTHU
Web Development and HTML Shan-Hung Wu CS, NTHU Outline How does Internet Work? Web Development HTML Block vs. Inline elements Lists Links and Attributes Tables Forms 2 Outline How does Internet Work? Web
More informationajax1.html 1/2 lectures/7/src/ ajax1.html 2/2 lectures/7/src/
ajax1.html 1/2 3: ajax1.html 5: Gets stock quote from quote1.php via Ajax, displaying result with alert(). 6: 7: David J. Malan 8: Dan Armendariz 9: Computer Science E-75 10: Harvard Extension School 11:
More informationLECTURE 14. Web Frameworks
LECTURE 14 Web Frameworks WEB DEVELOPMENT CONTINUED Web frameworks are collections of packages or modules which allow developers to write web applications with minimal attention paid to low-level details
More informationBuilding Web Applications
Building Web Applications Ambient intelligence Fulvio Corno Politecnico di Torino, 2017/2018 Goal Create simple web applications In Python For interactive interfaces For server-side components Learn a
More informationFlask-Migrate Documentation. Miguel Grinberg
Flask-Migrate Documentation Miguel Grinberg Sep 18, 2018 Contents 1 Installation 3 2 Example 5 3 Using Flask-Script 7 4 Configuration Callbacks 9 5 Multiple Database Support 11 6 Command Reference 13
More informationChapter4: HTML Table and Script page, HTML5 new forms. Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL
Chapter4: HTML Table and Script page, HTML5 new forms Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL Objective To know HTML5 creating a new style form. To understand HTML table benefits
More informationHOW TO FLASK. And a very short intro to web development and databases
HOW TO FLASK And a very short intro to web development and databases FLASK Flask is a web application framework written in Python. Created by an international Python community called Pocco. Based on 2
More informationLecture 10(-ish) Web [Application] Frameworks
Lecture 10(-ish) Web [Application] Frameworks Minimal Python server import SocketServer import SimpleHTTPServer class Reply(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_get(self): # query arrives
More informationthis is a cat CS50 Quiz 1 Review
CS50 Quiz 1 Review this is a cat CS50 Quiz 1 Review JavaScript CS50 Quiz 1 Review first, recall from zamyla Remember, PHP is run server-side. The HTML output of this PHP code is sent to the user. Server
More informationThis%is%CS50.% Harvard*University*Fall%2012* Quiz*1* out*of*121*points* Name* * * * * * * * * * * % % Harvard*ID*number* * * * * * * * * %
ThisisCS50. HarvardUniversityFall2012 Quiz1 outof121points Donotturnthispageoveruntiltoldbythestafftodoso. Thisquizis"closed@book."However,youmayutilizeduringthequizonetwo@sided page(8.5" 11")ofnotes,typedorwritten,andapenorpencil,nothingelse.
More informationIslamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.
Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 5049 Advanced Internet Technology Lab Lab # 1 Eng. Haneen El-masry February, 2015 Objective To be familiar with
More informationCIS192 Python Programming
CIS192 Python Programming Web Servers and Web APIs Eric Kutschera University of Pennsylvania March 6, 2015 Eric Kutschera (University of Pennsylvania) CIS 192 March 6, 2015 1 / 22 Outline 1 Web Servers
More informationForm Overview. Form Processing. The Form Element. CMPT 165: Form Basics
Form Overview CMPT 165: Form Basics Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University October 26, 2011 A form is an HTML element that contains and organizes objects called
More informationThis is CS50 CS164. Mobile Software Engineering
This is CS50 CS164 Mobile Software Engineering diff cs50 cs164 HTML5, PHP, JavaScript, Objective-C workload typedef struct node { int n; struct node *next; } node; typedef struct node { student *student;
More informationCIS192 Python Programming
CIS192 Python Programming Web Servers and Web APIs Raymond Yin University of Pennsylvania November 12, 2015 Raymond Yin (University of Pennsylvania) CIS 192 November 12, 2015 1 / 23 Outline 1 Web Servers
More informationBuilding a Python Flask Website A beginner-friendly guide
Building a Python Flask Website A beginner-friendly guide PythonHow.com Copyright 2016 PythonHow.com. All rights reserved. 1 Preface This book contains a quick guide on understanding and using the Python
More informationWorking Bootstrap Contact form with PHP and AJAX
Working Bootstrap Contact form with PHP and AJAX Tutorial by Ondrej Svestka Bootstrapious.com Today I would like to show you how to easily build a working contact form using Boostrap framework and AJAX
More informationProduced by. Agile Software Development. Eamonn de Leastar
Agile Software Development Produced by Eamonn de Leastar (edeleastar@wit.ie) Department of Computing, Maths & Physics Waterford Institute of Technology http://www.wit.ie http://elearning.wit.ie Pacemaker
More informationQuick housekeeping Last Two Homeworks Extra Credit for demoing project prototypes Reminder about Project Deadlines/specifics Class on April 12th Resul
CIS192 Python Programming Web Frameworks and Web APIs Harry Smith University of Pennsylvania March 29, 2016 Harry Smith (University of Pennsylvania) CIS 192 March 29, 2016 1 / 25 Quick housekeeping Last
More information1 Form Basics CSC309
1 Form Basics Web Data 2! Most interesting web pages revolve around data! examples: Google, IMDB, Digg, Facebook, YouTube! can take many formats: text, HTML, XML, multimedia! Many of them allow us to access
More informationflask-excel Documentation
flask-excel Documentation Release 0.0.3 C.W. July 11, 2015 Contents 1 Installation 3 2 Setup 5 3 Quick start 7 4 More excel file formats 9 5 Data import and export 11 6 Export filtered query sets 13 7
More informationCS1520 Recitation: Security in Flask
CS1520 Recitation: Security in Flask Jeongmin Lee Slide contents based on a post by Damyan Bogoev at: https://damyanon.net/post/flask-series-security/ Plan for Today XSS (Cross Site Scripting) CSRF (Cross-Site
More informationLECTURE 14. Web Frameworks
LECTURE 14 Web Frameworks WEB DEVELOPMENT CONTINUED Web frameworks are collections of packages or modules which allow developers to write web applications with minimal attention paid to low-level details
More informationCE419 Web Programming. Session 3: HTML (contd.), CSS
CE419 Web Programming Session 3: HTML (contd.), CSS 1 Forms 2 Forms Provides a way to interact with users. Not useful without a server-side counterpart. 3 From Elements
More informationForm Processing in PHP
Form Processing in PHP Forms Forms are special components which allow your site visitors to supply various information on the HTML page. We have previously talked about creating HTML forms. Forms typically
More informationChapter 1 FORMS. SYS-ED/ Computer Education Techniques, Inc.
Chapter 1 FORMS SYS-ED/ Computer Education Techniques, Inc. Objectives You will learn: How to use forms and the related form types. Controls for interacting with forms. Menus and presenting users with
More informationAdvantages: simple, quick to get started, perfect for simple forms, don t need to know how form model objects work
1 Forms 1.1 Introduction You cannot enter data in an application without forms. AngularJS allowed the user to create forms quickly, using the NgModel directive to bind the input element to the data in
More informationIntegrating the Quotation page with your site
Integrating the with your site Introduction Until June 2014, for customers to obtain a quote for your service, it was necessary to redirect the customer to the Instant-Quote.co site. This is no longer
More informationDescription: This feature will enable user to send messages from website to phone number.
Web to Phone text message Description: This feature will enable user to send messages from website to phone number. User will use this feature and can send messages from website to phone number, this will
More informationCSS (Cascading Style Sheets)
CSS (Cascading Style Sheets) CSS (Cascading Style Sheets) is a language used to describe the appearance and formatting of your HTML. It allows designers and users to create style sheets that define how
More informationweb.py Tutorial Tom Kelliher, CS 317 This tutorial is the tutorial from the web.py web site, with a few revisions for our local environment.
web.py Tutorial Tom Kelliher, CS 317 1 Acknowledgment This tutorial is the tutorial from the web.py web site, with a few revisions for our local environment. 2 Starting So you know Python and want to make
More informationThe Swiss-Army Knife for Python Web Developers. Armin Ronacher
The Swiss-Army Knife for Python Web Developers Armin Ronacher http://lucumr.pocoo.org/ About Me About Me Name: Armin Ronacher Werkzeug, Jinja, Pygments, ubuntuusers.de Python since 2005 WSGI warrior since
More information=================== coffee-submit.php ==========================
Solutions 1. CSS body { background-color: #DDD; #info img { float: right; height: 200px; margin: 10px; #info { padding-left: 2%; float: left; width:78%; #stats { width: 20%; float: left; background-color:
More informationPHP 5 if...else...elseif Statements
PHP 5 if...else...elseif Statements Conditional statements are used to perform different actions based on different conditions. PHP Conditional Statements Very often when you write code, you want to perform
More informationCreating Web Pages Using HTML
Creating Web Pages Using HTML HTML Commands Commands are called tags Each tag is surrounded by Some tags need ending tags containing / Tags are not case sensitive, but for future compatibility, use
More informationAdvanced Flask Patterns
Advanced Flask Patterns (mysteriously also applicable to other things) a presentation by Armin Ronacher @mitsuhiko Some of these things are general suggestions of how I think applications can be structured
More informationA WEB APPLICATION FOR ONLINE POLLING. A Thesis. Presented to the. Faculty of. San Diego State University. In Partial Fulfillment
A WEB APPLICATION FOR ONLINE POLLING A Thesis Presented to the Faculty of San Diego State University In Partial Fulfillment of the Requirements for the Degree Master of Science in Computer Science by Ashok
More informationIntro, Version Control, HTML5. CS147L Lecture 1 Mike Krieger
Intro, Version Control, HTML5 CS147L Lecture 1 Mike Krieger Hello! - A little about me. Hello! - And a little bit about you? By the end of today - Know what this lab will & won t teach you - Have checked
More informationPRÍLOHY PRÍLOHY. Príloha 1 Náhľady vybraných podstránok webovej stránky
PRÍLOHY Príloha 1 Náhľady vybraných podstránok webovej stránky Príloha 2 Vybrané časti zdrojového kódu V Prílohe 3 sa nachádza len niekoľko vybraných častí zdrojového kódu projektu. Kompletný zdrojový
More informationSpring 2014 Interim. HTML forms
HTML forms Forms are used very often when the user needs to provide information to the web server: Entering keywords in a search box Placing an order Subscribing to a mailing list Posting a comment Filling
More informationhome.php 1/1 lectures/6/src/ include.php 1/1 lectures/6/src/
home.php 1/1 3: * home.php 5: * A simple home page for these login demos. 6: * David J. Malan 8: * Computer Science E-75 9: * Harvard Extension School 10: */ 11: // enable sessions 13: session_start();
More informationCS 350 COMPUTER/HUMAN INTERACTION. Lecture 6
CS 350 COMPUTER/HUMAN INTERACTION Lecture 6 Setting up PPP webpage Log into lab Linux client or into csserver directly Webspace (www_home) should be set up Change directory for CS 350 assignments cp r
More informationProgrammazione Web a.a. 2017/2018 HTML5
Programmazione Web a.a. 2017/2018 HTML5 PhD Ing.Antonino Raucea antonino.raucea@dieei.unict.it 1 Introduzione HTML HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text
More informationStyle-Guidelines. Release 0.1
Style-Guidelines Release 0.1 Oct 31, 2017 Contents 1 Guidelines 3 i ii Author lxneng (Eric Lo) Version 1.0 Contents 1 2 Contents CHAPTER 1 Guidelines Python Code Style GuideLine PEP 8 : 4 : : 79,., =
More informationOverview of Forms. Forms are used all over the Web to: Types of forms: Accept information Provide interactivity
HTML Forms Overview of Forms Forms are used all over the Web to: Accept information Provide interactivity Types of forms: Search form, Order form, Newsletter sign-up form, Survey form, Add to Cart form,
More informationwebos TV 앱개발실습 - 활용하기
webos TV 앱개발실습 - 활용하기 1 Web Storage 를활용한 Login 기능구현하기 2 In-App 구매를위한 Payment wall 사용하기 [ 실습 #5] web storage 를활용한 Login 기능구현하기 Login 기능구현하기 외부 UI 소스활용 찾아보면좋은 Resource가많아요 http://codepen.io/colorlib/pen/rxddky
More informationWebsite Integration Setup
Website Integration Setup Table of Contents Table of Contents... 2 Pages to Create... 3 Giving Opportunities... 3 Fund Detail... 4 General Designation Detail... 4 Campaign Detail... 5 Project Detail...
More informationCOMP519 Practical 14 Python (5)
COMP519 Practical 14 Python (5) Introduction This practical contains further exercises that are intended to familiarise you with Python Programming. While you work through the tasks below compare your
More informationPsychology Experiments on the Web Using PHP and MySQL
Psychology Experiments on the Web Using PHP and MySQL Lisa M. DeBruine August 14, 2008 Contents 1 Basic Web Authoring 2 1.1 Setting up your webpage....................... 2 1.2 HTML.................................
More informationCSE 154 LECTURE 8: FORMS
CSE 154 LECTURE 8: FORMS Web data most interesting web pages revolve around data examples: Google, IMDB, Digg, Facebook, YouTube, Rotten Tomatoes can take many formats: text, HTML, XML, multimedia many
More informationHTML Forms IT WS I - Lecture 11
HTML Forms IT WS I - Lecture 11 Saurabh Barjatiya International Institute Of Information Technology, Hyderabad 04 October, 2009 Contents Seeing submitted values 1 Seeing submitted values 2 3 Seeing submitted
More informationDatabases HTML and PHP I. (GF Royle, N Spadaccini ) HTML/PHP I 1 / 28
Databases HTML and PHP I (GF Royle, N Spadaccini 2006-2010) HTML/PHP I 1 / 28 This lecture The main purpose of this lecture is to cover HTML forms and how a PHP script can obtain values from the user.
More informationCreating and Building Websites
Creating and Building Websites Stanford University Continuing Studies CS 21 Mark Branom branom@alumni.stanford.edu Course Web Site: http://web.stanford.edu/group/csp/cs21 Week 7 Slide 1 of 25 Week 7 Unfinished
More informationPractice problems. 1 Draw the output for the following code. 2. Draw the output for the following code.
Practice problems. 1 Draw the output for the following code. form for Spring Retreat Jacket company Spring Retreat Jacket Order Form please fill in this form and click on
More informationBABU BANARASI DAS NORTHERN INDIA INSTITUTE OF TECHNOLOGY
WORKSHOP REPORT ON PYTHON DEPARTMENTS OF COMPUTER SCIENCE & ENGINEERING / INFORMATION TECHNOLOGY (CSE/IT - 2 ND YEAR) BABU BANARASI DAS NORTHERN INDIA INSTITUTE OF TECHNOLOGY PROGRAMMING THROUGH PYTHON
More informationHTML: Fragments, Frames, and Forms. Overview
HTML: Fragments, Frames, and Forms Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh spring@ imap.pitt.edu http://www.sis. pitt.edu/~spring Overview Fragment
More informationProduced by. Web Development. Eamonn de Leastar Department of Computing, Maths & Physics Waterford Institute of Technology
Web Development Produced by Eamonn de Leastar (edeleastar@wit.ie) Department of Computing, Maths & Physics Waterford Institute of Technology http://www.wit.ie http://elearning.wit.ie Sessions Web Development
More informationComputer Science E-75 Building Dynamic Websites
Computer Science E-75 Building Dynamic Websites Harvard Extension School http://www.cs75.net/ Lecture 0: HTTP David J. Malan malan@post.harvard.edu http://www.cs.harvard.edu/~malan/ 0 DNS Image from wikipedia.org.
More informationFlask-Excel Documentation
Flask-Excel Documentation Release 0.0.7 Onni Software Ltd. Jan 13, 2018 Contents 1 Installation 3 2 Setup 5 3 Quick start 7 4 Support the project 9 5 More excel file formats 11 6 Data import and export
More informationjquery - Other Selectors In jquery the selectors are defined inside the $(" ") jquery wrapper also you have to use single quotes jquery wrapper.
jquery - Other Selectors In jquery the selectors are defined inside the $(" ") jquery wrapper also you have to use single quotes jquery wrapper. There are different types of jquery selectors available
More informationEnhancing Responsive Layouts With
CSS Layouts Enhancing Responsive Layouts With JQuery Enhancing Responsive Layouts With JQuery You can do a lot with just HTML and CSS (particularly HTML5 and CSS3), and we can design beautiful and beautifully
More informationFigure 1 Forms category in the Insert panel. You set up a form by inserting it and configuring options through the Properties panel.
Adobe Dreamweaver CS6 Project 3 guide How to create forms You can use forms to interact with or gather information from site visitors. With forms, visitors can provide feedback, sign a guest book, take
More informationHTML Forms. By Jaroslav Mohapl
HTML Forms By Jaroslav Mohapl Abstract How to write an HTML form, create control buttons, a text input and a text area. How to input data from a list of items, a drop down list, and a list box. Simply
More informationCSC Web Technologies, Spring HTML Review
CSC 342 - Web Technologies, Spring 2017 HTML Review HTML elements content : is an opening tag : is a closing tag element: is the name of the element attribute:
More informationThe Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013
The Hypertext Markup Language (HTML) Part II Hamid Zarrabi-Zadeh Web Programming Fall 2013 2 Outline HTML Structures Tables Forms New HTML5 Elements Summary HTML Tables 4 Tables Tables are created with
More informationSlug: HTML5 for Mobile Web Applications, ISBN number, 23! kyrnin hour23-code.doc
Slug: HTML5 for Mobile Web Applications, ISBN number, 23! kyrnin hour23-code.doc Hour 23 Code to detect support for GeoLocation, simply detect if the browser has that object: function supports_geolocation()
More informationCPSC 481: CREATIVE INQUIRY TO WSBF
CPSC 481: CREATIVE INQUIRY TO WSBF J. Yates Monteith, Fall 2013 Schedule HTML and CSS PHP HTML Hypertext Markup Language Markup Language. Does not execute any computation. Marks up text. Decorates it.
More informationForms, CGI. Objectives
Forms, CGI Objectives The basics of HTML forms How form content is submitted GET, POST Elements that you can have in forms Responding to forms Common Gateway Interface (CGI) Later: Servlets Generation
More informationCreate First Web Page With Bootstrap
Bootstrap : Responsive Design Create First Web Page With Bootstrap 1. Add the HTML5 doctype Bootstrap uses HTML elements and CSS properties that require the HTML5 doctype. 2. Bootstrap 3 is mobile-first
More informationCSS often uses hyphens in CSS property names but JavaScript uses camel case, e.g. color: blue; p { <!DOCTYPE html> <meta charset="utf-8" /> <head>
1 of 9 CS1116/CS5018 Web Development 2 Dr Derek Bridge School of Computer Science & Information Technology University College Cork Recap To find nodes: queryselector, queryselectorall To create new element
More informationLecture 5 Security and User Input. INLS 760 Web Databases Spring 2013 Rob Capra
Lecture 5 Security and User Input INLS 760 Web Databases Spring 2013 Rob Capra Security What data should be stored on a web server? HTTP logs? Users account information? Passwords? Possible harms Exposure
More informationWeb Programming with Python and JavaScript
Web Programming with Python and JavaScript Lecture 9: Security July 26, 2018 Grades 3, 3, 3 Security Context Git HTML Flask SQL APIs JavaScript Django CI/CD Scalability Git Open-Source Software Two-Factor
More informationChapter 3 HTML Multimedia and Inputs
Sungkyunkwan University Chapter 3 HTML Multimedia and Inputs Prepared by D. T. Nguyen and H. Choo Web Programming Copyright 2000-2018 Networking Laboratory 1/45 Copyright 2000-2012 Networking Laboratory
More informationResponsive web design (RWD) CSS3 Media queries. Mobile vs desktop web sites. Web Development 1 CS1115/CS5002
1 of 13 CS1115/CS5002 Web Development 1 Dr Derek Bridge School of Computer Science & Information Technology University College Cork Mobile vs desktop web sites A few organization have two web sites, one
More informationHyperlinks, Tables, Forms and Frameworks
Hyperlinks, Tables, Forms and Frameworks Web Authoring and Design Benjamin Kenwright Outline Review Previous Material HTML Tables, Forms and Frameworks Summary Review/Discussion Email? Did everyone get
More informationExam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points)
CS-101 Fall 2008 Section 4 Practice Final v1.0m Name: Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points) XHTML/CSS Reference: Entities: Copyright
More informationCS4HS Using Google App Engine. Michael Parker
CS4HS Using Google App Engine Michael Parker (michael.g.parker@gmail.com) So what is it? What's it for? Building and running web applications Why use it? Handles serving web pages, efficiently storing
More informationThis%is%CS50.% Harvard*University*Fall%2014* Quiz*1* out*of*109*points* Print*your*name*on*the*line*below.* % % % % % % % % % % %
ThisisCS50. HarvardUniversityFall2014 Quiz1 outof109points Printyournameonthelinebelow. Donotturnthispageoveruntiltoldbythestafftodoso. Thisquizis"closedBbook."However,youmayutilizeduringthequizonetwoBsided
More informationCourse Topics. IT360: Applied Database Systems. Introduction to PHP
IT360: Applied Database Systems Introduction to PHP Chapter 1 and Chapter 6 in "PHP and MySQL Web Development" Course Topics Relational model SQL Database design Normalization PHP MySQL Database administration
More information29-27 May 2013 CERN WEB FRAMEWORKS. Adrian Mönnich
First Indico Workshop 29-27 May 2013 CERN WEB FRAMEWORKS Adrian Mönnich Framework? What? Do we have one? Do we need one? A web application framework is a software framework that is designed to support
More informationLecture 9. Forms & APIs 1 / 38
Lecture 9 Forms & APIs 1 / 38 Final Project Proposal Due November 12th 11:59PM Should include: A summary of your idea A diagram with the db tables you plan to use& the relationships between them You can
More informationITS331 IT Laboratory I: (Laboratory #11) Session Handling
School of Information and Computer Technology Sirindhorn International Institute of Technology Thammasat University ITS331 Information Technology Laboratory I Laboratory #11: Session Handling Creating
More informationゼミ Wiki の再構築について 資料編 加納さおり
Wiki [ Fukuda Semi Wiki] [ 2 wiki] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 14 Menu1] [ 15 Menu2] [ 16 Menu3] [ 17 wiki Menu] [ 18 TOP ] [ 19 ] [ 20 ] [ 20] [ 21 ] [ 22 (
More informationDocuSign PowerForms User Guide
Information Guide 1 DocuSign PowerForms User Guide 2 Copyright 2003-2015 DocuSign, Inc. All rights reserved. For information about DocuSign trademarks, copyrights and patents refer to the DocuSign Intellectual
More informationSMS GATEWAY API INTEGRATION GUIDE
SMS GATEWAY API INTEGRATION GUIDE For PHP Developers Are you a developer or bulk SMS reseller? You can interface your application, website or system with our 247 reliable messaging gateway by using our
More informationAdvanced CSRF and Stateless at OWASP AppSec Research 2012
Advanced CSRF and Stateless Anti-CSRF @johnwilander at OWASP AppSec Research 2012 Frontend developer at Svenska Handelsbanken Researcher in application security Co-leader OWASP Sweden @johnwilander johnwilander.com
More informationCOM1004 Web and Internet Technology
COM1004 Web and Internet Technology When a user submits a web form, how do we save the information to a database? How do we retrieve that data later? ID NAME EMAIL MESSAGE TIMESTAMP 1 Mike mike@dcs Hi
More informationWeb Technologies - by G. Sreenivasulu Handout - 1 UNIT - I
INTRODUCTION: UNIT - I HTML stands for Hyper Text Markup Language.HTML is a language for describing web pages.html is a language for describing web pages.html instructions divide the text of a document
More informationEXPERIMENT- 9. Login.html
EXPERIMENT- 9 To write a program that takes a name as input and on submit it shows a hello page with name taken from the request. And it shows starting time at the right top corner of the page and provides
More informationDynamic Form Processing Tool Version 5.0 November 2014
Dynamic Form Processing Tool Version 5.0 November 2014 Need more help, watch the video! Interlogic Graphics & Marketing (719) 884-1137 This tool allows an ICWS administrator to create forms that will be
More information