473,545 Members | 1,288 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.
4
29,495
thread by: wing | last post Jun 20 '06 by: danjam
Hi all, I find a JavaScript that limits the field length in a textarea, but it is not completed. The script does not handle the copy and paste case. For example, says the textarea field length is limited to 5 and a 6-character length text is pasted, no event is triggered. (The script only handles onKeyPress and onKeyUp)
2
29,468
thread by: Eli | last post Aug 22 '06 by: ozfred
HI! I made some quiz using one HTML form (few question with few radio-button each like potential answers) that have one Submit button. I would like to simulate click on this button (e.g. named "Finish") after some time, 10 minute or so, which be equal like click on submit button and terminate quiz (open another page or so). I tried to solve...
7
29,448
thread by: sathikbasha | last post Jun 25 '07 by: acoder
hi all, please help me..... is there any way to change the title in alert message box....
12
29,426
thread by: Assimalyst | last post Apr 30 '06 by: Dr John Stockton
Hi, I have a working script that converts a dd/mm/yyyy text box date entry to yyyy/mm/dd and compares it to the current date, giving an error through an asp.net custom validator, it is as follows: function doDateCheckNow(source, args) { var oDate = document.getElementById(source.controltovalidate); // dd/mm/yyyy
1
29,399
thread by: sachins | last post Jun 19 '09 by: acoder
I got this link from your site.. http://bytes.com/groups/javascript/90869-javascript-function-print-pdf-file I found following code to print pdf file from the link <html> <head> <script> function doit() { var x = document.getElementById("doodad");
17
29,377
thread by: santel_helvis | last post Jan 1 '06 by: Bisto Boy
Hi All, Could anyone tell me how to rotate the image in javascript. Which concepts I should concentrate to rotate the image
2
29,211
thread by: Aziz | last post Jul 23 '05 by: happymonster
hi, with the following anchor objeck: <a id="ref" href.......>...</a> this code: document.getElementById("ref").click(); works on IE 6 but not on Firefox 1.0 the error message is: document.getElementById("ref").click is not a function.. I'll be happy if you could tell me why and how to solve?
1
29,203
thread by: Prashant Joshi | last post Jul 20 '05 by: Grant Wagner
Hi all, I am using javascript to open a popup window. Is there any way we can disable the minimize button in this window? The maximize button is disabled. I want the same for the minimize button. Here is the javascript code that opens the window : child = window.open('NewWindow.aspx', null, 'width=850, height=450, directories=no,...
10
29,161
thread by: hardik | last post Apr 19 '06 by: Randy Webb
how i can set 3*3 array in javascript i have tried this but didnt work <Script> var a=new array() <\Script> but it didnt work.
7
29,126
thread by: FP | last post Jun 29 '06 by: FP
I'm new to Java Script. I'm displaying comments people have made. Below each persons' comment I want to add 2 buttons "Reply" and "Amend". Clicking "Reply" would display an empty text field below the comment with a spell check & submit button. Clicking "Amend" would display the same buttons & text field but pre-populated with the original...
7
29,124
thread by: Matt | last post Jul 23 '05 by: rh
How do you add up all the values in an array? The length of the array is variable. Is there a built in function?
7
29,012
thread by: Evan | last post Jul 23 '05 by: Michael Winter
I have a fairly simple problem that I just cant seem to figure out. I am trying to pass and use a div in a function. This is what I have so far... it doesnt work though... <script> function divControl(divName){ divName.innerHTML="test" } </script>
9
28,925
thread by: Sunny | last post Jul 23 '05 by: Thomas 'PointedEars' Lahn
Hi, I have cr8ed a javascript function in the head section of a jsp page. <!-- function go(theURL) { alert(theURL); if (theURL!=null){
5
28,906
thread by: zakjs | last post Jul 11 '11 by: Dean
I am trying to create a page that has a link or button that once you click it, a table or div will appear and all other parts of the page will be disabled except for the newly appeared table. An example of that is google.com/ig “Edit this tab” link. I have tried in vain to decipher Google’s code. If any of you know how to do it, please send me the...
2
28,868
thread by: AP | last post Jul 23 '05 by: Ivo
I am trying to find the integer value for the cursor position in a text box, in particular I want to find out if I am at the end of some text that I typed or at the beginning. I am using IE 6. Thanks, Andy
5
28,840
thread by: Velhari | last post Oct 1 '08 by: acoder
HI all, How to handle the event when the user selects Paste option from Edit Menu using Javascript. Please help me. Thanks, Velhari
8
28,831
thread by: Steinar Bang | last post Jul 20 '05 by: Steinar Bang
Is there a way to catch HTTP 4xx and 5xx errors occuring in an IFRAME? I want to replace the blue and white tomcat error pages, with a small discrete text saying "The page currently not available". The browser in question is Mozilla 1.3.1. But it would be nice if the solution also worked in Opera 7.x, and IE 5.x and 6.x. I know that...
8
28,818
thread by: Barkster | last post May 10 '06 by: Barkster
I have two functions on buttons onclick, they work but if the first fails the second still runs. How can I prevent this? Simplified Code below. Thanks Function Function1 () { if (something) { return false }
5
28,811
thread by: chuck | last post Nov 1 '05 by: Thomas 'PointedEars' Lahn
Hello, I am trying to figure out how to get a number (always an int) from a string. so if i have something like <input type="text" id="product13" name="product13" onblur="return somefunc(this);" /> then have a function somefunc(element){
10
28,777
thread by: skguine | last post Aug 2 '07 by: drhowarddrfine
I am new to using javascript in conjunction with css, so please bear with me.... I have noticed that on the ESPN site, as well as some others, they implement a nifty little script that allows the user to select a larger or smaller font size by pressing a gif of a smaller or larger letter (see http://sports.espn.go.com/golf/news/story?id=2463902...
4
28,727
thread by: Ralphz | last post Sep 19 '07 by: The Natural Philosopher
Hi How do I stop JavaScript execution when I encounter an error? Is there something similar to PHP's exit or die function? Thanks Ralph
4
28,682
thread by: valhalen | last post Mar 12 '08 by: valhalen
Hi, I am trying to redirect the user to another page (other than the previous one in the browser's history) when the browser's (IE's) BACK button is clicked. I found this snippet, but am finding it difficult in getting it to run :( if (history.previous) { document.location="page_to_go_bak_to.html"; } Could any of you please provide a...
5
28,646
thread by: thierryParent66 | last post Mar 3 '07 by: Isaac Schlueter
Hi. I am trying to load image from another domain and reading content. How an I get the Image array of bytes after loading it. What I want is to call a server (on another domain as the current page) with parameters then parse the image content to receive the server response stored in the image.
5
28,638
thread by: tcurrier | last post Jan 21 '07 by: acoder
Hello, Is there a way in Javascript to tell if a user has IE7 vs. IE6 ? Thanks for any help....
4
28,605
thread by: dipal | last post Dec 25 '06 by: b00tdash
i want to sen email using javascript but its not working using mailto

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.