Data Connections -- Options, Functionality, and Performance.

Slides:



Advertisements
Similar presentations
PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect.
Advertisements

HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
Interactive Reporting v3.2. Multiple Order By Option Set multiple order by options.
Microsoft Excel 2003 Illustrated Complete Excel Files and Incorporating Web Information Sharing.
Languages for Dynamic Web Documents
1 Chapter 12 Working With Access 2000 on the Internet.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
Input Validation For Free Text Fields ADD Project Members: Hagar Offer & Ran Mor Academic Advisor: Dr Gera Weiss Technical Advisors: Raffi Lipkin & Nadav.
Unit 4.4 We are HTML Editors
1 Working with MS SQL Server II. 2 The sqlcmd Utility Command line utility for MS SQL Server databases. Previous version called osql Available on classroom.
Chris Pinski.  History  What is Ajax  Who uses Ajax  Underlying Technologies  SE Aspect  Common Problems  Conclusion.
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application Introducing Visual Web Developer 2008 Express and the.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Cookies & Sessions.
CSCI 6962: Server-side Design and Programming Introduction to AJAX.
CSCI 6962: Server-side Design and Programming JDBC Database Programming.
Server-side Scripting Powering the webs favourite services.
Lecture 7 Interaction. Topics Implementing data flows An internet solution Transactions in MySQL 4-tier systems – business rule/presentation separation.
JavaScript, Fourth Edition Chapter 12 Updating Web Pages with AJAX.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
Finish configuration cloudclinica root jdbc:postgresql:5432//localhost/cc_db JDBC Url: JDBC Driver: User name: Password: ******** org.postgresql.Driver.
NMED 3850 A Advanced Online Design January 26, 2010 V. Mahadevan.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
06/10/2015AJAX 1. 2 Introduction All material from AJAX – what is it? Traditional web pages and operation Examples of AJAX use Creating.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
CIS 375—Web App Dev II DOM. 2 Introduction to DOM The XML Document ________ Model (DOM) is a programming interface for XML documents. It defines the way.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
Introduction to DHTML Phil Denoncourt III. What is DHTML Dynamic HTML Just as Access is Dynamic Database environment Can have controls that respond to.
Analysis of SQL injection prevention using a proxy server By: David Rowe Supervisor: Barry Irwin.
1 Dr Alexiei Dingli XML Technologies XML Advanced.
School of Computing and Information Systems CS 371 Web Application Programming PHP – Forms, Cookies, Sessions and Database.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
INTERNET APPLICATION DEVELOPMENT Practical on Sessions.
Regular Expression (continue) and Cookies. Quick Review What letter values would be included for the following variable, which will be used for validation.
Database control Introduction. The Database control is a tool that used by the database administrator to control the database. To enter to Database control.
Analysis of SQL injection prevention using a filtering proxy server By: David Rowe Supervisor: Barry Irwin.
Database Handling, Sessions, and AJAX. Post Back ASP.NET Functionality The IsPostBack method in ASP.NET is similar to the BlackBerry.refresh method –IsPostBack.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
259 Lecture 11 Spring 2013 Advanced Excel Topics – Loops.
ADVANTAGES OF DATA BASE MANAGEMENT SYSTEM. TO BE DICUSSED... Advantages of Database Management System  Controlling Data RedundancyControlling Data Redundancy.
Controlling Web Site Access Using Logins CS 320. Basic Approach HTML form a php page that collects the username and password  Sends them to second PHP.
School of Computing and Information Systems CS 371 Web Application Programming AJAX.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
11 MANAGING INTERNET EXPLORER CONNECTIONS AND SECURITY Chapter 12.
Advanced Repetition Structure and String Functions (Unit 10) Visual Basic for Applications.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
The World Wide Web. What is the worldwide web? The content of the worldwide web is held on individual pages which are gathered together to form websites.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
1 AJAX. AJAX – Whatzit? Asynchronous (content loading)‏ Javascript (logic & control)‏ And XML (request handling)‏
INTERNET VOCAB. WEB BROWSER An app for finding info on the web.
Internet The internet is the largest computer network system in the world. It consists of many smaller networks connected together by a global public.
Internet Basics. Objectives After completing this class, you should be able to: Describe what the Internet is and how it works Navigate web browsers Know.
VBA - Excel VBA is Visual Basic for Applications
CSE 154 Lecture 11: AJAx.
CS 371 Web Application Programming
Advanced Excel Topics – Loops
Chapter 19 PHP Part III Credits: Parts of the slides are based on slides created by textbook authors, P.J. Deitel and H. M. Deitel by Prentice Hall ©
Some Common Terms The Internet is a network of computers spanning the globe. It is also called the World Wide Web. World Wide Web It is a collection of.
Chapter 25 - Automated Web Search (Search Engines)
Using Access and the Web
CSE 154 Lecture 11: AJAx.
ISC440: Web Programming 2 Server-side Scripting PHP 3
Crawling with Heritrix
Login & administration page
Client side & Server side scripting
CSE 154 Lecture 22: AJAX.
Software Introduction
Presentation transcript:

Data Connections -- Options, Functionality, and Performance

Objective Use VBA code to extract and store data from web pages when the underlying database is not accessible. Step one – Accessing the web pages Step two – Extracting the data

Accessing the Web Pages Internet Explorer Object WinHttpRequest Object XMLHttpRequest object

Document Object Model (DOM) Regular Expressions Retrieving the Data

IE Object Dim objIE As Object Dim varTables As Variant Set objIE = CreateObject("InternetExplorer.Application") URL = " objIE.Visible = False objIE.navigate URL Do Until Not objIE.Busy DoEvents Loop While objIE.Document.ReadyState <> "complete" Wend Set varTables = objIE.Document.all.tags("TABLE")

Advantages View web page in action Credentials Background tasks DOM Disadvantages Hangs up Can interfere with other browsers More resources IE Object

WinHttpRequest Object Dim winHttpReq As Object Set winHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1") URL = " requesttimeout=5000&SDate=" & ProcDate winHttpReq.SetTimeouts , , , winHttpReq.Open "GET", URL, False winHttpReq.SetCredentials “username", “password", HTTPREQUEST_SETCREDENTIALS_FOR_SERVER winHttpReq.Send result = winHttpReq.responseText Set winHttpReq = Nothing

Advantages More timeout control Waits for webpage to complete Disadvantages Cannot see what is returned May need Credentials No DOM WinHttpRequest Object

Time Trial IE ObjectWinHttpRequest Object Using two different versions of the Scan Error Tracking program, we ran three separate scans of 542 zip codes. Execution time is in seconds.

DOM vs RegEx The DOM is preferred when parsing web pages where the data is in uniform locations, using tables and rows. Regular Expressions work best when attempting to find data on a page where the location of the information, or the structure of the page is not known in advance.