473,761 Members | 9,474 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Forum

JavaScript web scripting language - Ask questions about JavaScript development, jQuery, Vue, React, the DOM, cross-browser scripting, event handling, OOP, cookies, client-side form validation, built-in objects like Date, String, Array and Object, performance and more.
7
1,502
thread by: LugNut29 | last post Aug 8 '13 by: Dormilich
Hello, I have to validate that there is information and radio buttons have been selected. Also, I need to be able to reset the text boxes. When I click the submit button, it does not do the validation and when I click the reset button, it does nothing. Here's what I have, but it doesn't seem to work? Please help me with this. Thanks, Tom ...
4
3,899
KeredDrahcir
thread by: KeredDrahcir | last post Aug 6 '13 by: Exequiel
I have a loop which draws a 12 x 8 grid of 96 squares. I'm using a JavaScript function so that if a user clicks on a square it changes to red and if they click on it again, it will change back to black. What I want to do it prevent them from having more than 50 red squares at any one time. I have a function that does this kind of think with...
2
1,660
KeredDrahcir
thread by: KeredDrahcir | last post Aug 4 '13 by: KeredDrahcir
I have a division and I want to click on it to change the colour to red and click on it again to change the colour back to black. The code I'm using doesn't seem to work and I can't work out what I'm doing wrong. Can anyone help me? HTML <div style="width: 30px; height: 30px; border-style: solid; border-color: #ffffff; border-width: 2px 0 0...
1
2,959
thread by: LugNut29 | last post Aug 1 '13 by: Dormilich
Hi All, How do I create two JavaScript functions, one that will change the image's visibility to hidden and one that will make it to visible. I want to set the image's onclick attribute to call the hide function. This way, the image will vanish whenever the user clicks on it. Also modify this function so that it calls the other function after a...
2
3,157
thread by: Wesso | last post Jul 31 '13 by: Wesso
I would like to have a javascript that calculates all possible letter combinations of given letters with number of characters in the output. However, not the same letter from the given letters more than once, except it is in the given word more than once. For example: - Named letters "ABCDE" - Output letters are 4 - Results could be OKAY:...
1
1,385
thread by: omryk78 | last post Jul 29 '13 by: Dormilich
function createFunctions() { var result = new Array(); for (var i = 0; i < 10; i++) { result = function () { return i; }; } return result; }
0
1,304
thread by: alinfan76 | last post Jul 29 '13 by: alinfan76
Below is my code. It not running on IE..You may copy and try this code.. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" > <title>Untitled Document</title></head> <script language="JavaScript" type="text/javascript"> var i=1; function addRow() { var tbl = document.getElementById('table1');
1
1,198
thread by: omryk78 | last post Jul 28 '13 by: Dormilich
hello every body i have this code : <!DOCTYPE html> <html > <head> </head> <body> <script>
3
2,754
thread by: dvdljns | last post Jul 26 '13 by: Dormilich
I have a script that replaces the content of a container on a webpage. What I would like to do is browse to a file and select it. What I do now is type the info in but would like to automate it more. In asp I can browse to a file from my admin page select the file and it posts the first few lines of the text with a more link. can I do this in...
1
1,301
thread by: dvdljns | last post Jul 26 '13 by: Dormilich
I need a drop in script that will write links to all items in folder. I need it in javascript.
0
2,693
thread by: buggs2012 | last post Jul 25 '13 by: buggs2012
Hi Guru’s I need the help of an expert from this forum on my question below as it is well beyond the level of knowledge that I have for programming in JavaScript. Given the existing JavaScript coding below, how can I piggy back and add onto the existing coding so as to add functionality for a user to use their up and down arrow keys to...
1
1,732
Exequiel
thread by: Exequiel | last post Jul 24 '13 by: Exequiel
When I'm not use the Ext.Msg.confirm the ajax is properly process. but when i put the ajax inside of the confirm it does not work. . . how can i use the confirm in ext with ajax? . . Thank you :) Ext.Msg.confirm('Message', 'Delete this data?', function(btn, text){ if(btn == 'Yes'){ Ext.Ajax.request({ url: '<?php...
1
1,666
Exequiel
thread by: Exequiel | last post Jul 22 '13 by: gits
I don't know how to view data came from my php file to this grid, i'm using this url to use in json or ajax. url: '<?php echo base_url();?>index.php/process/saveme', can anybody help me to view some kind of data came from my php file? Ext.create('Ext.data.Store', { storeId:'listofUsers', fields: , data:{'items':}, proxy: {...
7
1,453
thread by: dhaval1993 | last post Jul 21 '13 by: Dormilich
i wanted to print name which is given by user dynamically. that is "myMother.firstname".but it does not work any more.please help me solve this. <body> <p>heyy</p> First name:<input type="text" id="fname" onclick="callme()"> <script type="text/javascript"> <!-- function person(firstname)
7
1,559
thread by: UKJohnny | last post Jul 17 '13 by: gits
Can anyone help me with a JavaScript problem? If you go to www.bidets4sale.com/test.htm you will see my webpage and if you right click on it you should be able to view the code. I have two scripts but if you click on the top button (the button 1 script) it executes the button2 script. How can I make both scripts work on the one page?
5
1,315
thread by: HUKHAN | last post Jul 12 '13 by: Dormilich
I have a show.php file which show all recoreds from database, i also added with every recored a button when i click it ,now i want when i click it then it show the recored in anothr table in that page and a button that submit it to the updation page. Only the specific recored will be update for which i clicked..
1
1,344
thread by: mshaheli | last post Jul 10 '13 by: Frinavale
I have 256 textboxs and I want to take values from that to an array and print it.
4
1,624
thread by: riplus0623 | last post Jul 9 '13 by: Dormilich
I am working on a problem and have been trying for several hours to get this to work. Basically, the form language was provided - I need to input JS code to produce the square root of the number that is inputted by the user and display it on the form. The form produces fine - the program not computing a result is my issue. Any help is...
5
1,339
thread by: riplus0623 | last post Jul 8 '13 by: riplus0623
I have a problem I am working on - any help is appreciated. An array (noted as arr) contains the numbers 1,2,3,4,5 If the following JS code is run, what numbers will be stored in the array? arr++; arr += arr; arr = arr / arr;
1
1,355
thread by: stockton | last post Jul 5 '13 by: gits
I have javascript as follows function newDoc() { window.location.href = "http://192.168.0.8/devit/logon.html"; } If I call this function from my javascript as follows newDoc();
8
1,956
Claus Mygind
thread by: Claus Mygind | last post Jul 5 '13 by: Claus Mygind
On my page I have 3 <div> tags. The first is my menu bar occupying 0 to 25px in height. This is fixed and will not scroll, as it should not. The second is my main body, which can scroll because it is greater than the visible height of the screen. Starting at 25px from top. The third <div> tag is a hidden rate table that I float in a...
0
1,254
thread by: Soldmyspacebar | last post Jul 4 '13 by: Soldmyspacebar
So right now my site looks like this http://oldtimesdaily.tumblr.com It has a facebook like box beside each post and if you scroll down it will continue. The problem is that once you reach another page, the like box disappear, and I have no idea what's causing it. When I use Chrome's source code function, it says that the like box is still...
6
3,016
thread by: cleary1981 | last post Jun 25 '13 by: nanjupuram
Hi, Can anyone tell me how I can get the users ip address and location? Do the ip addresses fall into different ranges per country or something?
6
1,349
thread by: moiz20 | last post Jun 24 '13 by: moiz20
I have table departments with three fields DeptID, DepartmentName and budgetcode. Departments value are populated in the dropdown menu. i need to fill the text box of budgetcode when department is selected. here is code for departmentlist is populated <select name="Department" id="Department" onChange="showText();"> <option...
1
1,404
thread by: waqaspuri | last post Jun 21 '13 by: Rabbit
help make additional changes in code that it should appear for once .. it keeps on coming on going back to the html page, I'm bad in ajax code. <script type="text/javascript"> // close the div in 5 secs window.setTimeout("closeHelpDiv();", 5000); function closeHelpDiv(){ document.getElementById("helpdiv").style.display="none"; }

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.