Air Quality Health Index: Web Widget Use Document. Prepared by Alberta Environment and Sustainable Resource Development

Similar documents
Create a cool image gallery using CSS visibility and positioning property

ALBERTA CONSTRUCTION SAFETY ASSOCIATION

CS134 Web Site Design & Development. Quiz1

Implementing a chat button on TECHNICAL PAPER

TRAINING GUIDE. Rebranding Lucity Web

What is XHTML? XHTML is the language used to create and organize a web page:

Title: Dec 11 3:40 PM (1 of 11)

NAIT Distance Assessment Invigilation Network

Introduction to HTML5

Creating A Web Page. Computer Concepts I and II. Sue Norris

Table of Contents. Overview... 4 Advanced Content Items... 4 Accessibility... 4 iframe Textpoppers Math Characters and Equations...

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

January Alberta Months of Supply and Price Changes. AREA Monthly Statistics 2. Easing sales continue into the start of 2019

This User Guide will walk you through the following:

First, create a web page with a submit button on it (remember from creating forms in html?):

Lab 4 CSS CISC1600, Spring 2012

LESSON LEARNING TARGETS

How the Internet Works

Guidance for display and implementation of the Unistats widget (2018)

CMT111-01/M1: HTML & Dreamweaver. Creating an HTML Document

IMY 110 Theme 11 HTML Frames

Schenker AB. Interface documentation Map integration

Unit Notes. ICAWEB411A Produce basic client-side script for dynamic web pages Topic 1 Introduction to JavaScript

Navigation. Websites need a formalized system of links to allow users to navigate the site

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

Comm 244 Week 3. Navigation. Navigation. Websites need a formalized system of links to allow users to navigate the site

HTML Overview. With an emphasis on XHTML

Unit 10 - Client Side Customisation of Web Pages. Week 5 Lesson 1 CSS - Selectors

HTML & XHTML Tag Quick Reference

Responsive web design (RWD) CSS3 Media queries. Mobile vs desktop web sites. Web Development 1 CS1115/CS5002

CP3343 Computer Science Project (Year) Technical Report Document. Mr Stephen Garner

UNIT 2. Creating Web Pages with Links, Images, and Formatted Text

introduction to XHTML

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

Modify cmp.htm, contactme.htm and create scheduleme.htm

HTML: The Basics & Block Elements

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Lecture 2: Tools & Concepts

Using an ArcGIS Server.Net version 10

Create a three column layout using CSS, divs and floating

Positioning in CSS: There are 5 different ways we can set our position:

Here are a few easy steps to create a simple timeline. Open up your favorite text or HTML editor and start creating an HTML file.

Wireframe :: tistory wireframe tistory.

I Can t Believe It s Not

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Stamp Builder. Documentation. v1.0.0

11. HTML5 and Future Web Application

Introduction to Computer Science (I1100) Internet. Chapter 7

CarTrawler AJAX Booking Engine Version: 3.26 Date: 18/06/09.

XHTML & CSS CASCADING STYLE SHEETS

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

Links Menu (Blogroll) Contents: Links Widget

Snap-Ins Chat. Salesforce, Summer

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) More on Relative Linking. Learning Objectives (2 of 2)

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

Web Publishing Intermediate 2

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar

jmaki Overview Sang Shin Java Technology Architect Sun Microsystems, Inc.

Introduction to Computer Science (I1100) Internet. Chapter 7

Here are some working examples of the TopBox stack and details about how each was created.

CSC309 Tutorial CSS & XHTML

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

Video Embedder. Plugin for Joomla! This manual documents version 9.x of the Joomla! extension.

HTML 5 Form Processing

Snap-Ins Chat. Salesforce, Winter

Designing the Home Page and Creating Additional Pages

COPYRIGHTED MATERIAL. Tabs

Objectives. Tutorial 8 Designing ga Web Site with Frames. Introducing Frames. Objectives. Disadvantages to Using Frames. Planning Your Frames

ASP.NET Security. 7/26/2017 EC512 Prof. Skinner 1

Web Development IB PRECISION EXAMS

Using Excel and HTML Files to Supplement Mathematics & Statistics

Block & Inline Elements

iframes And Dynamic Keywords

Assignments (4) Assessment as per Schedule (2)

To embed the form using an html iframe command, use the script at the end of this document.

FLOATING AND POSITIONING

Computer Science E-1. Understanding Computers and the Internet. Lecture 10: Website Development Wednesday, 29 November 2006

Micronet International College

CSCI 5333 DBMS Fall 2017 Final Examination. Last Name: First Name: Student Id:

Home Phone No.: Work Phone No.: Cell Phone No.:

Outline. Link HTML With Style Sheets &6&7XWRULDO &66 ;+70/ (GZDUG;LD

Website Editor. User Guide - Table of Contents. Overview. Use Case(s) Accessing the Tool. Editor Tools. Quick Tab Toolbar. Menu Bar.

The Text scrap sheet is also needed for copying image and webpage URLs for easy access. Additionally you will use it to look at HTML when needed.

The Importance of the CSS Box Model

JSF - H:INPUTSECRET. Class name of a validator that s created and attached to a component

Dreamweaver: Portfolio Site

3 Categories and Attributes

The Alberta SuperNet: A Next Generation Network between Public and Private Sectors

Receiving Courses Iframe Integration

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

Why HTML5? Why not XHTML2? Learning from history how to drive the future of the Web

Displaying Data with Graphs. Chapter 6 Mathematics of Data Management (Nelson) MDM 4U

CSCI 5333 DBMS Spring 2018 Final Examination. Last Name: First Name: Student Id:

Homepages and Navigation Bars v8.3.0

CSCI DBMS Spring 2017 Final Examination. Last Name: First Name: Student Id:

In this project, you will create a showcase of your HTML projects and learn about links and embedding resources.

Shane Gellerman 10/17/11 LIS488 Assignment 3

Problem Set 7: Website Development

Overview. Amazon Services Display Advertising Style Guide SELLER CENTRAL BANNERS. Creative Elements. Seller Central Login Page

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

Transcription:

Prepared by Alberta Environment and Sustainable Resource Development March 2014

ESRD/ ISBN No. 978-1-4601-1689-0 (online version) Website: http://esrd.alberta.ca/air/programs-and-services/air-quality-health-index/aqhi-resources.aspx Any comments, questions, or suggestions regarding the content of this document may be directed to: Air and Climate Change Policy Section Alberta Environment and Sustainable Resource Development 9th floor, Oxbridge Place 9820 106th Street Page 2 of 12

ESRD/ Table of Contents Table of Contents... 3 List of Figures... 4 1.0 Introduction... 5 Figure 1 Fort McMurray Example: Wide with forecast... 5 Figure 2 Calgary Example: Narrow with no forecast.... 5 2.0 Technical Details... 5 2.1 Community... 6 2.2 Forecast... 7 2.3 Width... 7 2.4 iframe... 7 Appendix... 9 1.0 Widget Example 1... 9 Figure 3 Tomahawk, 300px, forecast on, and bordered <iframe>... 9 2.0 Widget Example 2... 9 Figure 4 Fort McMurray, 640px, forecast on, and no border <iframe>... 10 3.0 Widget Example 3... 10 Figure 5 Calgary, 300px, forecast off, and bordered <iframe>... 10 4.0 Web Page Skeleton Example... 11 Figure 6... 11 5.0 Known Issues/Troubleshooting... 12. Page 3 of 12

ESRD/ List of Figures Figure 1 - Fort McMurray Example: Wide with forecast... 5 Figure 2 - Calgary Example: Narrow with no forecast... 5 Figure 3 - Tomahawk, 300 px, forecast on, and bordered <iframe>... 9 Figure 4 - Fort McMurray, 640 px, forecast on, and no border <iframe>... 10 Figure 5 - Calgary, 300 px, forecast off, and bordered <iframe>... 10 Figure 6 - Skeleton Web Page... 11 Page 4 of 12

ESRD/ 1.0 Introduction ESRD provides a widget that displays the Air Quality Health Index for single communities and can be embedded into any webpage. This is intended for public use where a web page owner may want to include the Air Quality for their community (or multiple communities) for their users. The widget can be formatted to meet the needs of the user and to best fit their webpage (see Figures 1 and 2). Figure 1 Fort McMurray Example: Wide with forecast. Figure 2 Calgary Example: Narrow with no forecast. 2.0 Technical Details The widget is an ASPX application that is accessed via URL and must be embedded in an <iframe> to function. It is available at: http://environment.alberta.ca/apps/aqhi/aqhiwidgetpage.aspx It must be configured to operate as desired using GET parameters within the URL. These parameters must tell the widget which community is desired, the width of the widget in pixels, and whether or not a forecast is desired. Page 5 of 12

ESRD/ The fully configured URL with thus be of this format: http://environment.alberta.ca/apps/aqhi/aqhiwidgetpage.aspx?community=community &Forecast=YESORNO&Width=WIDTH COMMUNITY, YESORNO, and WIDTH must be replaced with the desired configuration. For example: http://environment.alberta.ca/apps/aqhi/aqhiwidgetpage.aspx?community=tomahawk&for ecast=yes&width=275 2.1 Community There are currently 26 compatible communities in Alberta that can be used with the widget: Anzac Beaverlodge Bruderheim Calgary Caroline Cold Lake Edmonton Edson Elk Island Elk Point Fort Chipewyan Fort McKay Fort McKay South Fort McMurray Fort Saskatchewan Genesee Grande Prairie Hinton Lamont County Lethbridge Medicine Hat Red Deer Reno St. Lina Steeper Tomahawk This list may grow over time and any community that currently appears on the ESRD AQHI webpage (http://www.environment.alberta.ca/apps/aqhi/aqhi.aspx ) should also be available on the widget. Note: 1. These are not case sensitive but whatever case is used in the URL will appear on the widget. (If you use lower case it will appear as lower case on your webpage). Page 6 of 12

ESRD/ 2. Spaces in community names should work with normal spaces but it is standard to replace a space with %20 in URLs. 2.2 Forecast If a forecast is desired the YESORNO field in the URL should be replaced with yes or true. If not it should be replaced with no or false. Note: 1. Not all communities have a forecast. Currently Caroline, Edson, Hinton, Reno and Steeper will not have a forecast available. 2. Including the forecast will make the widget taller by adding a third row; this must be compensated for in the webpage design and <iframe>. 2.3 Width The width parameter allows the user to determine how wide the widget will appear in pixels. Note: 1. The minimum width that can be used should be around 260 pixels to avoid word wrapping. 2. The maximum width is 640 pixels. 3. The <iframe> containing the widget must be set to match the widget plus a few pixels (6 is best). Iframes can be tricky to work with so this may require some experimentation and cross browser testing. 4. The font sizes will automatically adjust to match the width of the widget. 2.4 iframe Since the widget is accessed via URL it must be embedded in an <iframe>. Example: <iframe style="width:306px;height:197px; padding:0px;border:black 1px solid;" scrolling="no" src="http://environment.alberta.ca/apps/aqhi/aqhiwidgetpage.aspx?community=tomahawk&width =300&Forecast=true"> Page 7 of 12

ESRD/ </iframe> Note: 1. The <iframe> width should be set to no more than 40 pixels wider than the widget; this will avoid a text wrapping issue at certain widget widths. In testing, setting the <iframe> width to 6 pixels greater than the widget width was the best option. 2. The <iframe> height should be set differently depending on whether or not the forecast is included. With no forecast the ideal <iframe> height is 143 pixels, with the forecast included the ideal <iframe> height is 197 pixels. Page 8 of 12

ESRD/ Appendix 1.0 Widget Example 1 Community = Tomahawk, widget width = 300 pixels, forecast = true, <iframe> with border. Code snippet: <iframe style="width:306px;height:197px; padding:0px;border:black 1px solid;" scrolling="no" src="http://environment.alberta.ca/apps/aqhi/aqhiwidgetpage.aspx?community=tomahawk&width =300&Forecast=true"> </iframe> Result: Figure 3 Tomahawk, 300px, forecast on, and bordered <iframe> 2.0 Widget Example 2 Community = Fort McMurray, widget width = 640 pixels (max), forecast = true, <iframe> with no border. Code Snippet: <iframe style="width:646px;height:197px; padding:0px;border:none;" scrolling="no" src="http://environment.alberta.ca/apps/aqhi/aqhiwidgetpage.aspx?community=fort%20mcmurray &Width=640&Forecast=true" > </iframe> Page 9 of 12

ESRD/ Result: Figure 4 Fort McMurray, 640px, forecast on, and no border <iframe> 3.0 Widget Example 3 Community = Calgary, widget width = 300 pixels, forecast = false, <iframe> with border and height for no forecast. Code Snippet: <iframe style="width:306px;height:143px; padding:0px;border:black 1px solid;" scrolling="no" src="http://environment.alberta.ca/apps/aqhi/aqhiwidgetpage.aspx?community=calgary&width=3 00&Forecast=false"> </iframe> Result: Figure 5 Calgary, 300px, forecast off, and bordered <iframe> Page 10 of 12

ESRD/ 4.0 Web Page Skeleton Example Code Snippet: <!DOCTYPE html> <html> <head> <meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1"> <title>aqhi Web Widget Test Page</title> </head> <body style="background-color:#a0b0a0;"> <h2 style="text-align:center;">esrd Web Widget Test Page</h2> <h4>red Deer AQHI</h4> <iframe style="width:406px;height:197px; padding:0px;border:none" scrolling="no" src="http://environment.alberta.ca/apps/aqhi/aqhiwidgetpage.aspx?community=red%20de er&width=400&forecast=true"> </iframe> </body> </html> Result: Figure 6 Skeleton Web Page Page 11 of 12

ESRD/ 5.0 Known Issues/Troubleshooting Older browsers may experience word wrapping issues when the widget width is less than 335 pixels. If you are having issues with <iframe> behaviour make sure the webpage has an appropriate!doctype declaration at the start. This can affect the behaviour of many HTML elements. Example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> Page 12 of 12