558 Posted Topics
Re: 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 … | |
Re: [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 … | |
Re: [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 … | |
Re: 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. | |
Re: you need to do something of this sort: [CODE]var timer = setTimeout( function(){ ...actions...; clearTimeout(timer)},1000);[/CODE] | |
Re: I suspect that FX is reading it from the cashed value. | |
Re: [CODE]str = (/*b.b. Troy III p.a.e.*/String(str).split(/\s+/).join());[/CODE] | |
Re: [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" … | |
Re: [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' … | |
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] … | |
Re: what browser are you testing this on? | |
Re: [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 … | |
Re: 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 … | |
Re: 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. | |
Re: [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 … | |
Re: [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] | |
Re: [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: … | |
Re: [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 … | |
Re: 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. | |
Re: [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 … | |
![]() | Re: Try your code with: [iCODE]<!doctype native>[/iCODE] instead of whatever doctype you are using currently and you're a go! ![]() |
Re: Yes but what is the problem? !!! | |
Re: > 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 … | |
Re: [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. | |
Re: [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 … | |
Re: [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 … | |
Re: 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 | |
Re: [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 … | |
Re: [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) ) … | |
Re: [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. | |
Re: 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. | |
Re: [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 … | |
Re: 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 … | |
Re: Just don't specify its height. [and why do you need to use that godamn xhtml when working on HTML?!!] | |
Re: @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] | |
Re: [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"; … | |
Re: [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] … | |
Re: Great news... I'll be soon switching back to IE8. Thanks! | |
Re: 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. | |
Re: [B]onbeforepaste[/B] event anybody? | |
Re: 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 = … | |
Re: 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> … | |
Re: The [B]execCommand([params])[/B] could make you happy. | |
Re: 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 … | |
Re: Can you make firefox or any thing else for that matter understand what poEvent is, if it is, for whatever it is, first?! | |
Re: 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(){ … | |
Re: 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. | |
Re: Try referencing with: [CODE]opener.document.forms['f1'].p_name.value = document.forms[frm].c_name.value[/CODE] | |
Re: 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 … | |
Re: [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 … ![]() |
The End.