558 Posted Topics

Member Avatar for Bremen Emeth

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).

Member Avatar for Bremen Emeth
0
3K
Member Avatar for ajay.motah

I think that you are having a *"soft refresh"* instead. To get a *"hard refresh"*, you'll have to ***"Shift + F5"*** it!

Member Avatar for ajay.motah
0
97
Member Avatar for Troy III

# 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 …

Member Avatar for Troy III
2
274
Member Avatar for zacharysr

>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 …

Member Avatar for Troy III
0
286
Member Avatar for felgall

can anybody explain to me what is the point of having a sleep function in JS, or in any other language for that matter?

Member Avatar for Troy III
0
363
Member Avatar for questorfla

>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 …

Member Avatar for stultuske
0
261
Member Avatar for Troy III
Member Avatar for Dani
Member Avatar for Troy3
0
2K
Member Avatar for Troy III

With this *Spartan*, we can destructively disable all the links on the page. (Or whatever link collection we feed the Fn.arg.)

Member Avatar for Troy3
0
185
Member Avatar for rotten69
Member Avatar for Violet_82

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 + + …

Member Avatar for Troy III
0
111
Member Avatar for vizz
Member Avatar for JorgeM
0
1K
Member Avatar for suavedesign
Member Avatar for rotten69

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 ?

Member Avatar for Taywin
0
1K
Member Avatar for rotten69

> 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.

Member Avatar for Troy III
0
288
Member Avatar for Stefano Mtangoo

JavaScript is more like a Poetry -- Everybody can learn it -- But only few may turn... *Troy III*

Member Avatar for Troy III
0
158
Member Avatar for rotten69

> 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 …

Member Avatar for Troy III
0
227
Member Avatar for Zagal

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.

Member Avatar for ssantoshreddy
0
106
Member Avatar for Khav

> Any solution that don't use jquery...... only IE provides native support - other than that, there isn't any.

Member Avatar for Troy III
0
151
Member Avatar for magicmarkuk
Member Avatar for magicmarkuk

> 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.

Member Avatar for Troy III
0
217
Member Avatar for sillyboy

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/

Member Avatar for Helianthus
0
5K
Member Avatar for Violet_82

<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>

Member Avatar for jwelsh
0
140
Member Avatar for rotten69

First you need to disconnect the "ball" image from the document flow: using absolute positioning.

Member Avatar for Troy III
0
184
Member Avatar for thak123

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.

Member Avatar for thak123
0
120
Member Avatar for user543820

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); };

Member Avatar for Troy III
0
203
Member Avatar for yehoshua2123

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 ; }

Member Avatar for Troy III
0
416
Member Avatar for rotten69
Member Avatar for rotten69
0
418
Member Avatar for deepthianns

[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 …

Member Avatar for alleen
0
3K
Member Avatar for |-|x

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 …

Member Avatar for Troy III
0
177
Member Avatar for bo0ga

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.

Member Avatar for bo0ga
0
1K
Member Avatar for Patiodude

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 …

Member Avatar for Troy III
0
211
Member Avatar for Aviras

> 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).

Member Avatar for Troy III
1
396
Member Avatar for Sanchixx

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 …

Member Avatar for Troy III
0
188
Member Avatar for EddieC

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 …

Member Avatar for Troy III
-1
312
Member Avatar for happygeek

"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 …

Member Avatar for Troy III
4
511
Member Avatar for willjohanz

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; // …

Member Avatar for Troy III
0
363
Member Avatar for profyou

> 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 …

Member Avatar for Troy III
0
127
Member Avatar for ben.matthews18

your Monitor is geting old... time to replace it. ps there's nothing wrong in the given screenshot

Member Avatar for Dani
0
124
Member Avatar for prem2

(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.

Member Avatar for Troy III
0
210
Member Avatar for chakrapani

[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: …

Member Avatar for SehswagGxx123
0
12K
Member Avatar for fantasma

> 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 …

Member Avatar for fantasma
0
300
Member Avatar for MysticalNomad

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?

Member Avatar for Troy III
0
194
Member Avatar for DavidAntaramian
Member Avatar for Dani

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, - …

Member Avatar for Troy III
0
8K
Member Avatar for Heinz Stapff

>Javascript .style= overides CSS Hover? Exactly! That's what it should do. -Its an expected standard behavior.

Member Avatar for Troy III
0
153
Member Avatar for Violet_82
Member Avatar for programmer12

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 …

Member Avatar for programmer12
0
288
Member Avatar for AdilJ
Member Avatar for mogaka
Member Avatar for Troy III
0
117

The End.