Copyright 2007, Information Builders. Slide 1 Implementing On-Click Functionality With the HTML Layout Painter Larry J Braun Education Specialist June,

Slides:



Advertisements
Similar presentations
17 HTML, Scripting, and Interactivity Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and.
Advertisements

Chapter 08: Adding Adding Interactivity Interactivity With With Behaviors Behaviors By Bill Bennett Associate Professor MSJC CIS MVC.
JavaScript Part 6. Calling JavaScript functions on an event JavaScript doesn’t have a main function like other programming languages but we can imitate.
The Web Warrior Guide to Web Design Technologies
JavaScript Forms Form Validation Cookies. What JavaScript can do  Control document appearance and content  Control the browser  Interact with user.
Chapter 7 © 2001 by Addison Wesley Longman, Inc. 1 Chapter 7 Sebesta: Programming the World Wide Web.
JavaScript Forms Form Validation Cookies CGI Programs.
Javascript Document Object Model. How to use JavaScript  JavaScript can be embedded into your html pages in a couple of ways  in elements in both and.
JavaScript 101 Lesson 5: Introduction to Events. Lesson Topics Event driven programming Events and event handlers The onClick event handler for hyperlinks.
Lesson 8 Creating Forms with JavaScript
JavaScript Form Validation
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
JavaScript & jQuery the missing manual Chapter 11
Introduction to JavaScript. JavaScript Facts A scripting language - not compiled but interpreted line by line at run-time. Platform independent. It is.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Event-driven Programming
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
Event Handlers CS101 Introduction to Computing. Learning Goals Learn about event handlers Determine how events are useful in JavaScript Discover where.
JavaScript II ECT 270 Robin Burke. Outline JavaScript review Processing Syntax Events and event handling Form validation.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Copyright 2007, Information Builders. Slide 1 WebFOCUS Maintain – Enhancing Objects with JavaScript Mark Derwin Information Builders Information Builders.
DOM and JavaScript Aryo Pinandito.
JavaScript is a client-side scripting language. Programs run in the web browser on the client's computer. (PHP, in contrast, is a server-side scripting.
CSS Class 7 Add JavaScript to your page Add event handlers Validate a form Open a new window Hide and show elements Swap images Debug JavaScript.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Integrating JavaScript and HTML5 HTML5 & CSS 7 th Edition.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Lecture # 6 Forms, Widgets and Event Handling. Today Questions: From notes/reading/life? Share Personal Web Page (if not too personal) 1.Introduce: How.
JavaScript, Fourth Edition
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
CO1552 Web Application Development HTML Forms, Events and an introduction to JavaScript.
Client-Side Scripting JavaScript.  produced by Netscape for use within HTML Web pages.  built into all the major modern browsers. properties  lightweight,
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
JavaScript - A Web Script Language Fred Durao
7 Chapter Seven Client-side Scripts. 7 Chapter Objectives Create HTML forms Learn about client-side scripting languages Create a client-side script using.
audio video object Options: controls autoplay Need to define height and width Options: controls autoplay.
Lecture 10 JavaScript: DOM and Dynamic HTML Boriana Koleva Room: C54
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
The Web Wizard’s Guide To JavaScript Chapter 8 Working with Windows and Frames.
JavaScript Introduction.  JavaScript is a scripting language  A scripting language is a lightweight programming language  A JavaScript can be inserted.
HTML JAVASCRIPT. CONTENTS Javascript Example NOSCRIPT Tag Advantages Summary Exercise.
1 CSC160 Chapter 7: Events and Event Handlers. 2 Outline Event and event handlers onClick event handler onMouseOver event handler onMouseOut event handler.
COS 125 DAY 20. Agenda Assignment 8 not corrected yet Assignment 9 posted  Due April 16 New course time line Discussion on Scripts 
Javascript Overview. What is Javascript? May be one of the most popular programming languages ever Runs in the browser, not on the server All modern browsers.
JavaScript II ECT 270 Robin Burke. Outline Functions Events and event handling Form validation.
JavaScript Event Handlers. Introduction An event handler executes a segment of a code based on certain events occurring within the application, such as.
LESSON : EVENTS AND FORM VALIDATION -JAVASCRIPT. EVENTS CLICK.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
Web Programming Java Script-Introduction. What is Javascript? JavaScript is a scripting language using for the Web. JavaScript is a programming language.
Client-side (JavaScript) Validation. Associating a function with a click event – Part 1 Use the input tag’s onclick attribute to associate a function.
SE-2840 Dr. Mark L. Hornick 1 Dynamic HTML Handling events from DOM objects.
Section 17.1 Section 17.2 Add an audio file using HTML
Web Development & Design Foundations with HTML5 7th Edition
JavaScript Introduction
DHTML Javascript Internet Technology.
Integrating JavaScript and HTML
FORM OBJECT When creating an interactive web site for the Internet it is necessary to capture user input and process this input. Based on the result of.
DHTML Javascript Internet Technology.
Conditionally Confirming a Submit
In Class Programming BIS1523 – Lecture 11.
© 2015, Mike Murach & Associates, Inc.
Web Design and Development
Events: Changed and Input
HTML and CSS Basics.
Introduction to JavaScript
Presentation transcript:

Copyright 2007, Information Builders. Slide 1 Implementing On-Click Functionality With the HTML Layout Painter Larry J Braun Education Specialist June, 2008

Copyright 2007, Information Builders. Slide 2 Contents  Talking to the WebFOCUS client  Controlling the output target  Controlling procedure execution  Adding validation

Copyright 2007, Information Builders. Slide 3 Talking to the WebFOCUS client

Copyright 2007, Information Builders. Slide 4 Talking to the WebFOCUS client with a “Run Button” (no variables)  The HTML Layout Painter  Includes IB proprietary JavaScript in HTML page  Writes Event Handler in the HTML code  Writes Event Hander Function (onClick) which calls OnExecute()  The name of the Event Hander Function is based on the name of the button  Writes XML section  The OnExecute() function uses attributes from the XML section

Copyright 2007, Information Builders. Slide 5 Talking to the WebFOCUS client with a “Run Button” (no variables)  The value of the requests_list attribute of the button matches the value of the requestid attribute of one of the tags in the XML section  Some of the other attributes of the tag include the following  sourcetype (procedure, URL, HTML page)  targettype (window or frame)  ibif_ex (procedure to execute)  ibic_server (report server to use)  ibiapp_app (application file folder)  Launch page use in the MR environment would have attributes with domain information

Copyright 2007, Information Builders. Slide 6 Talking to the WebFOCUS client with a “Run Button” (with variables – with form)  Notice, there is no submit button on the form  The interaction with WebFOCUS client is still done through the OnExecute() function  HTML Layout Painter created forms are merely design elements  There is no real difference between the function of the launch with a form and the launch page without a form

Copyright 2007, Information Builders. Slide 7 Talking to the WebFOCUS client with a “Run Button” (with variables – with form)  HTML Layout Painter adds one control to the page for each of the variables in the procedure. (Adding of the controls can be overridden) The control names MUST be the same as the report variable names  The XML section has a tag for each tag  Within each tag there is a tag for each report variable  The values for dynamic controls are loaded by the call to the UpData() (proprietary function) from the onLoad event handler function

Copyright 2007, Information Builders. Slide 8 Talking to the WebFOCUS client with a frame (no variables)  The Auto Execute property is set to true  The frame is loaded by the call to the UpData() (proprietary function) from the onLoad event handler function  The targettype attribute value is iframe  The targetname attribute value is the ID of the frame (iframe1)

Copyright 2007, Information Builders. Slide 9 Talking to the WebFOCUS client with a frame (with variables)  A “Run Button” is added by the HTML Layout Painter  The frame is loaded by a call to the OnExecute() function from the onClick event handler of the “Run Button”  tag information is added to the XML section just as it was in the example for a “Run Button”

Copyright 2007, Information Builders. Slide 10 Controlling the output target

Copyright 2007, Information Builders. Slide 11 Controlling the output target  Add an “unbound” control to receive user’s output target selection  Use JavaScript in the run button’s onClick event handler to capture the user’s input  Use JavaScript in the run button’s onClick event handler to alter the XML section

Copyright 2007, Information Builders. Slide 12 Controlling procedure execution

Copyright 2007, Information Builders. Slide 13 Controlling procedure execution All of the available reports have exactly the same variables  Add an “unbound” control to get user’s output report selection  Use JavaScript in the run button’s onClick event handler to capture the user’s input  Use JavaScript in the run button’s onClick event handler to alter the XML section - ibif_ex (procedure to execute)

Copyright 2007, Information Builders. Slide 14 Controlling procedure execution Some of the available reports don’t have exactly the same variables  Add an “unbound” control to get the user’s output report selection  Use JavaScript in the run button’s onClick event handler to capture the user’s input  Use JavaScript to disable unneeded controls  Use JavaScript in the run button’s onClick event handler to alter the XML section - ibif_ex (procedure to execute)

Copyright 2007, Information Builders. Slide 15 Adding validation

Copyright 2007, Information Builders. Slide 16 Adding validation Why?  Client-side validation lessens the work load of the web server and possibly, the report server  Validation provides immediate feedback to the user and can enrich the user’s experience  Client-side validation just saves time

Copyright 2007, Information Builders. Slide 17 Adding validation How?  Write or find the appropriate validation functions  Before writing any validations, Google each validation you want. There are many sites that have “canned” routines. (Always make sure you know how a function works before putting it into your code.)  Determine if you want to do all validation at once, using calls for the onClick event handler of the run button.  Alternately, perform validation individually for each input control, using calls from the control's onChange or onBlur event handler

Copyright 2007, Information Builders. Slide 18 Adding validation How  Determine how you will notify users of error  Disabled text input boxes which are altered using JavaScript  Use of JavaScript to alter the text within tags  Do not have the OnExecute() function execute unless all validations tests are passed