473,544 Members | 2,002 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.
2
896
thread by: Mtek | last post Jun 27 '08 by: GArlington
Hi, We are having some issues with out pages. We have a set of pages which interact with a MySQL database. The pages are written in PHP & Javascript. One page in particular works fine, all the time, in Firefox. However, in IE, the page only works the first time and never works again, unless we remove the temporary files.
1
897
thread by: Geoff Cox | last post Jun 27 '08 by: Geoff Cox
Hello, The code below works but can anyone suggest a better way of doing the following? The idea is that there are 3 images which when clicked each play a different sound and change to a different image. I want to have the user hear the sounds in sequence and also not to play the next sound until the previous sound has finished.
2
898
thread by: neogazz | last post Jun 6 '10 by: neogazz
If I program a webpage with AJAX, but the user disables "JavaScript" on his browser, will the AJAX code continue to work?
1
900
thread by: Tom Cole | last post Jun 27 '08 by: Tom Cole
The code section works just fine, but I want to see if A) I'm writing this type of code correctly, and B) I'm actually getting what I expect. The code looks like this (it is for mapping file extensions to the document types recognized by SAP's DMS): var Extensions = function() { this.types = new Array();
1
901
thread by: prasoonaraj | last post Oct 3 '07 by: dmjpro
when i click refresh by right clicking the mouse my jsp page has some records they are repaeting ir, last record whichever is inserted it's getting repeated how many times i click refresh can any one of u plz solve this query how to approach such a situation
3
901
thread by: Mtek | last post Jun 27 '08 by: Bjoern Hoehrmann
Hi, I just implemented some popup balloons that I got from this site: The first line in the HTML file is: <!DOCTYPE html PUBLIC '-//W3C// DTD XHTML 1.0 Strict//EN'> For some reason it screws up my centering and all sorts of stuff, my
1
902
Markus
thread by: Markus | last post Feb 22 '08 by: acoder
I'm writing something that loops through a form to check if any fields are empty. I got to this: function checkEmptyFields() { names = new Array("first_name", "last_name", "country", "city", "dob_d"); for (i = 0; i < names.length; i++) { el = document.almostdone.names.value; if(el.empty()) {
1
903
thread by: Gianni B. | last post Jul 23 '05 by: Gianni B.
Hi all...I am building a site that has a popup, 2 frame window - top frame is a page with the logo of the site, and the other frame is going to a news page on YAHOO. For some reason though, when I click any link on the YAHOO page, the next page escapes the frameset and the top frame with my logo disappears. This doesn't happen when I try it...
5
903
thread by: Chameleon | last post Mar 12 '06 by: Thomas 'PointedEars' Lahn
The following code works in Mozilla Firefox but not in IE. Where is the problem? ------------------------------ <HTML> <script> function hi() { html = document.getElementById('html').checked; alert(html); } </script>
1
903
thread by: drclue | last post May 29 '06 by: VK
I have a thought that I'm looking for some feedback on. I've created some infrastructure that works like googlemaps, and provides proxy services to a dedicated database , as well as facilities for WSDL inter operation, all phrased as javascript. The interface supports both XML/XSLT and javascript/AJAX approaches. I'm thinking of having...
2
903
thread by: CathInfo | last post Feb 28 '08 by: Markus
var s = document.getElementById('field'); var cust_cc_exp_month = s.options.value; // This displays the correct Value -- which is "0" for item #0 = "Please select..." alert("Month: " + cust_cc_exp_month.toString()); if (cust_cc_exp_month == "0") { // This code never executes! }
1
906
thread by: yuvaly | last post Feb 19 '08 by: acoder
Hi Is it possible to change a html control from an image to flash video in a javascript function? I hava a form, with an image and beneath it a text box and a button (this is not the submit button). The user is supposed to enter the url of a youtube video and when he presses thebutton - the image is supposed to change to the flash video player...
1
907
Khaiya
thread by: Khaiya | last post Jun 15 '07 by: jsakalos
I am writing a huge program, which was working but now is not. It says that some of my variables that are from another frame are null or not an object. I'm using the method of comunicating where you call variables from input textboxes by using this (javascript) top.framename.formname.varname.value Is there some quirky thing about this...
1
908
thread by: Venkat | last post Jul 23 '05 by: Colin McKinnon
Hi All, Is it possible to access .so(dlls in Linux) from an ASP application? Excuse me if it is not a right group for this question. regards, Venkat
1
909
thread by: jeffjustice | last post Jul 8 '08 by: acoder
I am trying to make a menu just like the one described here DELETED but it doesn't work. When I go with the mouse over it, nothing happens. Any ideas?
0
910
thread by: mohsen deri | last post Nov 18 '10 by: mohsen deri
Hi I have a web page that contain one count down timer and just after that timer become zero I can reload page! How I can deactivate that timer or at least reduce timer to a lower number? and I use Firefox for this work if you suggest java code or DHTML code, please tell me to how I can use that code VERY TNX
2
911
thread by: santoshmalviya | last post Dec 28 '06 by: AricC
how can i run javascript code in navigator
2
911
thread by: parsa28 | last post Aug 3 '07 by: parsa28
Hello there,thanks for your attention. I've got a drag&drop-able <ul> that unknown numbers of <li>s are going to be added inside it with the option of deleting each one. no problem with all these. The problem is that i want rows to have numbers beside them and for example if i have: 1.One 2.Two 3.Three 4.Four after deleting 3.Three , i...
1
911
thread by: localhost1 | last post Sep 12 '07 by: acoder
hi i want to use a check box so that one or more than one input could be given. what are the modefications required in my following codes <input type="checkbox" name="recrut_sensitif" value="1" checked="checked" /> <input type="checkbox" name="recrut_auditif" value="1" /> <input type="checkbox" name="recrut_ecrivian" value="1" /> <input...
5
911
thread by: wangers16 | last post Mar 10 '08 by: Logician
Hi, I have the following code for use in a cookie script that can change the stylesheet depending upon what the visitor has decided on, here it is function getcookie(c_name) { if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1)
2
912
YenRaven
thread by: YenRaven | last post Oct 24 '06 by: YenRaven
in the demo on this page there is a script (looks like it only works in IE) that creates an animated gif or something of the like that floats above the browser and is always on top. anyone know how to do this? http://www.mydlstore.com/product.php?products_id=139
2
912
Fuhrer
thread by: Fuhrer | last post Nov 22 '07 by: acoder
Hi all, i'm testing a javascript code that allow me to see a timer(just minutes and seconds) when a start button is clicked: <html> <head> <title>Test</title> <script language="javascript"> var TimerID; var min,sec; function Start(min,sec) {
6
912
thread by: oldyork90 | last post Sep 15 '08 by: oldyork90
Know perl? What's the analog for this /string(\d{1,2})/ I can't get anything to spin up. And, once this is running, is only the last match available with RegExp.lastParen? string.match(/string(\d{1,2}); no go Thanks.
1
913
thread by: cszalaj | last post Jul 28 '08 by: RamananKalirajan
Hi all, I have a text area that can contain no less than 130 characters. The javascript validation I have is as follows: <script type="text/javascript"> function validate(field) { var chars = document.getElementById(field).value; if (chars.length < 130) { alert("The news story content must be a minimum of 130 characters to properly...
1
914
thread by: Steve Bishop | last post Jul 20 '05 by: F. Da Costa
Could someone tell me the syntax for using "else' to check the value of my txtName1 value if its not "Size Mix". If it is not size mix I want to hide the table "Table2" and show the other controls I hid. Help appreciated. Thanks. <HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript"> function showtable(){ var myform1 = document.form1 var myform2 =...

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.