[web2py] Re: need teaching advice (JS+jQuery)
i was shown a demo recently of a project that pulled a bunch of data from a server into local storage (using HTML 5 local storage stuffs in modern browsers) and then doing some pretty nifty visualization in the browser. is use of local storage too server like for this class? On Wednesday, April 3, 2013 10:47:15 AM UTC-7, Massimo Di Pierro wrote: Tomorrow I am starting teach a new class. I did not create the class, it was assigned to me. The class is for undergraduate students who have little or no programming experience but know HTML+CSS. No server-side programming experience. The class should cover JS+jQuery but no server-side programming. What are some cool uses of JS/jQuery that do not involve server-side programming? I am thinking of hooking to some JSONP services. Is there any you would suggest? Massimo -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: need teaching advice (JS+jQuery)
On Wednesday, April 3, 2013 3:10:23 PM UTC-4, Derek wrote: Flickr, Panaramio, RSS to JSON (http://ejohn.org/projects/rss2json/) Yahoo YQL (http://developer.yahoo.com/yql/guide/response.html), Twitter, Salesforce.com... One thing that bugs me is that jQuery returns jQuery objects not dom objects, so certain things you want to do just don't work if you treat it like regular JS. You can access the DOM object very easily by appending '[0]' to the jQuery object. For instance, $('#element')[0] will return the DOM element with the id of element, or jQuery('a[href=#]')[0] will return the first anchor tag with a href of #. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: need teaching advice (JS+jQuery)
Your date has passed, so I don't know how useful this will be, but when I introduce people to jQuery, I usually start with fun, gimmicky things, like changing all the images in a web page to photos of cats: jQuery('img').each(function() {var my = jQuery(this); my.attr('src','http://www.placekitten.com/'+my.width()+'/'+my.height())}) And then move on to show how jQuery enables you to interact with things on the page, like fading things in and out, resizing things, recoloring things, and then using mouseovers or clicks to trigger these things on other objects. You could also show jQuery getting twitter updates. On Wednesday, April 3, 2013 1:47:15 PM UTC-4, Massimo Di Pierro wrote: Tomorrow I am starting teach a new class. I did not create the class, it was assigned to me. The class is for undergraduate students who have little or no programming experience but know HTML+CSS. No server-side programming experience. The class should cover JS+jQuery but no server-side programming. What are some cool uses of JS/jQuery that do not involve server-side programming? I am thinking of hooking to some JSONP services. Is there any you would suggest? Massimo -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: need teaching advice (JS+jQuery)
This is still useful, the class is 10 weeks long. This is the best advice I got so far! Massimo On Saturday, 6 April 2013 12:53:03 UTC-5, Chris May wrote: Your date has passed, so I don't know how useful this will be, but when I introduce people to jQuery, I usually start with fun, gimmicky things, like changing all the images in a web page to photos of cats: jQuery('img').each(function() {var my = jQuery(this); my.attr('src',' http://www.placekitten.com/'+my.width()+'/'+my.height())}) And then move on to show how jQuery enables you to interact with things on the page, like fading things in and out, resizing things, recoloring things, and then using mouseovers or clicks to trigger these things on other objects. You could also show jQuery getting twitter updates. On Wednesday, April 3, 2013 1:47:15 PM UTC-4, Massimo Di Pierro wrote: Tomorrow I am starting teach a new class. I did not create the class, it was assigned to me. The class is for undergraduate students who have little or no programming experience but know HTML+CSS. No server-side programming experience. The class should cover JS+jQuery but no server-side programming. What are some cool uses of JS/jQuery that do not involve server-side programming? I am thinking of hooking to some JSONP services. Is there any you would suggest? Massimo -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: need teaching advice (JS+jQuery)
http://jqueryui.com/tabs/ On Wednesday, April 3, 2013 1:47:15 PM UTC-4, Massimo Di Pierro wrote: Tomorrow I am starting teach a new class. I did not create the class, it was assigned to me. The class is for undergraduate students who have little or no programming experience but know HTML+CSS. No server-side programming experience. The class should cover JS+jQuery but no server-side programming. What are some cool uses of JS/jQuery that do not involve server-side programming? I am thinking of hooking to some JSONP services. Is there any you would suggest? Massimo -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: need teaching advice (JS+jQuery)
Flickr, Panaramio, RSS to JSON (http://ejohn.org/projects/rss2json/) Yahoo YQL (http://developer.yahoo.com/yql/guide/response.html), Twitter, Salesforce.com... One thing that bugs me is that jQuery returns jQuery objects not dom objects, so certain things you want to do just don't work if you treat it like regular JS. On Wednesday, April 3, 2013 10:47:15 AM UTC-7, Massimo Di Pierro wrote: Tomorrow I am starting teach a new class. I did not create the class, it was assigned to me. The class is for undergraduate students who have little or no programming experience but know HTML+CSS. No server-side programming experience. The class should cover JS+jQuery but no server-side programming. What are some cool uses of JS/jQuery that do not involve server-side programming? I am thinking of hooking to some JSONP services. Is there any you would suggest? Massimo -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: need teaching advice (JS+jQuery)
What about the google maps jQuery plugin? http://www.pittss.lv/jquery/gomap/solutions.php On Thursday, April 4, 2013 6:47:15 AM UTC+13, Massimo Di Pierro wrote: Tomorrow I am starting teach a new class. I did not create the class, it was assigned to me. The class is for undergraduate students who have little or no programming experience but know HTML+CSS. No server-side programming experience. The class should cover JS+jQuery but no server-side programming. What are some cool uses of JS/jQuery that do not involve server-side programming? I am thinking of hooking to some JSONP services. Is there any you would suggest? Massimo -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.