15,127 Topics
| |
Hi, I've looked online for a few days but haven't been able to find an adequate solution. I'm just trying to use javascript to validate that a password doesn't contain user data (first name, last name, etc...) I really thought it would be simple. Here is what I'm using: function … | |
Hi, I am trying to make a click counter. The prolem is the onClick part in button code. If i made it so it was "click();" and placed the var clicks into the function click then it would kind of work. But when I pass a variable into it.. it … | |
running into an issue haven't seen this before where content during the encoding and decoding of an image looses byte count. I have an app taking the photo image and sending the file via: ----------------------- byte[] imageBytes = new byte[(int) imageFile.length()]; inputFile = new RandomAccessFile(imageFile, "r"); inputFile.read(imageBytes); String base64String = … | |
Hello guys! I'm trying to change an element background color when my mouse goes over another element. As far as I know CSS, this seems to be impossible to do only with CSS, so what kind of js I need to do this? My knowledge in JavaScript it too limited … | |
Guys help me with this code. I don't know what to do. I have 2 div the 1st is in the left and it has a button and on the other div is to show/display when I click the button on the 1st div. <html>// this is my index.html <head><title> … | |
Hi there, I'm reading a book on Javascript and trying to understand a few concepts that are about hasOwnProperty(), propertyIsEnumerable() and isPrototypeOf(). I don't understand when and how these methods are used. That would so appreciated if someone can explain them to me in a nutshell. This example is from … | |
Hi, I just started javascript. I want to put a radio button into an array I have done this so far: var blocks = new Array("<input type="radio" name="" value="1">","2","3","4","5","6","7","8","9"); however this isn't working. I suspect that I need to change the 'mode' to html somehow? <html> <head></head> <script type="text/javascript"> // … | |
How to fix position of first div at **center** and add more div **around first div** as per requirement, to, **left, right, top and bottom** and scroll to that div using fix navigation at top of page | |
| I'm trying to use remote data source autocomplete, I have a code that works. I'm returning an id column from a db table. what I'm trying to do is to have the autocomplete display 2 values from the table row, for example id1 - this is id 1 id2 - … |
Helo Daniweb, I am in the process of building a WYSIWYG text editor, in an attempt to understand how they work. I am a novice at JavaScript, however what I have learnt so far seems to make sense. The problem comes when I try and change the text rapidly, if … | |
| I want to display divisors of a number in a text box using loop. But their is some error in my program.I need help to correct it. `<html> <head> <script> function CheckDivisors() { number=parseInt(document.divfrm.num.value); d=1,sp="\t"; do { if(number%d==0) { document.divfrm.div.value=d; document.divfrm.div.value=sp; } d++; } while(d<=number/2); } </script> </head> <body> <form … |
I want to change an image in another place on my site when I click on the page title. I have tried doing different codes five ways to Sunday and cannot figure it out. Can someone help? Here's my code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta … | |
how can i integrate the codes to make it loop infinte sir/ma'am? i'am a total newbiew, thanks in advance. :D <script langauage="javascript"> col=255; function fade () { document.getElementById("fade").style.color="rgb("+ col + "," + col + "," + col + ")"; col-=5; if(col>0) setTimeout('fade()',25);} </script> | |
I found this example online and cannot figure out why it will not work. I was wondering if anyone could help me figure out why this code does not work ive spend a few hours tinkering with it and no luck. I learn best by example and just basically need … | |
Hi all, I have recently built a website using wordpress and I have noticed that wordpress adds some classes to my html tags automatically. I asked for support in their forum, but nobody got back to me, so I was hoping somebody could she some light on this? SO I … | |
How to display text string with Javascript on screen? This is my test page: [CODE]<html> test <script type="text/javascript"> docwrite(1); document.write('hi'); docwrite('hello'); </script> docwrite(2); <script type="text/javascript"> function docwrite(x) { document.write(x); } </script> </html> [/CODE] I saw only "test docwrite(2);". I want to see "test 1 hi hello docwrite(2);" with " 1 … | |
how in a canvas HTML5 I can add more than one image,... is any stack order? how many images overlap and seem all or part of them, can have in canvas? canvas or an image can saved in localStorage html5? | |
Hey there. The situation is like this: 1. The user clicks a button. 2. Tooltip pops up. 3. The user clicks the button again OR the user clicks anywhere outside the tooltip. 4. The tooltip is removed. Now I can get either of the events described in step 3 to … | |
Can any tell me ReadOnly Status os Excel Driver... I want to read from and write into Existing Excel Sheet.. Am using ADODB.Connection and ConnectionString as "DRIVER=Microsoft Excel Driver (*.xls);DBQ=FilePath;ReadOnly=1;" in javascript.. Here ReadOnly=1 indicates the connection to be established in read only mode.. If I put ReadOnly=0, then Is … | |
I want to split the image equaly by vertically. This images should be in slideshow. Then give the link to that two parts. Left side link is for moving to previous slideshow and right side link is for moving to next slide. Anyone can help? Please! | |
Hello I have a code and on page load it gets clicked, I see by alert for example. The problem is it send not needed ajax request. Its hard to find origin clicker by hand. Is there a way programically detetc who clicked the class? //Delete all event from betting … | |
I have an ASP page written in JavaScript that writes a CSV file into a database table. while (!oFile.AtEndOfStream) { var s = oFile.ReadLine(); var sArr = s.split(","); var sPostcode = String(sArr[0]).replace(re, ""); var sSuburb = String(sArr[1]).replace(re, ""); ...stored procedure to write into database... } It works fine for smaller … | |
I have this function which fades in a main menu when scrolled more than 100px. $(document).ready(function() { $(window).scroll(function () { if ($(this).scrollTop() > 100) { $('#main_nav_fixed').fadeIn(500); } else { $('#main_nav_fixed').fadeOut(500); } }); }); It works fine, but if the user scrolls fast up and down lets say 10 times, and … | |
Using an onclick event I'm checking some radio buttons to make sure the correct one is pressed. That part works OK and generates an alert if the correct button isn't pressed. The problem is that the form is still processed even when I return false from the javascript function. I've … | |
I noticed something today about Arrays in JavaScript that struck me as a bit odd. I imagine there is an easy explanation that will make perfect sense when I hear it, but until then I thought I would ask the community. If I use an Array as the sole component … | |
When tracking links, do i need to put this code at the end? return _gaLink(this,'#'); What exactly does it do? My understanding of this is not clear. Here is the full code: <a href="#" onclick="_gaq.push(['_trackEvent', 'Email Link Clicked', 'exampleurl.org/';, '#']); return _gaLink(this,'#'); ">exampleurl.org</a> Thanks | |
I was created a table with <table> tag and id is 'calendarid'. In this each td contains a textbox and an image. Some textboxes contain value and some are empty. I want to hide the image where textbox contains no value(or empty).I have used following java script code to do … | |
Hi, I have an IFrame. Good. And I have a Canvas as well. Good again! The user can write on the IFrame as I set the design mode ON. I am using document.execcomand to do the stuff, just like a simple text editor. I do not have issues on this. … | |
Hi everyone, I am trying to compile a sencha touch 2 project to build an android app but it doesn't compile fully and successfully. When I run this command, `sencha app build native` targeting android/iOS platform. The error I get is as follows below: [WRN] [ [1000] : Yui Compressor … | |
| i have a div and an icon, i connected the 2 with toggle() <img .... onclick=" jQuery('#my_div').toggle();" > it works great, but how do i hide the div (once it's visible) when other area on the screen is clicked (besides the icon)? basicly what i need is <div id= 'my_div' … |
The End.