February 27, 201313 yr I’ve recently released 5 videos covering how to use JavaScript on your websites. The videos have a very practical approach with a lot of examples and useful functionality. The tutorials are for beginner to intermediate. We start up by learning simple onclick functionality and end up mastering AJAX requests. Feel free to post comments and questions. Here is a Youtube playlist: Enjoy. http://www.youtube.com/user/NillerVision Edited February 27, 201313 yr by Nillervision
March 4, 201313 yr regarding keeping the content, meaning & script apart, does this mean locally? or all on their own file and using import(s) for referencing functions and stylesheets? is one way preferred?
March 4, 201313 yr Author Good question. The best practice is to have your javascripts in external.js files and then link to them much like you do with external stylesheets. That way you can include your javascript as modules on the pages where they are needed. And you will only have to edit one file to aply changes. Durring production I usually have the .js at the very top of the document (between the head tags) or at the very buttom (just before closing the body tag). After testing I copy the js and paste it in to an external .js file and link to it like this: <script type="text/javascript" src="myjavascripy.js"></script> Where to put the link depends on when you want the js to load. If you have a lot of js code it might be best to put the link at the end of the document. That way your page and graphics will render before the js is loaded.
March 4, 201313 yr Author regarding keeping the content, meaning & script apart, does this mean locally? or all on their own file and using import(s) for referencing functions and stylesheets? is one way preferred? And I do belive I'm saying "keep content, STYLING and scripting apart" not "meaning". It would be nice though if we could import or link "meaning" into all our work. lol
March 6, 201313 yr so styling and meaning are not synonymous here? htmldog went on and on about the meaning of something. ( [strong] vs - strong emphasis was preferred over bold because of the meaning it implied)
March 6, 201313 yr Author You might be right. I've seen the reference to 'meaning', 'structure' and 'content'. But does the word meaning aply to all styling or just to parts of your text you want to emphasize? I'm trying really hard to master the nobel english language.
March 6, 201313 yr Author so styling and meaning are not synonymous here? htmldog went on and on about the meaning of something. ( [strong] vs - strong emphasis was preferred over bold because of the meaning it implied) Your post made me curious so I just took a look at htmldog.com searched for meaning (literally) and found this confusing post about separating “meaning and presentation”, “structure and presentation” and “content and presentation”. I think the author is about to conclude that “meaning”, “structure” and “content” all are terms that covers the same: The actual HTML-content - and presentation is his/her term for styling. Here's the post: http://www.htmldog.com/ptg/archives/000019.php
March 6, 201313 yr so styling and meaning are not synonymous here? htmldog went on and on about the meaning of something. ( [strong] vs - strong emphasis was preferred over bold because of the meaning it implied) That's not so much to do with the styling that tends to be linked with <strong> or <b>, but rather with semantic HTML markup. Using <b> is not as semantic as using <strong>, since <strong> implies that there is emphasis on the enclosed word, or phrase; <b> was previously used purely for styling as far as I'm aware. The same is true for <em> and <i> (generally styled in italics). That said, I couldn't tell you how beneficial it is (SEO-wise) to use <strong>keyword</strong> these days - I'm no SEO expert (Couldn't resist) Semantics are being focused on a lot with HTML5, and RDF/RDFa/RDFa Lite specifications. It's an interesting topic, and is something I'm researching into as part of my dissertation. The expected potential for "The Semantic Web" is quite astonishing. Looking to the future - on-page SEO is going to go through a number of changes. As it stands now, however, very few sites are utilising RDF(a Lite) to any serious extent. Edited March 6, 201313 yr by andy9l Weird bug.
March 6, 201313 yr Author So from now on your post will top-rank everytime someone googles "SEO EXPERT" That said, I couldn't tell you how beneficial it is (SEO-wise) to use <strong>keyword</strong> these days - I'm no SEO expert (Couldn't resist)
March 6, 201313 yr Just to add onto the above id also suggest compressing your javascript code and css for that matter adds a tad more speed to your website how much im not 100% sure but it is recommended by some
March 6, 201313 yr Author Yes. Good point. I think you need to configure your .htacess so your server can handle compressed files. Here's a description http://webdesign.about.com/od/speed/ht/website-compression.htm Just to add onto the above id also suggest compressing your javascript code and css for that matter adds a tad more speed to your website how much im not 100% sure but it is recommended by some Edited March 6, 201313 yr by Nillervision
March 6, 201313 yr hm so this is an aesthetic thing and not a good practice/behavior, like blocking in code with the first '{' at the end of the condition vs below the condition on the next line, kinda thing?
March 7, 201313 yr Author hm so this is an aesthetic thing and not a good practice/behavior, like blocking in code with the first '{' at the end of the condition vs below the condition on the next line, kinda thing? Regarding the tags? Well you could call it aesthetic I guess. But as Andy9l said: the general term for the correct use of the tags is "semantic webdesign". In your example where you open a function body in the line below, you are talking about making your code easy to work with for "humans". (I guess) With the semantic use of tags in html it’s also about making your content easy to read for "machines" like browsers, search robots and screen readers. (The last one is forgotten way to often.)
March 19, 201313 yr Author Center content using JavaScript - New video tutorial uploaded tonight. Another thrilling mainstream blockbuster is now uploaded to my YouTube channel.The plot?"How to center content on your web pages using JavaScript" (vertically as well as horizontally).This one is going to get me some academy awards. Please comment. I would also like constructive critique. Its the only way I can improve. Edited March 19, 201313 yr by Nillervision
February 19, 201412 yr Author New video added today. It's about creating animated elements (dropdowns ect.) by triggering CSS transitions with JS. There's quite a few tutorials on this subject but they mostly teaches to change style attributes with JavaScript. This video explains a much simpler and cleaner approach by using predefined transitions in CSS classes and just change the elements classNames with JS. It's very easy to follow even for beginners. Edited February 19, 201412 yr by Nillervision
February 19, 201412 yr First time I've seen these tutorials, thanks I'm looking forward to checking them out. :-)
February 20, 201412 yr Author First time I've seen these tutorials, thanks I'm looking forward to checking them out. :-) Thanks. Let me know what you think. All comments, critique and ideas for improvement are more than welcome
Create an account or sign in to comment