Jump to content

L8V2L

Members
  • Posts

    788
  • Joined

  • Last visited

Everything posted by L8V2L

  1. Thanks guys... justsomeguy, your explanation is more to what... I guess I could say satisfied me... I can just go with that it's necessary to do is to initializing the string a head of time with in the variable with the value... but to some instance I want to know 'WHY', not just cause that what you have to do, but why most it be done like that, why must I add the string to a variable when a variable it just use to hold information, what so important to that initialization that if I don't do it, the code it self don't work. I want to understand... I want to know JavaScript.I do appreciation all of you sharing your knowledge with me... I understand that this is what you would have done with anyone that would have ask... But it mean something more to me of which you are doing... Really, with out you, this site would only be a book with knowledge, but you are the teacher to go to when stump, I could search the web for this, but the web is both a benefit and an un-control variable of which you don't know if the information you reading are correct. I can say the same of you guys, but to see your words matching up to what I am studying are telling me your words are with truth.Codeacademy is nice but... if this site had a choice or a course of interface like codeacademy, I feel as if this site would be a lot more enjoyable... After I went through the tutorial of JavaScript two times, I found all these other resource that the tutorial did not have, your reference, and example... I could take all of this, and design a site of my own that have the component that both you, codeacademy, and htmldog are missing to truly have a site that would draw people in, not cause of the drive to learn, but cause of the enjoyment they will get from learning.But I rather improve a site that help educate me on my journey of learning... If you could are just think over it to a least hearing some of my suggestion if you want to... other wise, I'm stilling going to try to implement them using f12 interface to change the look of this site up to make it more enjoyable for me to learn, and save it as a fire to use on each page.Either way, thank you for all your help.Here something you might like to watch, very educational and insightful:
  2. Please delete this... unless if I'll that cause points against me.
  3. But jQuery isn't writing as JavaScript is writing. I want to learn JavaScript, even know I like how jQuery look, and enjoy learning it. But I want to have JavaScript as my foundation, not a form of JavaScript which is easier to understand, but the actually language of JavaScript.Beside that question could you also explain more in detail of the responses you gave me of jQuery, even know I know... I still would like more information on your part. If not, than please responses to the repost to the question that have a little more detail above this.Thank you again, I do appreciate you taking your time out to reply to my nobs question... Wizard.. or warlock(eyes go back and forth with dramatic music playing).Also a brief info on VBscript. You don't have to, I rather not get on any other scripting language but JavaScript for now, after I'm comfortable and confident that I know JavaScript's basic and intermediate. To where I can move on to advance easy. Next language is serve side scripting PHP.
  4. Davejwhy do they have the '' in var x='', i; or just var='';?Thanks for explaining and refreshing my mind of that fact of var x=a, y=b, z=c;
  5. L8V2L

    Help!

    I don't know what else to do... Anyone have any ideals? I want to learn JavaScript, I went through this tutorial two times, and have to module on codeacademy left, but it just feel like I'm not advancing. I want to have a strong foundation of the basic, so I can understand everything else.
  6. <!DOCTYPE html><html><body><p>Click the button to loop through a block of code five times.</p><button onclick="myFunction()">Try it</button><p id="demo"></p><script>function myFunction(){var x='',i; //Why this var x = '', i; and not just var x = '', i; I see that the code don't work.for (i=0;i<5;i++){x=x + "The number is " + i + "<br>";}document.getElementById("demo").innerHTML=x;}</script></body></html>
  7. Like jQuery but written in only JavaScript... If you can give more detail if you feel as if my understanding isn't all there... which it isn't.
  8. Do they have a framework that only pertain to JavaScript, as it is made up of only JavaScript.
  9. I read the top, and even went into the link of quotient value... Thank like mister cat(that you)said. I played with it... You or wiki couldn't just tell me it's minus the remainder... Jump in the corner looking at you all foaming at my mouth. "GET YOUR DAM HANDS OFF ME YOU DAM DIRTY APES, ALL OF YOU! YOU'RE NUTS YOU HEAR, YOUR NUTS, YOUR HERE!"All number have a pattern, so (I look back to the name I was referring to(I forgot it)Than I saw this "Modulus (division remainder)" Note the remainder... With that said, I'm back in the corner growling at you all.) with the modulus, it's more of the... remainder... (back in the corner "YOU ALL! DAM YOU ALL, YOU DAM DIRTY APES, ALL OF YOU.") THAT REMIND ME! STILL DIDN'T FINISH THAT MOVIE, The Rise Of Planet of The Ape...Is anyone on this site a wizard by any chance... I know no one is a cardboard hole punching wizard... That's more a mad wizard to me. Just a high rank wizard... If you don't know what I mean, than never mind. Thanks for helping and everything.
  10. Thanks for the links! I only have three module(count the one I'm on) on codeacademy with JavaScript. I came across his video searching through youtube video to find video on JavaScript, but pass him up cause of the fact I felt it'll be more of a lecture than an engage hearing list-in-on(I need something that going to keep my attention.) I already came across that online book, which didn't really seem to lay the basic for me as a tutorial for JavaScript... but might have been cause of the layout not being pleasant to me, but I'll go back at it ones I have a strong foundation to stand on of JavaScript and it's building blocks.Again Thank you, I appreciate the fact of you doing something that you didn't have to do. I will check out some of those videos and see about that online book again. As I said, I wish to have a basic understanding, a strong foundation of JavaScript become I even move on to anything else. That include advance JavaScript.Again, thank you.
  11. Thanks for replying to my question... I can't say I understand. With the link you supply me with it give an explain of 5%2=1, as well as 5/2=2.5... to me it look as if it's rounding off... I been studying today so about to take a little break... which is never a break, just off the course to keep my inspiration up to keep going.Thanks again for the reply!
  12. % (Modulus) 14 % 9 // returns 5 <--------> Explain please.
  13. Cause it said it would, I'll find the tutorial which I'm referring to later.
  14. I want to learn the basic before I move on... I am reading books, One or more I got knowledge of from the website you give me. Thanks again. I can't afford a class room. nor can I handle the environment.Try asking for free passes on online video, but was refuse it.
  15. I HATE IT WHEN A TUTORIAL SPEAK ON, OR DOES NOT PREACH ON THE STRICT MODE!!! I DON'T CARE IF I DON'T NEED TO DO IT ANY MORE LIKE ADD SEMICOLON TO THE END< I WANT TO!!!! OLD TRADITIONAL JAVASCRIPT! I WANT TO LEARN THE STRICT MODE! DO ANY ONE KNOW OF ANY GREAT TUTORIAL THAT PREACH ON THAT FOR BEGINNERS! I WENT THROUGH THE ONE ON HERE TWO TIMES ALREADY, AND WANT TO LEARN NOT MORE BUT WITH ANOTHER TUTORIAL TO GO OVER THE FOUNDATIOD! I WISH TO STRENGTHEN THE FOUNDATION OF IT... I STILL CAN"T PROGRAM OUT OF MEMORY!!!!!!!!!!!!!! HELP ME!!!!!!!!!!!!!!!!!!!!!!!
  16. No one touch this!!! ... as if anyone watching this question. I'm saving this for later... if I ever come back to it.<!DOCTYPE html><html><head><script>/*function setCookie(cname,cvalue,exdays){var d = new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));var expires = "expires="+d.toGMTString();document.cookie = cname+"="+cvalue+"; "+expires;}function getCookie(cname){var name = cname + "=";var ca = document.cookie.split(';');for(var i=0; i<ca.length; i++){var c = ca.trim();if (c.indexOf(name)==0) return c.substring(name.length,c.length);}return "";}function checkCookie(){var user=getCookie("username");if (user!=""){alert("Welcome again " + user);}else{user = prompt("Please enter your name:","");if (user!="" && user!=null){setCookie("username",user,30);}}}*/</script><script>function setCookie(cname,cvalue,exdays){var d=new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));var expires = "expires"+d.toGMTString();document.cookie"="cname+cvalue+"; "+expires;}function getCookie(cname){var name=cname+"=";var ca=document.cookie.split(';');for(var i=0; i<ca.length; i++){var c=ca.trim();if (c.indexof(name)==0) return c.substring(name.length,c.length);}return "";}function checkCookie(){var user= getCookie("user name");if(user!=""){alert("Welcome again "+ user);}else{user=prompt("please enter your name:","");if(user!="" $$ user!=null){setCooke("username",user,30);}}}</script></head><body onload="checkCookie()"></body></html>
  17. When it print out the paragraph onto the web page, what cause it to number it from 0 to 2? That is what I'm asking. What is numbering the paragraph out? The array? I don't think it could be that, for I am not printing out number too. What cause it to print the number beside each paragraph?If you still don't understand that's okay.I have another question, and as I said again, I don't want to risk spanning the tutorial help section, for I feel these are not to be all that important... to be consider to others mins me to be all that important to post.<!DOCTYPE html><html><body><p>A script on this page starts this clock:</p><p id="demo"></p><script>var myVar=setInterval(function(){myTimer()},1000);function myTimer(){var d=new Date();var t=d.toLocaleTimeString();document.getElementById("demo").innerHTML=t;}<br></br></script><h1 id="demo12"></h1><script>var myVar=setInterval(function(){myTimer()},1000);function myTimer(){var d=new Date();var t=d.toLocaleTimeString();document.getElementById("demo12").innerHTML=t;}</script></body></html>Why want it show the time two time? I even but nodes break in the html field. It only show the time ones even know I have it in two separate nodes paragraph. I been staring at the screen for quite some time, until I got the ideal to put comment in the nodes script to comment out the code to the first one, and the time still shown, showing me I hade the code right, so I change the node paragraph for the second one to node header 1, and still no different, for with the first comment it out, it'll show, but uncomment out, and it only show the first one disregarding the second one. Please help me... With the first question also before the code if you want/can.
  18. ...Thanks but I already knew about concatenating strings, and additional numbers... I was referring to the print out with the number beside it. Even know I know that the first child is ground 0 base, why is it printing out that.If you don't know how to explain or just don't really feel like referring back to this, it's okay. Thanks for the help so far.
  19. It's beautiful. Now questions to simplify it: Where did the number come from? the array of x added them? And why nodediv.idname.innerHTML equal assign to ' ';? Can it just be printed in? ...I'm looking at it... I'm still a noob, could you explain it to me, how every loosely you want, if I don't get the syntax order, than I'll just move on. Farther down the line it will hit me with celerity clarity.(p.s. accidently misspell clarity as celerity, but look up the word to see why an error message was not thrown, i.e. the red squiggly line that would go under it... long story short, I kept it! )Still looking at it: So the +=i +': ' is what add on the number. i=0, as it loop through the function to add the next line of node text... right? Then x of this array is the text node in the node p where it go through each p, than print out the result, as either innerHTML, innerText, textContent print out the result in the the p + the node <br> putting it on another line beneath it... right? Why when I take out the + before =i +': ' it only print out the last line x[2] and not the first x[0]? It as if it is printing them down backwards... Please a clear explanation of the step and process... or loosely, how ever you feel like writing it.So again +=i + is the same as 1=0, so than the second time around 1=1 and the last time around for x[[2] 1=2.. Right? ...That can't be right... Where are the number coming from! Please explain.
  20. I have another question, but don't really want to make a topic for it, for I feel like I'll be spanning then. Please consider having a tutorial help section... Yes I know that what this is... but I see that it seem most people are asking of complicated programming question here, not really any simplex. If all in all, than please tell me if this would have been okay to make another topic to ask this so I can feel less caution about having to worrying about spanning, please. In this problem, I don't want to use document.write so I try this:<!DOCTYPE html><html><body><p>Hello World!</p><p>The DOM is very useful!</p><p>This example demonstrates the <b>length</b> property.</p><p id="para3"></p><script>x=document.getElementsByTagName("p");for (i=0;i<x.length;i++){document.write(x.innerHTML);document.write("<br>");}</script><script>x=document.getElementsByTagName("body");for (i=0;i<x.length;i++){y=document.getElementById("para3");y.innerText=(x.innerText);}</script></body></html>It's printing out to the page, but not the same. I'll be simple if you could copy this and past it in: http://www.w3schools.com/js/tryit.asp?filename=try_dom_nodelist_length <-- Here! Try it yourself page, to see what it is I am referring to.
  21. Oh... I through I was okay cause of the function name... I give up to soon... go back through the HTML tutorial!!!???? .... Not a bad ideal, I already went through them, so now I'm just going back over JavaScript to make sure I have a good foundation underneath me before I move on to php. I did jQuery too, and also plan on going back over that too. Matter fact after this go over with JavaScript, I'm going to go through the example one by one, as I rewrite them underneath them. If I'm still lost.. not really lost, but not have a basic understanding for each of the few components of JavaScript. Than I'll go through the reference, and more tutorial. Really I'm reading books, and doing other tutorial. I want to make a game with HTML5, CSS3, and JavaScript(+ jQuery). I want to make this game I have in mind with these components. Thank you both for the feed back on what I did wrong. Likes for both of you! Thanks!
  22. the second input field want work, and the function by the look of it seem to intertwine with each other by typing in the first field than clicking out nothing change But than when typing in the second field, and than clicking out the letter change; depending on the last letter in the first input field, if capital lower case, if lower case capital.<!DOCTYPE html><html><head><script>function myFunction(){var x=document.getElementById("fname");x.value=x.value.toUpperCase();}</script><script>function myFunction1(){var y=document.getElementById("fname");y.value=y.value.toLowerCase();}</script></head><body>Enter your name: <input type="text" id="fname" onchange="myFunction()"><br><br/>Enter your name: <input type="text" id="fname" onchange="myFunction1()"><p>When you leave the input field, a function is triggered which transforms the input text to upper case.</p></body></html>I have another question to ask too. What is this font, it's very easy to read. The one you are looking at that is being displayed, not the editing version.
  23. True. Thank you. Truthfully that what I been doing... I'm in the process of going back through the JavaScript tutorial. I'm going to gain a strong foundation of JavaScript before I have more. I went through it ones along with jQuery, and through a few of other tutorial.Are you a programmer? I mean as in a career?
×
×
  • Create New...