Jump to content

L8V2L

Members
  • Posts

    788
  • Joined

  • Last visited

Posts posted by L8V2L

  1. Book writers don't say random things for no reason. The book is designed with teaching in mind. Read it, read all of it. You might think some parts aren't relevant, but perhaps you just aren't educated enough to judge that. Learning requires an effort from your part. We can point you to books, tutorials and documentations. We can point out and correct mistakes in your code, but we're unable to put knowledge into your head. You have to put your own effort into learning.

    And I am, I have this site tutorial along with other sites tutorial a couple of time and even the reference area of this site and another site.I'm going back over the tutorial as we speak... I am non-stop reading, I do nothing but this. period, I want to know how to program so I can support myself, but even that, I see it as a tool to express myself... I always wanted to learn how to draw, but now I can see with this, I can do more then draw a straight line with canvas, or svg, I can do more. I want to know JavaScript, give me a text book, please you must no a book that just give you information cut bone and dry, I don't care about it being boring, there is no such thing if you are searching for knowledge, I literal can't set and read them book with out feeling a sense of wastefulness toward it, I know those book contain knowledge, and I other stand the author strategy on delivering that knowledge, to show that he to was ones like the reader, and or that showing his path of getting to where he is at can encourage the reading to continue onward. I understand that... but for me... I need to stay on track. Please give me a freaking textbook, I want something that's like a dull lesson on JavaScript that give you everything you will need to know, with no small talk in-between.... maybe a little small talk... Something like this site; I'm speaking on the structure. And don't think I'm not searching for new materials read, both books, and online, but online tutorials(so far just this, mdn, msdn, d...php, and even reference(not really, I just found one that seem to interest me, but I'm sticking to the plan I have, and so after I read mdn again, I'll see about reading through that)) I feel every time I go through them ones more with a little understand, more understand compile to it. Please I'm not asking you to point me to the best book, I want a textbook-like read. Thank you all for all you done for me, I do appreciate it. I appreciate you putting up with me. This the first time I been so open about (refer to pic). not many bother with me. One thing I learn living through this life is that you can't hide what is wrong with you.
  2. I think about me, I am learning. This I feel is the best way, I already told you; I try reading book, even after what I read of what you type, I went to amazon two see, and pick to books, then I download them, and try to read them, and what you know, it was a lot of author input... Do you know what I want to read, I text book, I now see the value that text books hold, I see that it being plain text, with no humor, and only on the topic it is label to discuss; I see them as gold now. That why I like tutorial; cause with tutorial that keep on track with no side line shinicaioin...(don't know how to pronounce or it say it correctly enough to actually go and look it up.) not going off of topic. I want a text book! Please, if you know of a introduction book that give exactly that; straight to the point information. Stay on topic, not "When I was a child my father told me" bullstuff. I don't care nothing about that, really I'm not reading to learn anything about the author, I'm reading to learn about JS, and html, css. Then when they talk for a paragraph long, and get back on subject, then tell you to double back to reread a paragraph from the last page that they could have put in the spot of the paragraph of them self or what ever. I don't want to read something like that... when I read these tutorial, I do my best to read them straight through, I don't like it when I skip over a section. And that what I find myself doing in them books. I don't want that. I want to learn. Forget about the documentation, manual, and guide, give me a textbook to read! PLEASE!!! I would(and is plaining on reading it) the ecma-script documentation; but it is seem to be made for other programming, and I'm talking about wizard level programmer to understand.

  3. //HTML<canvas id="canvas" style="border:2px solid black;" width="200" height="200"></canvas>1//JavaScriptvar canvas = document.getElementById('canvas');var ctx    = canvas.getContext('2d');var data   = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' +               '<foreignObject width="100%" height="100%">' +                 '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' +                   '<em>I</em> like <span style="color:white; text-shadow:0 0 2px blue;">cheese</span>' +                 '</div>' +               '</foreignObject>' +             '</svg>';var DOMURL = window.URL || window.webkitURL || window;var img = new Image();var svg = new Blob([data], {type: 'image/svg+xml;charset=utf-8'});var url = DOMURL.createObjectURL(svg);img.onload = function () {  ctx.drawImage(img, 0, 0);  DOMURL.revokeObjectURL(url);}img.src = url;
    This is appose to able one to draw/write to the canvas, but it is outdate and does not work. Could anyone see what is need to tweak it to get it back working?
  4. Then write more code, and when you have a problem show us all relevant parts of the code. In this situation you created an array and then you had trouble accessing the array -- so obviously you should show us the code that created the array -- as well as the code that was attempting to access the array.

    :) Thank you... I still want to work on my foundation of JavaScript, before I start writing my own code for my own application... As I go over JavaScript, it comes to me after ward the different components that can be utilize as are necessary... it almost as if I can see the source code in my head to what I need to do to make it come to part.I can see the power....Some where in the darkness of space JS_dark_vader is watching the young one develop into something.JavaScript: Soon, soon the young one will be ready to join me. Soon. Ha ha ha.
  5. For example, if a is a 2-dimensional array with 10 elements on a side, the following code uses the comma operator to increment two variables at once. The code prints the values of the diagonal elements in the array: :( I don't want to be a hack... I want to know JavaScript.... I need to understand everything about it.I know what it is about documentation, manual, and guide; it's giving me the information what is JavaScript... lately it been hitting me on what I could use arrays for, and objects, and functions, epically oops programming. I want to know JavaScript... I understand you all have recommended books to me... but I can't read them, for it feel as if I'm not getting know where... I need a material that would feel as if it is worth reading, even if I don't get it the first time of the depth defined meaning, as long as it giving me something on the surface level too. I will go over it as many times as I need to also get the depth underneath the surface... I need to understand JavaScript. I need to know it. I need to.

  6. I'm on MDN's tutorial again, and trying a for loop in the console they show case as to evaluate into a 2deminional array. But when I long it into the console, an exception is thrown, stating:

    Unable to get property '9' of undefined or null reference
    Here is the for loop statement:
    for (var i = 0, j = 9; i <= 9; i++, j--)  console.log("a[" + i + "][" + j + "]= " + a[i][j]);
  7. Hmmm... apparently SVG doesn't like innerHTML. What do the SVG tutorials say?

    Oh, ha, ha davej. funny.

    SVG is XML, so you can only modify it using XML DOM methods. As the property name indicates, innerHTML only manipulates HTML. I've worked with SVG using Javascript before, but not when it was embedded in HTML. Here's an example: https://dl.dropboxusercontent.com/u/27077732/svg3d/index.html

    I was planning on learning xml just out of respect for html, and SVG coding, but now I see it's a necessary.Thanks for the link! I want check out the xml right now, but after I get done going through JavaScript references. But I check out the dropbox one... It look smooth... it look really smooth... Why is that? Does not the SVG animation work as good as just manipulating the SVG code with JavaScript? Or better yet, it is in it's native environment, which is the xml file?And what about the Dom SVG objects, methods, and proprieties?(Can someone give me a brief description of these three, object, method, and property... I know them, but I want to make sure I know them... Please.) Like the SVGRect object? It say read only, does that mean I can't manipulate it?
  8. You're free to make a Javascript application that reads SVG files and draws them on a canvas.

    Their so much I want to learn... But with my "refer to pic" I'm concentrating on JavaScript; by that I mean, the only thing I will use other then JavaScript is api for, or that can be manipulated by JavaScript... I have read over and over these tutorial on JavaScript... little by little getting the important of JavaScript... I will not stop... I will not. My knowledge is being guide by to force I see now, JavaScript, and HTML, for what ever touch those, I reach to understand. I want to understand... I want to evolve from my novice state... no matter how long it'll take, I will keep going over this until I get it... Cause for me... this is it, this is it or defeat, and if it is defeat, then it is death to be... I will not turn to that. No matter... I must keep reading, reaching, forcing my self(and not even since I general do enjoy this) to want this...I wish to manauplate svg from JavaScript, since it is a node from the dom, and it's own dom, then it is possible, how would I go about this... plus I found searching through the dom that there are svg object with in it... but seem to be read only... judging on searching the web, and w3.org... are those just for reference for when one is writing the code on the wed or something?
  9. I want to right svg code from JavaScript. Can anyone help me figure out what I did wrong?The console show no error.plus I see that there are svg object in the console it self, but from searching the web, also w3.org show and said that they are read only; i.e. SVGRect; <-- How would I use this, or is it just a reference for the compiler or interpreter?

    <!DOCTYPE html><html><body><h1 id = "h1">My first SVG</h1><svg id = "svg0" width="100" height="100">   Sorry, your browser does not support inline SVG.</svg>  <script>var h1 = document.getElementsByTagName("h1");h1[0].innerHTML += "yo";var svg = document.getElementsByTagName("svg");svg[0].innerHTML = '<circle x= 0 y = "0" cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />';</script></body></html>
  10. SVG and canvas are not compatible. One stores data about shapes, the other manipulates a matrix of pixels.

    But one can be converted to different format. There must be away to transfer the data into a different format to the canvas from raw SVG inline code. By doing this, I can see how it could give one more control, and greater manipulation over the shape using SVG. The canvas have a data object, and other methods and properties and manipulate data.
  11. Your question doesn't even make any sense.

    HAHAHA I'm lose in translation. And they said "please refer to picture" is not an disorder, or my favorite one that it can be cure with medicine.I wish to save an InkScape file, and be able to open it up in a text editor, and easily be able to edit the code as an html SVG inline code, and also be able to insert it into w3school to render out as the example display with their SVG inline code.Also, I was wonder if there is away to put SVG inline code into canvas? I don't care much it want be an sVG format file, I just desire to have the capability to use it as so, cause of the greater control and feature SVG coding have over getContext("2d");Please answer both question if you can.
  12. Why can't you read documentation? http://www.inkscape.org/en/learn/tutorials/

    Thanks for the link, I went there before you post that, but not to that section. I would love to go through it, but not now, now I just want to concentrate on learning JavaScript, and making sure I understand everything. So if you could simply tell me how to do it, I even search Google(first msn, cause that is the browser that my browser to go).Do anyone know how to save SVG to where it can be edited and put into html or as a html format so one can edited it.
  13. just start using the console, that's what it's for.https://developer.chrome.com/devtools/docs/console

    var x = 5;var person = {  name: "Joe Smith",  age: 30}; console.log('ENTER some function');console.log('the value of x is => ' + x);console.log(person); //etc
    most developers would already have it open and using it anyway to check for Javascript errors

     

    It don't seem possible, I want to try to reference childnodes[0].nodeValue in variable innerhtml. Do you know where I went wrong by looking at the code?
  14. Why don't you simply insert...

    alert('['+ elem.childNodes[0].nodeValue +']');
    ...to see if it is what you expect? I think it is very unusual to try to use childNode in this situation where using innerHTML is the obvious choice. I mean you can create a div such as...
    <div id="debug1"></div>
    ...and then write to it with debugging statements inserted into your code...
    function myFunction(){var debug1 = document.getElementById('debug1');debug1.innerHTML = '<hr/>';for (var i=4; i<=6; i++){debug1.innerHTML += 'i= '+ i +'<br/>';}}

     

    <!DOCTYPE html><html><body><h1 id="intro">My First Page</h1><p id="demo">Hello World!</p><script>var myText = document.getElementById("intro").childNodes[0].nodeValue;var innerhtml = childNodes[0].nodeValue;/*<--I want to put it in the variable, so I can use the variable as innerHTML. It doesn't matter why, it's something I want to see possible. Can you help me?*/ document.getElementById("demo").innerhtml = myText;//<--work?</script></body></html>
  15. <!DOCTYPE html><html><body><h1 id="intro">My First Page</h1><p id="demo">Hello World!</p><script>var myText = document.getElementById("intro").childNodes[0].nodeValue;var innerhtml = childNodes[0].nodeValue;//<--How to make thisdocument.getElementById("demo").innerhtml = myText;//<--work?</script></body></html>
  16. [quote name="Ingolme" post="278362" timestamp="1400950645"

     

     

    /*How is window.setTimeout() method acting as setInterval() method?*///Is window.onload causing it to act as a setInterval() window method?
    You really need to get to the point where you can figure things out on your own. 1. Did you look up setTimeout() to see how it works and what it does? http://www.w3schools.com/jsref/met_win_settimeout.asp 2. Did you try using console.log or some other output method to watch the code run? You can always insert alert('x') into your code as a rough way to see what is executing. You can also add a div for your debugging and keep appending to it with innerHTML statements.

     

     

    The setTimeout() function executes a function after a certain amount of time. If that function contains the setTimeout call then it will continue calling itself.

     

     

    /*How is window.setTimeout() method acting as setInterval() method?*///Is window.onload causing it to act as a setInterval() window method?
    You really need to get to the point where you can figure things out on your own. 1. Did you look up setTimeout() to see how it works and what it does? http://www.w3schools.com/jsref/met_win_settimeout.asp 2. Did you try using console.log or some other output method to watch the code run? You can always insert alert('x') into your code as a rough way to see what is executing. You can also add a div for your debugging and keep appending to it with innerHTML statements.

     

    What do you mean by; "You can also add a div for your debugging and keep appending to it with innerHTML statements."

     

    ]The setTimeout() function executes a function after a certain amount of time. If that function contains the setTimeout call then it will continue calling itself.Oh, cause it in a function, ones the function is call, then it will be call again, and again.
  17. did you look it up first?

    I came a cross it before a few days back, but to have someone to explain it in their own words as not trying to be high tech about it, can help to get the bottom line of it... clarity...Is this a joke? The main competitor to SVG is Flash <-- Is this a joke?! If not WHY!?!?!Unless it's my internet connection, svg animation isn't smooth, choppy.
  18. The term "node" refers to an element in a data structure that all programming languages can implement. It's called a tree, a node is any part of the tree that contains data. Here's the Wikipedia article about trees: http://en.wikipedia.org/wiki/Tree_(data_structure)

    Thanks for the link, I read the introduction, and pass it toward the end, but not finish, wanted to get back to finishing the JavaScript tutorial.Is this a joke? The main competitor to SVG is Flash <-- Is this a joke?! If not WHY!?!?!
  19. <!DOCTYPE html><html><head><script>function startTime() {    var today=new Date();    var h=today.getHours();    var m=today.getMinutes();    var s=today.getSeconds();    m = checkTime(m);    s = checkTime(s);    document.getElementById('txt').innerHTML = h+":"+m+":"+s;    var t = setTimeout(function(){startTime()},500);/*How is window.setTimeout() method acting as setInterval() method?*/}function checkTime(i) {    if (i<10) {i = "0" + i};    return i;}</script></head><body onload="startTime()">//Is window.onload causing it to act as a setInterval() window method?<div id="txt"></div></body></html>
×
×
  • Create New...