SlideShare a Scribd company logo
YUI BASICS By Om Vikram Thapa
CONTENTS : YUI How to Use YUI2 Core Layout in YUI JSON Data Source Data Table QUERIES??
YUI – WHY YUI? It is a combination of Javascript and CSS libraries which makes it easy to use Proven,Scalable, Fast & Robust Extensively documented Easy to integrate with IDE like Visual Studio
How To Use Include YUI scripts and CSS from the YUI download or directly from Yahoo! Servers http://developer.yahoo.com/yui/download And put it into Web folder of your project For eg:  TRSV1.0\NineCiphers.TRS.Web\yui_2.8.0r4\
YUI 2 Core YAHOO Global Object - The YAHOO Global Object provides a single global namespace within which all YUI Library code resides. - It must be included on every page that utilizes the YUI Library. - it must appear before any of the other YUI component. - The YAHOO Global Object also contains a number of methods that are used throughout the library. <script type=&quot;text/javascript&quot; src=&quot;../yui_2.8.0r4/yahoo/yahoo-min.js&quot;></script> For more Info:  http://developer.yahoo.com/yui/yahoo/
YUI 2 Core (contd.) Dom Collection -  The Dom Collection comprises a family of convenience methods that simplify common DOM-scripting tasks. - Helps in element positioning and CSS style management. - Normalizes the cross-browser inconsistencies. <script type=&quot;text/javascript&quot;  src=&quot;../yui_2.8.0r4/dom/dom-min.js&quot;></script> For more Info:   http://developer.yahoo.com/yui/dom/
YUI 2 Core (contd.) Event Utility -  Most important feature provided by YUI which allows you to create event-driven application in the browser. - Provides you simplified access to DOM events and browser's Event object. - The Event Utility package includes the Custom Event object. Custom Events allow you to &quot;publish&quot; the interesting moments or events in your own code so that other components on the page can &quot;subscribe&quot; to those events and respond to them. <script src=&quot;http://yui.yahooapis.com/2.8.1/build/event/event-min.js&quot; ></script> For more Info: http://developer.yahoo.com/yui/event/
Layout in TMS Layout Manager -  Allows us to create cross-browser, pixel-perfect application layouts with little effort. - Layout Manager establishes structured layouts containing top, bottom, left, right and center layout units. - Units can be resized or collapsed by the user. - Properties and contents of layout units can be easily modifed by the user. For more info: http://developer.yahoo.com/yui/layout/
Layout Manager Eg.
JSON(Javascript Object Notation) JSON is a safe, efficient, and reliable data interchange format. JSON Utility helps us to exchange the data from Client side to Server and vice versa  in an efficient way. For eg.   var jsonStr = YAHOO.lang.JSON.stringify(myData); ------------------------------------------------------------------------------- dataFromForm=Request.Form[0]; FormDataBin  =  JsonConvert .DeserializeObject< CustomerCompanyDetailsBin >(dataFromForm);
JSON (Contd.) Another example to write the data object in Response to client side jsonStr  = JsonConvert .SerializeObject(ResponseDetailsBin); --------------------------------------------------------------------------------- protected   override   void  Render( HtmlTextWriter  writer) { writer.Write(jsonStr); } --------------------------------------------------------------------------------- var data = YAHOO.lang.JSON.parse(JsonData); For more Info:  http://developer.yahoo.com/yui/json/
Data Source - The DataSource Utility provides a common configurable interface for components to fetch tabular data from a variety of local or remote sources. - The DataSource will request data and then return the response to a callback function. - It has the capability of going deep into the hierarchy of the source data, selecting specified fields from the raw output, parsing data as indicated and calling the provided callback function when finished. - The DataSource has an optional local cache to store retrieved and parsed data. It can also be set to periodically poll for data. (Concept of PAGINATION) For more Info: http://developer.yahoo.com/yui/datasource/
Data Table -  The Data Table control provides a simple yet powerful API to display screen-reader accessible tabular data on a web page. -  The DT features include sortable columns, pagination, scrolling, row selection, re sizable columns, and inline cell editing. -  For eg. We have used Data Table throughout the TMS to show the Reservation or job order or vehicle/driver information etc. For more Info:  http://developer.yahoo.com/yui/datatable/
ANY QUERIES ???

More Related Content

PPTX
Whats new in ASP.NET 4.0
PPT
Lecture8 php page control by okello erick
PDF
Hart1998doingaliteraturereview 121110064248-phpapp01
PPTX
Writing for the Web
PDF
Introduction to YUI
Whats new in ASP.NET 4.0
Lecture8 php page control by okello erick
Hart1998doingaliteraturereview 121110064248-phpapp01
Writing for the Web
Introduction to YUI

Similar to YUI Basics (20)

PPT
WRT Widgets Masterclass - OverTheAir
ODP
IBM Connections Activity Stream 3rd Party Integration - Social Connect VI - P...
PPT
Advanced Web Development
ODP
Moving from Web 1.0 to Web 2.0
PDF
openMIC barcamp 11.02.2010
PDF
project_proposal_osrf
PDF
PPT
Building Web Hack Interfaces
KEY
HTML5와 모바일
PPTX
Presentation Tier optimizations
PPTX
Smwcon spring2011 tutorial applied semantic mediawiki
PDF
Basics of web runtime
PDF
Basics of web runtime
PDF
Basics of web runtime
PDF
Basics of web runtime
PDF
Jboss Exploit
KEY
jRecruiter - The AJUG Job Posting Service
PPT
WRT Introduction P11 2009
PDF
Comparative Analysis of Bootstrap and UIkit framework
PPT
.NET Recommended Resources
WRT Widgets Masterclass - OverTheAir
IBM Connections Activity Stream 3rd Party Integration - Social Connect VI - P...
Advanced Web Development
Moving from Web 1.0 to Web 2.0
openMIC barcamp 11.02.2010
project_proposal_osrf
Building Web Hack Interfaces
HTML5와 모바일
Presentation Tier optimizations
Smwcon spring2011 tutorial applied semantic mediawiki
Basics of web runtime
Basics of web runtime
Basics of web runtime
Basics of web runtime
Jboss Exploit
jRecruiter - The AJUG Job Posting Service
WRT Introduction P11 2009
Comparative Analysis of Bootstrap and UIkit framework
.NET Recommended Resources
Ad

More from Om Vikram Thapa (20)

PDF
Next Set of Leaders Series
PDF
Integration Testing at go-mmt
PDF
Understanding payments
PDF
System Alerting & Monitoring
PDF
Serverless computing
PDF
Sumologic Community
PPTX
Postman Integration Testing
PDF
Scalibility
PDF
5 Dysfunctions of a team
PDF
AWS Must Know
PDF
Continuous Feedback
PDF
Sql views, stored procedure, functions
PDF
Confluence + jira together
PDF
Understanding WhatFix
PDF
Tech Recruitment Process
PPTX
Jira Workshop
PPT
Security@ecommerce
PPT
Understanding iis part2
PPT
Understanding iis part1
PPT
.Net framework
Next Set of Leaders Series
Integration Testing at go-mmt
Understanding payments
System Alerting & Monitoring
Serverless computing
Sumologic Community
Postman Integration Testing
Scalibility
5 Dysfunctions of a team
AWS Must Know
Continuous Feedback
Sql views, stored procedure, functions
Confluence + jira together
Understanding WhatFix
Tech Recruitment Process
Jira Workshop
Security@ecommerce
Understanding iis part2
Understanding iis part1
.Net framework
Ad

Recently uploaded (20)

PPTX
Big Data Technologies - Introduction.pptx
PDF
Modernizing your data center with Dell and AMD
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPT
Teaching material agriculture food technology
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Cloud computing and distributed systems.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
KodekX | Application Modernization Development
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Unlocking AI with Model Context Protocol (MCP)
Big Data Technologies - Introduction.pptx
Modernizing your data center with Dell and AMD
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
MYSQL Presentation for SQL database connectivity
Teaching material agriculture food technology
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Cloud computing and distributed systems.
Dropbox Q2 2025 Financial Results & Investor Presentation
Network Security Unit 5.pdf for BCA BBA.
Chapter 3 Spatial Domain Image Processing.pdf
Understanding_Digital_Forensics_Presentation.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
20250228 LYD VKU AI Blended-Learning.pptx
KodekX | Application Modernization Development
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Reach Out and Touch Someone: Haptics and Empathic Computing
Review of recent advances in non-invasive hemoglobin estimation
Unlocking AI with Model Context Protocol (MCP)

YUI Basics

  • 1. YUI BASICS By Om Vikram Thapa
  • 2. CONTENTS : YUI How to Use YUI2 Core Layout in YUI JSON Data Source Data Table QUERIES??
  • 3. YUI – WHY YUI? It is a combination of Javascript and CSS libraries which makes it easy to use Proven,Scalable, Fast & Robust Extensively documented Easy to integrate with IDE like Visual Studio
  • 4. How To Use Include YUI scripts and CSS from the YUI download or directly from Yahoo! Servers http://developer.yahoo.com/yui/download And put it into Web folder of your project For eg: TRSV1.0\NineCiphers.TRS.Web\yui_2.8.0r4\
  • 5. YUI 2 Core YAHOO Global Object - The YAHOO Global Object provides a single global namespace within which all YUI Library code resides. - It must be included on every page that utilizes the YUI Library. - it must appear before any of the other YUI component. - The YAHOO Global Object also contains a number of methods that are used throughout the library. <script type=&quot;text/javascript&quot; src=&quot;../yui_2.8.0r4/yahoo/yahoo-min.js&quot;></script> For more Info: http://developer.yahoo.com/yui/yahoo/
  • 6. YUI 2 Core (contd.) Dom Collection - The Dom Collection comprises a family of convenience methods that simplify common DOM-scripting tasks. - Helps in element positioning and CSS style management. - Normalizes the cross-browser inconsistencies. <script type=&quot;text/javascript&quot; src=&quot;../yui_2.8.0r4/dom/dom-min.js&quot;></script> For more Info: http://developer.yahoo.com/yui/dom/
  • 7. YUI 2 Core (contd.) Event Utility - Most important feature provided by YUI which allows you to create event-driven application in the browser. - Provides you simplified access to DOM events and browser's Event object. - The Event Utility package includes the Custom Event object. Custom Events allow you to &quot;publish&quot; the interesting moments or events in your own code so that other components on the page can &quot;subscribe&quot; to those events and respond to them. <script src=&quot;http://yui.yahooapis.com/2.8.1/build/event/event-min.js&quot; ></script> For more Info: http://developer.yahoo.com/yui/event/
  • 8. Layout in TMS Layout Manager - Allows us to create cross-browser, pixel-perfect application layouts with little effort. - Layout Manager establishes structured layouts containing top, bottom, left, right and center layout units. - Units can be resized or collapsed by the user. - Properties and contents of layout units can be easily modifed by the user. For more info: http://developer.yahoo.com/yui/layout/
  • 10. JSON(Javascript Object Notation) JSON is a safe, efficient, and reliable data interchange format. JSON Utility helps us to exchange the data from Client side to Server and vice versa in an efficient way. For eg. var jsonStr = YAHOO.lang.JSON.stringify(myData); ------------------------------------------------------------------------------- dataFromForm=Request.Form[0]; FormDataBin = JsonConvert .DeserializeObject< CustomerCompanyDetailsBin >(dataFromForm);
  • 11. JSON (Contd.) Another example to write the data object in Response to client side jsonStr = JsonConvert .SerializeObject(ResponseDetailsBin); --------------------------------------------------------------------------------- protected override void Render( HtmlTextWriter writer) { writer.Write(jsonStr); } --------------------------------------------------------------------------------- var data = YAHOO.lang.JSON.parse(JsonData); For more Info: http://developer.yahoo.com/yui/json/
  • 12. Data Source - The DataSource Utility provides a common configurable interface for components to fetch tabular data from a variety of local or remote sources. - The DataSource will request data and then return the response to a callback function. - It has the capability of going deep into the hierarchy of the source data, selecting specified fields from the raw output, parsing data as indicated and calling the provided callback function when finished. - The DataSource has an optional local cache to store retrieved and parsed data. It can also be set to periodically poll for data. (Concept of PAGINATION) For more Info: http://developer.yahoo.com/yui/datasource/
  • 13. Data Table - The Data Table control provides a simple yet powerful API to display screen-reader accessible tabular data on a web page. - The DT features include sortable columns, pagination, scrolling, row selection, re sizable columns, and inline cell editing. - For eg. We have used Data Table throughout the TMS to show the Reservation or job order or vehicle/driver information etc. For more Info: http://developer.yahoo.com/yui/datatable/