558 Posted Topics

Member Avatar for Punny

Unless you create a snapshot image of every page of interest to be displayed on hovering a link to it, there would be no benefit in doing so, because every other mean would require an actual download of the target source before you get it displayed on whatever you may …

Member Avatar for Airshow
0
110
Member Avatar for mombasageek

[QUOTE=mombasageek;1749284]am having trouble with this small java-script problem how can i make a link button clickable after an event lets say clicking a check-box or another button ...example when you want to install a software you see the next button but can not click it until you check the check-box …

Member Avatar for Troy III
0
137
Member Avatar for kutchbhi

[QUOTE=kutchbhi;1747022]The situations: I have text in a var, that I am assigning to the innerhtml of a 'p' tag . The text has whitespace at the end. The problem: The last whitespace isn't rendered, by p tags. IT is ignored. Is there a tag other than the pre tag, that …

Member Avatar for Troy III
0
176
Member Avatar for learner guy

Try var x=xmlDoc.getElementsByTagName("CD"); alert(x) If your alert doesn't contain what you asked for, it means that your xhtml request failed. So you should examine your xmlhttp request code in more detail and see if its complete.

Member Avatar for Troy III
0
1K
Member Avatar for minitauros

you need to do something of this sort: [CODE]var timer = setTimeout( function(){ ...actions...; clearTimeout(timer)},1000);[/CODE]

Member Avatar for Seesharp
0
6K
Member Avatar for teamjea
Member Avatar for kristo5747
Member Avatar for Melow

[QUOTE=Melow;1739828]Hy, I need to get the full path of a file trough JS/Prototype and all i get is the name file. From what I read on the web this is a security issue and it is not allowed. But still, is there a way?[/QUOTE] The question is "where" "which file" …

Member Avatar for Melow
0
161
Member Avatar for riahc3

[QUOTE=riahc3;1741924]I have this code: [code] <html><head><title></title></head><body><form id='formulario' action='index.html' method='post'><label>Ancho </label><input type='text' name='ancho' id='ancho'><br ><label>Alto </label><input type='text' name='alto' id='alto'><br ><label>Izquierda </label><input type='text' name='izquierda' id='izquierda'><br ><label>Horizontales </label><input type='text' name='horizontal' id='horizontal'<br ><label>Verticales</label><input type='text' name='vertical' id='vertical'><br ><label>Crucero </label><input type='text' name='cruzero' id='cruzero'><br ><label>Marco </label><input type='checkbox' name='marco' id='marco'><br ><label><input type='radio' name='RadioGroup1' value='1' id='piezas'>Piezas</label><br><label><input type='radio' name='RadioGroup1' value='0' …

Member Avatar for Troy III
0
168
Member Avatar for Troy III

This is my first post of a type: "question", so bare with me... I need to obtain a list of supported events on an encountered browser version programmatically, ie, via script. Since Explorer exposes its events on document object I can do something as simple as this: [CODE];for(x in document)if(/^on/.test(x))alert(x);[/CODE] …

Member Avatar for Troy III
0
112
Member Avatar for Microno
Member Avatar for azegurb

[QUOTE=azegurb;1736166]Hi all, I have taken tutorial from net. but i didnt understand one thing correctly what does this [CODE] done:function(f){ postaction=f || postaction //remember user defined callback functions to be called when images load }[/CODE] and what does || sign mean there. Thanks for attention! here is [CODE]function preloadimages(arr){ var …

Member Avatar for azegurb
0
111
Member Avatar for Julia25

Forget about scripts - all script event solutions are jerky and ugly These tasks are possible but they are all imperfect. Even though, a css solution if not perfect - it is at least smother. I'm giving this solution away because..., because - you'll get a: Super-fluid Layout [they say …

Member Avatar for Troy III
0
316
Member Avatar for Virangya

If you plan to learn scripting any time soon, you should first forget about its wrappers. [CODE]var divstoclear = document.getElementsByClassName("subsubmenu"),x; for(x in divstoclear){divstoclear[x].innerHTML=""; [/CODE] * using innerHTML property here because you don't want empty elements pilling.

Member Avatar for Virangya
0
584
Member Avatar for Julia25

[QUOTE=Julia25;1732856]i found a script which works on the image, but i wish instead of image it uses div [CODE]<html> <head> <title>Image</title> <script type="text/javascript"> function resizeImage() { var window_height = document.body.clientHeight var window_width = document.body.clientWidth var image_width = document.images[0].width var image_height = document.images[0].height var height_ratio = image_height / window_height var width_ratio …

Member Avatar for Julia25
0
398
Member Avatar for divsok

[CODE] <!doctype native> <html> <head> </head> <body> Font Size: <select id=fontSize> <option>10pt</option> <option>12pt</option> <option>14pt</option> </select> Font Family: <select id=fontFamily> <option>Arial</option> <option>Verdana</option> <option>Georgia</option> </select> <div id=myDiv> some div </div> <textarea id=myTextArea> some text content </textarea> <script> fontSize.onchange=fontFamily.onchange=setTarget; setTarget=[myDiv,myTextArea/*etc*/]; function setTarget(x){ for(x in setTarget) setTarget[x].style[this.id] = this.value; } </script> </body> </html>[/CODE]

Member Avatar for Troy III
0
344
Member Avatar for kutchbhi

[QUOTE=kutchbhi;1732057]The following sets a keydown event, preventing further input when a condition is achieved. [CODE]<textarea rows="5" cols="30" onkeydown="return checkLength(this)"></textarea> <script type="text/javascript"> var maxLength = 30; function checkLength(elem) { if (elem.value.length == maxLength) { return false; } return true; } </script> [/CODE] 1. IN the above I don't understand this part: …

Member Avatar for Troy III
0
124
Member Avatar for z3o

[QUOTE=z3o;1730262]I got this error while trying to view my websites on Chrome after reformatting my OS (Windows Vista Ultimate 64bit). I noticed I cant view my adsense ads from my laptop, but I can see them on iPad, so it might have something to do with my Google Chrome browser …

Member Avatar for Airshow
0
519
Member Avatar for cjohnweb

I understand your frustration, but cant debug somebody else's libraries. Sometimes it gets complicated debugging pages relying on libraries you wrote yourself. But accessing your site from any other link other than the 404 error related works just fine.

Member Avatar for cjohnweb
0
188
Member Avatar for suhaildawood

[QUOTE=suhaildawood;1727132]I am having some trouble with this code. I want have an onclick function on a div and I want to call this function. Only the 'if' section of the code works. If the #about opacity is anything other than 0.47, it still executes the 'if' code, but not the …

Member Avatar for suhaildawood
0
1K
Member Avatar for jpknoob

Try your code with: [iCODE]<!doctype native>[/iCODE] instead of whatever doctype you are using currently and you're a go!

Member Avatar for jpknoob
0
290
Member Avatar for Xtremefaith
Member Avatar for eawade

> Ok, this is my final tango with this. Below I've listed the code. I'm able to get the value of the url and display it on screen for the current (active tab) in Google Chrome. Now all I have to do is pass that value as a parameter in …

Member Avatar for Troy III
0
313
Member Avatar for nizam27391

[QUOTE=nizam27391;1725681]Hello ALL..Emmmmm..:-/ Simple Quest.. Is it possible to make the awesome homepage slider/the hover things of Adidas.com using Jquery or maybe Ajax? I'm really2 like it..[/QUOTE] Nope, [url]http://www.adidas.com[/url] is 99% flash based.

Member Avatar for Airshow
0
200
Member Avatar for Dauthuzen

[QUOTE=Dauthuzen;1727613]How do I add a different font type to each of the sting below in JS... [code]var conf={ rotors:[ ['Q','W','E','R','T','Y','U','I','O','P','A','S','D','F','G','H','J','K','L','Z','X','C','V','B','N','M'], ['P','O','I','U','Y','T','R','E','W','Q','L','K','J','H','G','F','D','S','A','M','N','B','V','C','X','Z'], ['Q','A','Z','W','S','X','E','D','C','R','F','V','T','G','B','Y','H','N','U','J','M','I','K','O','L','P'], ['P','L','O','K','M','I','J','N','U','H','B','Y','G','V','T','F','C','R','D','X','E','S','Z','W','A','Q'], ['Z','M','X','N','C','B','V','A','L','S','K','D','J','F','H','G','Q','P','W','O','E','I','R','U','T','Y'] ], reflector:[['P','L','O','K','M','I','J','N','U','H','B','Y','G'], ['V','T','F','C','R','D','X','E','S','Z','W','A','Q']] }[/code] I would like to change font for each seperate string[/QUOTE] JavaScript doesn't bother itself with data presentation, you don't need js for …

Member Avatar for Airshow
0
188
Member Avatar for kemkoi

[QUOTE=kemkoi;1727320]Okay so here's my problem: I've made this navigationbar in Adobe Fireworks and I put in the code into my index file. Everything works, when I mouseover it changes color and when I click it changes color but now I want to make links to these buttons. So here's the …

Member Avatar for Troy III
0
109
Member Avatar for strRusty_gal

Use: [iCODE]<!doctype native>[/iCODE] and try this -it might even work. [CODE]field.onpropertychange=//when perfection comes to play field.onkeyup= function(v){this.value=(v=Number(this.value))?v>50?50:v:""}; [/CODE] [ICODE]<input id=field ...>[/ICODE] Regards

Member Avatar for Troy III
0
3K
Member Avatar for paresh_thummar

[CODE] var InfoArray = [COLOR="Red"]new Array();[/COLOR] for(i=0;i<5;i++) { InfoArray[COLOR="red"]['name'][/COLOR] = "ABC"; InfoArray['id'] = "A123"; j = i+1; $('#selectorName').after( "<input type='text' id=[COLOR="red"]'[/COLOR]txt"+j+[COLOR="red"]"+[/COLOR]"onFocus=prePopulate('txt"+j+"[COLOR="red"]'[/COLOR],[COLOR="red"]'[/COLOR]"+InfoArray+"[COLOR="red"]'[/COLOR],(!and it all gets messed up)Hello','Hi');>");} [/CODE] 1. You have a "type mismatch" there - Arrays cant have Named Properties. But that shouldn't be a problem because Array is an …

Member Avatar for Troy III
0
147
Member Avatar for tqmd1

[CODE]var amount1='12,345,678.10'; var amount2='87,246,125.00'; /* ----------------8<---------------------- */ add= /*b.b. Troy III p.a.e.*/ function(a,b,s,z){ a=a.replace(/,/g,'').split('.'); b=b.replace(/,/g,'').split('.'); //avoiding js floats s=Number(a[0]) + Number(b[0]); s+= ((Number(a[1]) + Number(b[1])) / 100). toPrecision(2); z = new String((''+s)./* credit: Jeffrey Friedl */replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,")); z.numericValue = new Number(s); return z } /* ------------------->8------------------- */ console.log( add(amount1,amount2) ) …

Member Avatar for Troy III
0
301
Member Avatar for manc1976

[QUOTE=manc1976;1726631]That is perfect, Thanks Why does it work on FireFox the original way I had it?[/QUOTE] have you tried validating your previous html? do it -and you may find your answer there.

Member Avatar for Troy III
0
102
Member Avatar for sanityhien

I just read out the code, but didn't find any problems with it. I'm pretty sure your ajax call is not being served at all. You may have ran into some sort of a security issue.

Member Avatar for Troy III
0
304
Member Avatar for Violet_82

[QUOTE=Violet_82;1685967]Hi guys, I would like to add sth to my website but I am not sure what's the best way to achieve this. It is a kind of image gallery, say I have 10-20 images and I want to display all of them one after another one from the beginning …

Member Avatar for Violet_82
0
505
Member Avatar for dd2308

This little function will do your job [CODE]function ifChecked(form){for(x in form.elements)if(form.elements[x].checked)return!0}[/CODE] "Please select At least [1] Customer" Asserts and implies that the client is a complete retard or it at least is an ugly redundant overhead for both parties. Nobody will hit "delete" before deciding what to delete first. And …

Member Avatar for Troy III
0
297
Member Avatar for louie540

Just don't specify its height. [and why do you need to use that godamn xhtml when working on HTML?!!]

Member Avatar for Troy III
0
215
Member Avatar for smartness

@smartness [post#1] This will do just fine: [CODE]function ifChecked(form){for(x in form.elements)if(form.elements[x].checked)return!0}[/CODE]

Member Avatar for Troy III
0
3K
Member Avatar for GeekDude

[QUOTE=GeekDude;1686382]Ok. Then how can i get the context path.? I have a code like this. [CODE] win = open('/dnweb/pages/favorite.jsp','Print_Favorite_win',settings); win.focus(); break; }[/CODE] i have to change [CODE]/dnweb[/CODE] context as dynamically.[/QUOTE] You can use a variable value concatenation with the string path value. [CODE] var contextPath = ""; contextPath = "\/dnWeb2"; …

Member Avatar for Troy III
0
5K
Member Avatar for Dwillich87

[CODE] function toPower(o,n,i,x){ !n?(n=10,i=1) : i+=1; !toPower.x?toPower.x="":0 if( i <= n ){ toPower[i]= "<tr align=right><td>" + i + "<\/td><td>" + Math.pow( i, 2 ) + "<\/td><td>"+ Math.pow( i, 3 ) + "<\/td><\/tr>"; toPower.x += toPower[i]; return toPower( o,n,i,toPower.x ) } else{ document.write( "<table>" + x + "<\/table>"); } } toPower(0,15,0)[/CODE] …

Member Avatar for Troy III
0
90
Member Avatar for harveylester
Member Avatar for Dandello
0
149
Member Avatar for asif49

both scripts are using the same name variable -the seccond one overwrites the value of the first - therefore the first one will stop functioning because of the wrong value assigned by the second script. find it; rename it; solved.

Member Avatar for Troy III
0
59
Member Avatar for Moderns
Member Avatar for rinjin07

Hello rinjin07 you are using AJAX call in sync context. The "A" in AJAX stands for "Asynchronous" Therefore this code might get you walking: [CODE]var oReq = getXMLHttpRequest(); var xmlDoc; function getXMLHttpRequest(){ return new window.XMLHttpRequest; } function handleRequest(){ if( oReq.readyState == 4 ){ if( oReq.status == 200 ){ xmlDoc = …

Member Avatar for rinjin07
0
483
Member Avatar for PixelatedKarma

This is the fastest and shortest I can do for you: (The MDT/MST will depend on your clock settings. If you've chosen MST, MST display it will!) [CODE]<!DOCTYPE native> <html> <head> <title>Live Clock</title> <style> div { background-color: silver; border: 1px solid gray; padding: 1px 5px; border-radius: 4px; } </style> </head> …

Member Avatar for PixelatedKarma
0
146
Member Avatar for Pro2000
Member Avatar for web3

But why variables?! Why not a #table or arrays instead? 30+ variables only for vv?!! That's bloody expensive ... Why don't you try arrays like: [CODE]vv[num] = value[/CODE] Or even better, try explaining the goal you're after. Sometimes it's not the code or lack of a sufficient knowledge - its …

Member Avatar for Troy III
0
186
Member Avatar for f_atencia

Can you make firefox or any thing else for that matter understand what poEvent is, if it is, for whatever it is, first?!

Member Avatar for Troy III
0
418
Member Avatar for niche1

here is a simple working code for IE and alike: [CODE] <!DOCTYPE native> <html> <head> <title>a limited length textbox</title> <style> </style> </head> <body> <textarea id=txt rows=6 cols=40></textarea> <br> <input id=cnt size=3 value=30> Characters Remaining <script> max=cnt.value; txt.onkeyup = txt.onkeydown = function count(){ cnt.value = max - txt.value.length } txt.onkeypress= function(){ …

Member Avatar for Troy III
0
139
Member Avatar for jatpatel1

Send the html code of your "Currently I have an update button on each row where the user can update amended fields." module. Send the current working script) code associated with these buttons. We might be able to translate it to what you actually need.

Member Avatar for Troy III
0
345
Member Avatar for konradhoppe

Try referencing with: [CODE]opener.document.forms['f1'].p_name.value = document.forms[frm].c_name.value[/CODE]

Member Avatar for Troy III
0
146
Member Avatar for newbie14

can you describe the task u are trying to achieve (but from the user poin of view) and how - because I'm not being able to understand what needs to do what, nor how or why. why are those optons single/double, or what's the deal with the deleting precaution, cause …

Member Avatar for Troy III
0
521
Member Avatar for apanimesh061

[QUOTE=apanimesh061;1593021]What are window.onblur/window.onfocus used for ???? Please help ! Thanx[/QUOTE] The [B]window: [I]onblur[/I][/B] and [B][I]onfocus[/I][/B] are [B]events[/B] of a [B][I]browser window[/I][/B] which were used to determine if the app is in front or behind another app. This way web jerks were able to detect when you switched to another window …

Member Avatar for stbuchok
0
202

The End.