558 Posted Topics
Re: Try this: _.radios.onclick=function(e){ e=e||event;e=e.target||e.srcElement; e.value==="1"? _.divtext.style.display="none": _.divtext.style.display="block"; } !Dependency: The [UnderDot](http://www.daniweb.com/web-development/javascript-dhtml-ajax/code/433583/the-underdot-platform) Platform (provided on the link). | |
Re: I think that you are having a *"soft refresh"* instead. To get a *"hard refresh"*, you'll have to ***"Shift + F5"*** it! | |
# This is a simple HTML String Sanitizing tool. # ## It allows a highly rich,- but safe - html content input to be published on your pages. ## **The script code is very light and to some degree customizable.** * This function takes care of blacklisted tags, which are … | |
Re: >Hello, i am making a keyboarding site for my class, and i have a div with some text inside, when they type, i want to check if the text matches the text in the div, if it dosn't, i wan't to update a box with an "error count". How can … | |
Re: can anybody explain to me what is the point of having a sleep function in JS, or in any other language for that matter? | |
Re: >They have no idea what they are typing all they see is black dots as well since it is "hidden" This is not a particularly security sensitive area and we would MUCH rather these were visible to the people typing them. They get new ones every two weeks anyway. That's … | |
| |
Re: Try targeting an iFrame placeholder and populate it only after the page has loaded. ![]() | |
With this *Spartan*, we can destructively disable all the links on the page. (Or whatever link collection we feed the Fn.arg.) ![]() | |
Re: That's exactly what it sohuld return. You are trying to convert the string **" hey "** into a **Number**. Actually **NaN** is the result of the given conversion. var height = 55,newPositionValue = 12; console.log("Height is " + height + " New position value is " + newPositionValue + + … | |
Re: >automatically bookmark website **without asking user** No, thank you very much. | |
Re: Fx decided not to support mp3. but an 'ogg vorbis' copy might work. | |
Re: There's no JS built in method named "compact" in Array object or any other js Object for that matter. What does it mean anyway? What should >>array.compact<< do with it, to your understanding ? | |
Re: > Why would someone change the value of length property? > > what is the advantage of doing that? there are some good practical uses of it, but you haven't come to the point of needing them. | |
Re: JavaScript is more like a Poetry -- Everybody can learn it -- But only few may turn... *Troy III* | |
Re: > if(inputValues[elem] < 0 ){ you are comparing a string literal type of data (like: "", " ", "abc", "123") against dynamic data type of a numeral 0, or a Boolean(false) in HEX mode; -Which will always evaluate to false. if( "" < 0 ) //will aways return false because … | |
Re: You may need to ask yourself: "why would I want to (warn or) alert my client that his 'caps lock is on' as soon as he opens the page -even if he might have no intention of filling anything at all there?" Anyway, the plain answer is NO. | |
Re: > Any solution that don't use jquery...... only IE provides native support - other than that, there isn't any. | |
Re: No, there's no such problem on IE9. | |
Re: > amount += parseFloat($(this).metadata().amount); I think, the true solution is a: amount += parseFloat($(this).metadata().amount).toFixed(2); This makes sure you get: [2.50] kind of values. | |
Re: right now ? listening to: http://www.soundcat.ch/radio.php?cat=alternative [ you'll beable to download the ones you like and of course skip what you don't like ] enjoy ... !/while in Beta/ | |
Re: <img onclick="changeImage(this,'/folder/images/23.jpg'); src="/folder/images/23_thumb.jpg" alt=""> <a href="theurl"> <span>this is it</span> <h3>This is it</h3> <p class="caption">lorem ipsum...</p> </a> | |
Re: First you need to disconnect the "ball" image from the document flow: using absolute positioning. | |
Re: This is easily done on IE using the FSO (file system object) locally. For Firefox you should look into XPCOM for which there are some libs like jslib and io.js that can be used. | |
Re: you can simplify this > function interpret(){ var a=null; a=document.forms["input"]["box"].value; if(a==null) { alert("Enter some text"); return false; } else { alert(a); return true; }} with function interpret(a){ a=document.forms['input']['box'].value; if(+a==0) alert('enter some text'); else alert(a); }; | |
Re: you can use text property instead of innerHTML and avoid [slow] string manipulation through js. like in: for (var idx=0; idx<preElements.length; idx++) { preElements[idx].innerText= preElements[idx].textContent= //firefox preElements[idx].innerHTML ; } | |
Re: I think that what you are looking for is in fact The DOM API. | |
Re: [QUOTE=MidiMagic;403008]Even if you could do that, Firefox closes so quickly that nobody could read it. If somebody clicks the X, they want to close the program now. They don't want it to do any more. If IE can do it, it is because IE has a nonstandard extension to web … | |
Re: That's some of the dumbest reinventions I've ever seen! Moreover it's against the core principles of web coding. Have you ever heard of CSS? i.e.: `visibility: hidden / visible;` or `display: none / block / inline-block;` etc? Evermore, w3schools are teaching you wrong HTML(5), Because in HTML(n) you don't have … | |
Re: here is a working demo without jquery, which doesn't use javascript either! And see what you cam make of it... http://www.daniweb.com/web-development/web-design-html-and-css/code/226127/pure-css-image-gallery-with-mouse-click-swap ps: use dhe updated code from the last post. | |
Re: Illustratively, and in a real world: it's as if you're trying to insert a matchbox in a stick, instead of the other way around; which is sane and you just might succeed in doing so. In virtual world 'physical properties' of 'things' are not that rigid. But there are reasons … | |
Re: > you didn't have to write all this code to load objects via xml; Apache commons digester is a library for OXM (object xml mapping). **we don't want to reinvent the wheel** now do we. I think we do, Crockford already did, (think JSON). | |
Re: well, not in my case :), especially when it comes to js + css animations, IE versions are light years ahead. So to back this up - here is a code I wrote for IE4 (if I'm not mistaken); - Yes, it's that old... It weights less than 1KB and … | |
Re: According to the latest moves, it is Chrome who is besting Firefox, while IE is keeping its own. Firefox has fallen to 20% while Chrome has risen to 20% of the market share. Three months ago it was about (24% fx) by (16% Ch) ratio Meaning... Chrome is gaining exclusively … | |
Re: "Only Firefox 3.6 is fully compatible with our site, says eBay" I think that what (thee amateur) coder really meant to say is: - I've managed to write a site that fully works only on a single browser..., - that is: only about "20%" of visitors will be able to … | |
Re: OK Here is some explaining of it: var image1=new Image() //creating a DOM Image Element image1.src="Sunset.jpg" //assigning the source & preloading the image file(s)... var step=1 // creating a globally accessible counter variable; if(!document.images) // checking for images coll., existence; duck-converting the find into Boolean (true / false) return; // … | |
Re: > I want to access a remote VB application(located on server) on a client machine via HTML web page. > Is it possible? > > Is there any other way? > Actually initially they wanted an VB application to see punch details.Now they want to integrate it on local intranet … | |
Re: your Monitor is geting old... time to replace it. ps there's nothing wrong in the given screenshot | |
Re: (the code you've sent is not javascript) all methods are functions, properties may also be functions. In case of length, -it's not a property, it's a value which (in in turn, and in fact) is a result of (an internally) self-triggered function. | |
Re: [QUOTE=luisdanielmesa;1015826]i use a server-side script, when i logout i redirect to a page that autoredirects to the login page, then if i hit back i'll get redirected to the page that autoredirects to the login and so on (ad infinitum if i keep hitting back).[/QUOTE] Hey there! You sholuld use: … | |
Re: > Hello > > I'm trying to generate a JSON file with the JSON.Stringify, but, the quotes that are generated by my code o are not compliant with the json format. It's generating smart quotes to the left like (“object”:“pair”) instead of ("object":"pair") > > Does anybody knows how to … | |
Re: How about: var d=[]; d[1] = [2,17,18,19,20]; d[2] = [2,18,19,20]; d[3] = [2,18,21,19,20]; d[4] = [2]; d[5] = [2,18,19,20]; d[6] = [2,18,21,19,20]; //etc.. alert(d[value][0]) will this do what you are aiming for? | |
Re: what do you mean by var module = instance || {}; is it deliberate? | |
Re: I'm not being able to understand what would "jQuery Object" mean exactly, since I don't use it. But... I suppose that when referenced upon - these jq., dom objects - are somehow wrapped by it enabling you to use few or more extra methods not available on DOM api, - … | |
Re: >Javascript .style= overides CSS Hover? Exactly! That's what it should do. -Its an expected standard behavior. | |
Re: you are using a wrong doctype use the damn standad! | |
Re: yes it would. check for the >>line<< and >>source<< of the "error code" and go get that string corrected. p.s.: you don't even need the error console to tell you where to look, because its the file and the line of code you or someone else added or modified just … | |
| |
Re: remove the code that forces focus to move to the next field will do |
The End.