Jump to content

L8V2L

Members
  • Posts

    788
  • Joined

  • Last visited

Posts posted by L8V2L

  1. Are you talking about this? http://www.w3schools.com/jsref/dom_obj_canvas.asp Perhaps there might be one or two things missing, I haven't done a direct comparison to the MDN reference, but there's more than enough content in the W3Schools reference for a beginner.

    MDN is not that good for me, I will have to go back over it, and parse it with notes. I been on another site today haven't finish html, and CSS on this site, I took a break, and with to another tutorial to read back over it again before presuming with JavaScript.. If you know any guide, documentation, or and manual that explain the basic of JavaScript or canvas in a simplistic straight forward way. Please share. And that goes for CSS HTML too please.
  2. or just using the right tool for the job. in most cases, the box model will be enough to accommodate most standard layouts.

    For a beginner what is the right tool? One will use what applied to one.
  3. Yes, absolute positioning is not "absolute" if the immediate parent is relative positioned. However the main thought to keep in mind is that absolute and relative positioning should not be used unless you really need to use them. You can google this to find example tutorials.

    That's to restricted to say, I'll feel as if it would be better if you word it as, "only apply it if you can't produce your vision in another way."
  4. What does this mean?"Relatively positioned elements are often used as container blocks for absolutely positioned elements."I having trouble wrapping my head around relative position too. It being relatively to it's position meaning that was the position is set to relative, then zero position is it's relative position... right? and again what does this mean? "Relatively positioned elements are often used as container blocks for absolutely positioned elements."What does this mean?"An absolute position element is positioned relative to the first parent element that has a position other than static."

  5. If your speaking on the style, then I did that, to which lead me to seeing the (I read a word that mean the opposite of intuition/tuition, but I can't think, nor find it) unexpected result.

  6. /*check this out in example page. See how the color change or take on another color. I'm guessing this due to it being to close to each other, but the second solid line isn't being touch. And even the dashed bottom line contain a blue green color to it. Any thoughts on this phenomena? ... it might just be my display... but if so then still need to be recognize to know of such an result.*/<!DOCTYPE html><html><head><style>p {border:1px solid red;}p.dotted {outline-style:solid;}p.dashed {outline-style:dashed;}p.solid {outline-style:solid;}p.double {outline-style:double;}p.groove {outline-style:groove;}p.ridge {outline-style:ridge;}p.inset {outline-style:inset;}p.outset {outline-style:outset;outline-width:2em;}</style></head><body><p class="dotted">A dotted outline</p><br/><br/><pre></pre><p class="dashed">A dashed outline</p><p class="solid">A solid outline</p><p class="double">A double outline</p><p class="groove">A groove outline</p><p class="ridge">A ridge outline</p><p class="inset">An inset outline</p><p class="outset">An outset outline</p><b>Note:</b> IE8 supports the outline properties only if a !DOCTYPE is specified.</body></html>/*And there is no different between groove, ridge, inset, outset, and solid... unless I'm missing something; if so please tell me... The simple fact that it does add a solid surface to the outline prove that they are properties of the outline, but does not varies to my eyes to styles the outline.*/
  7. What feature do you want in Javascript? I'm quite sure it's not missing anything that you could possibly need. Yes, everything jQuery does can be done in Javascript, but you have to be very good at Javascript to do it.

    Ingolme... Is this true what he said??? I mean... I'm just posting up my question... I may have post up multiple question, but I don't mean to be rude... I don't know how to ask what I want to ask.. um is it true what he say... I mean does it look that what, do it look that way to you? I wanted to add something to canvas, a shape I feel like it could go great... actually it should have been in there already... it kinda is but not... not the way I feel it should.

    I can't believe I read this entire thread. L8V2L, you are being pretty rude and demanding. I don't know why you feel so entitled or why everyone is so willing to help you. Just start building some things and if you have trouble, look in one of your manuals for a solution or just google it. This has already been said in this thread. I feel like you're just stringing everyone along here. With that said, I'm going to stay away from this thread to prevent encouraging your behavior.

  8. APIs give Javascript access to data that it can't get on its own. jQuery is a program created using Javascript that makes some tasks easier.

    So all functionality of jQuery have a core of JavaScript? How do I access that? I more bent on using only JavaScript style.
  9. Well, when you right-click on the page and select "view source" you see...

    <html><head><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/><script type="text/javascript" src="js/jquery.js"></script><script type="text/javascript" src="js/all.min.js"></script><link rel="stylesheet" href="css/css.css"><title>Star Defender</title></head><body style="height:1000px;" onBlur="gameOnBlur()">	<canvas id="bg" width="600px" height="600px" style="position:absolute;"></canvas>    <canvas id="gameMain" width="600px" height="600px" style="position:absolute;"></canvas>    <canvas id="flashBuffer" width="600px" height="600px" style="position:absolute;"></canvas>	<canvas id="flash" width="600px" height="600px" style="position:absolute"></canvas><script>  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');  ga('create', 'UA-46876714-1', 'gtrace.mobi');  ga('send', 'pageview');</script></body></html>
    ...and since the path to the page is...
    http://www.gtrace.mobi/ChromeExperiments/StarDefender/
    ...the path to the Javascript is...
    http://www.gtrace.mobi/ChromeExperiments/StarDefender/js/all.min.js

     

    THANK YOU!!!! :)... This is a self invoking function... right?
    function myFunction(){     alert("Function called to run by Javascript"); } myFunction(); // calls the function run
    Can someone give me the definition again for both recursive and invoke function... I'm getting them mix up in my head.
  10. No you got it right, that is one way to read external javascript files. That particular file that you pulled up is valid javascript. It is just not easily readable, as the script has been minimized. People minimize their scripts when they want to improve their website's performance (specifically in bandwidth). This, however sacrifices the readability for us programmers which is why it seems cryptic to you. Again its completely valid code and its one of those scripts that is using a number of those little nuances in the language that a programmer picks up through the years. For example the entire outer function there is wrapped in parenthesis then instantly called after definition. This is a method people use when they want to write an anonymous function that no one can re-invoke and will only run once.

    But that's not all the code, they have external JavaScript file I  want to read... I read that I can do this, by taking the name of the JavaScript file, and add that to the url that the file is currently running on, it'll brag up the file....I been studying non-stop, into the night... like now, I have went to sleep, and continue until I can't stay awake no more, then when I wake back up, I start back studying, I feel like... discourage from looking at what I feel as I should know, and it hard to find good concept lesson on JavaScript, information is scatter over the net. I'm not giving up, it just hard feeling discourage to keep going... you know.   (window,document,'script','//www.google-analytics.com/analytics.js','ga')
    These are the parameters that are passed into that function. filling up the arguments: (i,s,o,g,r) with the (a,m) only being defined and used inside this anonymous function, reason with them being in the parameter list is so that it takes less bytes to define the local variables (no need for the 'var' keyword). You can copy a minimized script, paste it into a new file, and then expand the code over multiple lines to help make it more readable. However a lot of the code can still be cryptic if you lack the context of the variables its using. . And most minimized scripts are very, very large... I mean trying to make sense of the jQuery library by reading it's minimized script would be a nightmare. By the way I highly advise against trying to do that because:1) You can easily grab a readable version2) Even when reading the readable version, libraries those sizes often utilize a concert of design patterns. So trying to understand "why" they coded something one way wouldn't make much sense if you didn't understand the underlying patterns they are following. anyway, when that script finishes running, the following variables are created (I had inner function logic expanded to what is implied):
    window.GoogleAnalyticsObject = 'ga';window.ga = function (){        if (window.ga.q === null){          window.ga.q = new Array();        }            window.ga.q.push(arguments);        return null;    };window.ga.q = ['create', 'UA-46876714-1', 'gtrace.mobi', 'send', 'pageview'];window.ga.l = 1400060753032; //the specific number depends EXACTLY on when the script runs
    The script also creates an extra script tag with the listed url and inserts the tag right before the very first script tag already on the page.

     

  11. I'm trying to view a page JavaScript file. I heard you can do this by copying the file name, and adding it at the end of the end of the url. For e.g: waypasscool.com, with the src file name sonicscript.js; waypasscool.com/sonicscript.js. But when I went to go get the file name, all I found was this:

    <head><script src="//www.google-analytics.com/analytics.js" async=""></script><script src="js/jquery.js" type="text/javascript"></script><script src="js/all.min.js" type="text/javascript"></script></head><body><script>  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');  ga('create', 'UA-46876714-1', 'gtrace.mobi');  ga('send', 'pageview');</script></body>
  12. Did you test this?

    var numb= ["0", 1, "2", 3, "4"];var word = {};var letter = "0";delete(x = 0);function compare(arr, str){var x = 0;for( x in arr[x]){if(x === str){return("true");}else if(x !== str){return("false");}}};compare(numb, letter);

     

    Your code doesn't work. You do not understand the basic concepts, as I was asking about.true and false shouldn't be strings, they're boolean values.Here are the results of your function:

    compare(["apple", "banana", "carrot"], "a"); // "false"compare(["apple", "banana", "carrot"], "apple"); // "false"compare(["apple", "banana", "carrot"], "banana"); // "false"compare(["apple", "banana", "carrot"], "0"); // "true"

     

    ...Okay...
  13. I'm trying to view a page JavaScript file. I heard you can do this by copying the file name, and adding it at the end of the end of the url. For e.g: waypasscool.com, with the src file name sonicscript.js; waypasscool.com/sonicscript.js. But when I went to go get the file name, all I found was this:

    <head><script src="//www.google-analytics.com/analytics.js" async=""></script><script src="js/jquery.js" type="text/javascript"></script><script src="js/all.min.js" type="text/javascript"></script></head><body><script>  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');  ga('create', 'UA-46876714-1', 'gtrace.mobi');  ga('send', 'pageview');</script></body>
  14. I'm not joking, most of your trouble with more advanced concepts is that you seem to have a misunderstanding of much more basic concepts. I can ask you to do a simple task to show that you know some concepts:Make a function that takes two parameters: An array and a string. If the array has the string in it then return true. Return false if the string is not in the array.

    When I read this... it was like I was reading the code that compose together to performance this action... some of them going
    var numb= ["0", 1, "2", 3, "4"];var word = {};var letter = "0";delete(x = 0);function compare(arr, str){var x = 0;for( x in arr[x]){if(x === str){return("true");}else if(x !== str){return("false");}}};compare(numb, letter);

    The simple answer to all your questions is that you need more experience, not knowledge. As you've said you've read a number of manuals numerous times but the knowledge doesn't seem to sink in because you lack the experience in Javascript. Computers have all the intelligence, all the knowledge in the world but they have no understanding of what it means. You, the Programmer, is charged with possessing the wisdom help create marvelous things, harnessing their knowledge. No manual is ever gonna teach you how to do that, it is something you need to obtain through experience. A strong foundation in programming is experience, not knowledge. In this day and age, knowledge is easily accessible, its knowing what you should do with it that is important. When you come across a major problem and things hit the fan its experience that will pull you through. You should just practice on simple scripts for now. Practice will trump just raw studying. As the saying goes: "An Amateur practices until he can get it right. A Professional practices until he can't get it wrong." Start a simple project and work on it. You don't need to know everything in the world right now. Look up the manuals when you get stuck, because when you need to understand it the most, then you'll most likely remember and understand it. Not only will this improve your understanding and skill in JavaScript, but a number of these fundamentals will also apply to other languages as well. I don't know everything in JavaScript, but then again I don't need to in order to make awesome scripts.

    But I still want to keep refreshing, so I would love to find new manual that deliver the same information(extra optional) in the same structure of that of a document, manual, guide structure, with a lot of example, but a little different to have something new to read.Anyone seen the new movie of the spin off of the rise of the planet of the ape?!?!?http://youtu.be/hVXYl1URtmYWATCH IT!!!!!!!!!!!!!!!!!!
  15. "Framework" and "library" refer to certain programs people made with normal Javascript. You shouldn't worry about frameworks and libraries. Begin by learning how to do basic programming: if, while, for, and function.

    I wasn't going to respond to this, I saw it earlier... I don't know if your joking... I have read three manual on JavaScript, not saying I understand everything... It just... pretend you are me who wrote that post you respond to, and then you came back to read this "Begin by learning how to do basic programming: if, while, for, and function." if(condition){action};[else if, else], for(initial; condition; increment){action};, while(initial; condition;){increment}[do while];, function funcName(parameter0, etc){action};, var varName = function(){};, var varName = function funcName(){}; var varName = new Function(){};, var varName = (function(){})();, var varName = (function(){}()); (function(){})();, (function(){}()); var varName = new Function();I'm not saying I know the stuff, I still want to learn the basic, I still want to read more manual document guides on JavaScript. I want a strong foundation of JavaScript, when I ask question, I need for you to please answer them... it's up to you, but just don't respond with a non answer to my question... again it's up to you. I'm asking of knowledge, don't turn someone away from their question when they are in search for knowledge....you know after writing this I read your begin sentence over again, and now I'm see that you probably mean that, learn the use for which you would use these in basic programming... is that right?PLEASE I NEED MORE I NEED MORE MANUAL DOCUMENT GUIDES ON JAVASCRIPT!!! PLEASE!!!!!!!!Please.
  16. I have read through w3school html, css, and their next level 5 and 3, JavaScript, jquery, then I went back to JavaScript, and read it three time, then I read over mdn three times, and Microsoft guide on JavaScript two time, and advance one time, then I actually found the FREAKING MANUEL and read that. all of this was fundamental and intermediate... NOW I spent most of the day sSTILL SEARCHING FOR BASIC KNOWELDGE TO EXPLAIN TO ME THE BASIC AND IMPORTANT OF JAVASCRIPT!!!!!What are framewares? What are libraries? How are they JavaScript?I would rather work in the javaScript that I been studying and not an implementation of it if that what that is.Thanks for the link justsomeguy.

×
×
  • Create New...