-
Posts
788 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by L8V2L
-
-
From what I can tell
var nul = null;//nullvar nu0;//undefinedvar num = 0;var t = "truthy value";var f = ""; function findValue(li) { var sValue; console.log(li); if( !li ){ console.log("Not Found!" + " " + li); alert("Not Found!" + " " + li);} else if( !!li.extra ){ var sValue = li.extra[0]; } else{ var sValue = li.selectValue; } // console.log(sValue); }findValue(f);findValue(t);findValue(num);findValue(nu0);//errorfindValue(nul);//error/* function findValue(li) { console.log(li); if( li == null ){ return alert("Not Found!");} if( !!li.extra ){ var sValue = li.extra[0]; } else{ var sValue = li.selectValue;} *//* function findValue(li) { var sValue; console.log(li); if( li==null||undefined){ return(alert("Not Found!"));} else if( !!li.extra ){ var sValue = li.extra[0]; } else{ var sValue = li.selectValue; } console.log(sValue); }*//* function findValue(li) { console.log(li); if( li == null ){ return alert("Not Found!");} if( !!li.extra ){ var sValue = li.extra[0]; } else{ var sValue = li.selectValue;} */
Initialize it with a empty string In php if it don't have a value on return period.Make sure you have your console open. I'm on my phone looking over this in a emulator.And you did look at the code I gave you properly; take out the invoke findValue(); part.Then try it again with that code.If don't work, edit this one to be put in place of that one. -
Give me the value in the variable to work with, so I can imitate what you are trying to do.it is alerting "Not Found!" only when the page loads. but not if there is no match /////////////////////////////////////////// its still the same....
-
shadowing variables, what it mean? :-)
-
If my suggestion help you in any manner, do you mind telling me when you started learning js, and what books have you read?Needing some help. Fairly new to JS.
-
He must be saying to him the way it cut back to the image is cheap.What if you fade back to the image as the video is finishing?Or... If it's your video, have an ending scene fading to the image and then cut back to the picture.And even if it's not your video, downloaf and do so.Your the direct of this. Do what ever you wish.This is the webpage? http://www.dittodc.com/ The visuals do not work for me at all, with FF30 and my flash-blocker. All I can hear is the narrative with the screen essentially black. The ended event seem to be available to do whatever you want when the video completes. I don't understand what you mean by "cheap."
-
Try this:function findValue(li) { if( li == null ) console.log(findValue(li)); return alert("Not Found!"); if( !!li.extra ) var sValue = li.extra[0]; else var sValue = li.selectValue; }
still nothing...."use strict";function findValue(li) {"use strict"; var result; var sValue; if( li == null ){ //result = (findValue(li)); //<= stack limite reach alert("Not Found!"); } else if( !!li.extra ){ sValue = li.extra[0]; result = sValue; } else{ sValue = li.selectValue; result = sValue;} return(result);}findValue(); // alert => Not Found!
-
Do you have a DTD set up? Or schema?
-
You can defind a default namespace by xmlns="uri"Yes, attribute, child element, and even halfway through the document can have different namespace.I myself is below novice rank in this art, but am constantly studying.Read up on namespace, the Internet is full of resoruce. Tutorials are good for getting your feet wet, but that's all it's good for.
-
-
No one be in the xml thread.... But I'll try.If anyone cares to give you a helpful response, they will do so regardless of where your question is. Notwithstanding the fact that you're asking about XML books in a Javascript thread that doesn't have anything to do with XML.
-
You're absolutely right. Just got me a unhelpful response.Asking the same question more than once isn't going to get different answers.
-
Do anyone have a suggestion for an xml book?!
-
x-p <== addresses that!Uhh.. not really. I have a job you know, I'm not just sitting here posting on a forum all day. If you have specific questions I can try to address them. I'm not going to sit here and type out an entire tutorial though.
-
JSG is giving you some great resource, but if you had or have your heart out to learn CSS and HTML, then do so. Those language are the structure of the web(in my opinion) programming isn't just a skill to learn(it's a life style to live by( in my opinion). More so I see it as a community of different sub-communities standing behind different language helping each other. I came into this world blind on the language I should learn, so far I am happy with what I choices. Follow your sense, the language(in my opinion) imitate the programmer persona. Etc, etc , etc. have fun learning.Uh Well...Currently learnt HTML5,CSS..learning Jquery...Its just I will learn anything which will help me in future for getting a job ..
-
Do anyone know any good xml books out there. I search, and came up with nothing but bad comments on the book. And it seem to be that there is no recent printing of the topic.
-
More so you'll have to help yourself. We'll help when can, but we're not going to hold your hand. There are many books you could read, if you have a question post it. But other than that, when it come to programming it's more of a self taught process. But like I said, if you have a question, ask in one of the appropriate forum's topic area.So fellow novice, what sorcery language/languages are you learn, or aiming to learn?
-
I'm still learning myself. Make sure the formats right, validate it, if you haven't already. Rewrite it. Go over the material.
-
JSG, could you give me your knowledge on prototype and constructor function?I have question, but it's more of a discussion then a straight out asking manner.If anyone would like to do the same Davej, and the others, you are more than welcome to do so.
-
With this much detail, you'll do better going to stack overflow site to get help with this.
-
I really don't know. I see this all as wizardry; I myself is aiming to be a master wizard at JavaScript, and knowledgable in the sorcery art of html, css, xml and the likes.So I don't know much at all about sax and only read in passing of it.If you could detail all languages you are sorcerying in, I can have a better ideal of what to tell you, or how to help/guide you.Thanks, I am quit surprised that no one has used JAXB to readin inclusions what do people use? Or just don't have inclusions?
-
Thanks for the link! :-) I like your post for two reason. One, is to show my appreciation. And two is in the hope of this forums allowing it's user to browse by likes. So I can reference this again.You can't create a new attribute and have it automatically treated as an event handler without writing all of the code to monitor elements and set up those handlers. Ideally, if you are creating event handlers then you use Javascript to attach those events instead of putting them in HTML attributes. You can create custom events and manually dispatch them on specific elements.http://www.sitepoint.com/javascript-custom-events/
-
And if you're like me(refer to signature that will refer you to picture) you can exclude yourself from the world, and as they said, obsess over programming.
-
XPath and xQuery, more example please. I feel this site is great for creating your feet wet as stated many times. Even if. Some of(mostly all) the example are mimic from books(most online tutorial are.) w3s have a nice simplicity of presentation.Please!!!!!! You guys don't have to do a good tutorial on nodejs or mongodb, just an introduction would be nice with a few example. Please!!!! Get a portion of the tutorial from the sites themselves and transform them into w3s style. Please!!!!! Code academy teach other language. Please!!!!!!Finally... What is this: What is this: w3ctutorialCan someone explain to me what is this?
-
I agree with what ever this is! More tutorials and examples!!!!
jquery autocomplete
in JavaScript
Posted · Edited by L8V2L