Meta Programming with JavaScript
Upcoming SlideShare
Loading in...5
×
 

Meta Programming with JavaScript

on

  • 954 views

A talk I gave at Ignite Boston 2007.

A talk I gave at Ignite Boston 2007.

Statistics

Views

Total Views
954
Views on SlideShare
952
Embed Views
2

Actions

Likes
2
Downloads
6
Comments
0

1 Embed 2

http://lanyrd.com 2

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Meta Programming with JavaScript Meta Programming with JavaScript Presentation Transcript

  • Meta-Programming with JavaScript John Resig Mozilla / jQuery
  • Browser Web Dev HTML DOM JavaScript
  • DOM + HTML<html><head><script>window.onload = function(){ var test = document.getElementById(“test”); test.style.color = ‘green’; test.style.display = ‘block’;};</script></head><body><div id=”test” style=”display:none;”> You have JavaScript enabled!</div></body></html>
  • A JS Library HTMLjQuery DOM JavaScript
  • jQuery<html><head><script src=”jquery.js”></script><script>$(function(){ $(“#test”).css(“color”,”green”).show();});</script></head><body><div id=”test” style=”display:none;”> You have JavaScript enabled!</div></body></html>
  • Meta Programming HTML Meta jQuery DOMLibrary JavaScript
  • jQuery “2”<html><head><script src=”jquery.js”></script><script src=”jquery2.js”></script><script type=”text/jquery”>#test: css “color” ”green” show</script></head><body><div id=”test” style=”display:none;”> You have JavaScript enabled!</div></body></html>
  • Demohttp://ejohn.org/apps/jquery2/
  • More Details• http://jquery.com/• http://ejohn.org/apps/jquery2/• http://ejohn.org/blog/advancing-javascript-with-libraries/• http://yuiblog.com/blog/2007/04/16/video-resig/