473,544 Members | 439 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
2,476
thread by: Salvatore | last post Jul 20 '05 by: Lasse Reichstein Nielsen
Hello, Given an expression f = '2*x+3' from a user input I would like to do some sort of function userFunction(x): return f(x) is it possible with Javascript ?
1
1,921
thread by: Magic-chef | last post Jul 20 '05 by: David Dorward
I have a site with PHP code that I need to have a js function to redirect to another page or site. I am just trying to learn JS and need a starting palce. Would this be difficult?
1
3,217
thread by: Amanda | last post Jul 20 '05 by: Dr John Stockton
Hi, hope you can help me with this one. If I want to get the date a page has been last modified, I can do something like .. document.write("<b>Last updated: "+document.lastModified+"</b>"); Can I use this to display the date that other pages were last modified - eg other pages on my website? I want my index.htm to display the last...
1
1,217
thread by: Magic-chef | last post Jul 20 '05 by: JavaScript-Coder.com
I'm looking for a form validation script. I would prefer one that acts on the form while it is being filled out instead of on submission
7
40,178
thread by: Willem | last post Jul 6 '06 by: harinda
Can someone tell me how I can get a page(any page) on the Internet to refresh automatically every 5 minutes. I was thinking along the lines of having a HTML file on my C-drive with JavaScript to do so. It should be possible, Right? I don't know much about JavaScript. Thanks for the help.
2
2,435
thread by: Jochen Califice | last post Jul 20 '05 by: Martin Honnen
Hi NG! A wise man said "You don't have to know anything but where to find it" :) K I've been searching about two hours but didn't find one thing usable. I have a layer at my page. In it there's a picture. I want this layer always to be placed at the middle of the screen. So I read out the window width and replace the layer. Works fine. ...
2
20,470
thread by: Big Bolt | last post Jul 20 '05 by: Big Bolt
A piece of text on my HTML page is framed with DIV tags. While I want to be able to drag/drop it, I don't want it to be selected, since it interferes with dragging. I'd like to press a mouse key and drag it. Instead I start selecting the text and keep going down selecting everything underneath. So in order to actually drag, I have to...
4
2,391
thread by: pag64 | last post Jul 20 '05 by: pag64
I have the following message when I have to insert the j. code into my html page : Add the onLoad event handler into the BODY tag The BODY part ok The Head part ok but the body tag ??
2
33,781
thread by: Seth E Seligman | last post Jul 20 '05 by: John
I'm working on a web based file manager. The rename file function creates a new window with a form allowing the user to enter a new file name. Before the form gets submitted, I want to make sure that a valid file name (no "/" or "\" characters) was entered. If the validation functions returns true, the form should be submitted and the window...
2
2,965
thread by: news frontiernet.net | last post Jul 20 '05 by: Dr John Stockton
I have key entered and tried to run example 4-6 from Dany Goodmans DYNAMIC HTML book, version one that is on pages 94-96. This is part of my effort to learn JavaScript. I checked each byte and position back against the book for syntax errors but still cannot get this script to work. I tells me that; 1. Line 49 has a missing ";" at bye...
1
3,964
thread by: Steve | last post Jul 20 '05 by: Steve
I seem to be having a bit of difficulty with a javascript drop down menu. The line variable, var TargetLoc='ddmenu'; ,does not work in Netscape version 4? If I take out 'ddmenu' and just declare the variables to start top and start left I have no problem displaying it in both IE 5 + and Netscape 4 +. Although it does not line up the...
4
22,058
thread by: John H. | last post Jun 15 '06 by: Mike Kirk
Hello I have some trouble in closing a window, Here is the problem: I develop a asp.net website use client side valiation <asp:CustomValidator id="CustomValidator1" ControlToValidate="Text1" ClientValidationFunction="BasicSearchValidation" OnServerValidate="ServerValidation"
4
11,007
thread by: Frank Py | last post Jul 20 '05 by: Evertjan.
I have 4 possible values that I would like to populate a text box with depending on which 4 values are sleected in a select box. Is there an example out there for this? Thanks Frank *** Sent via Developersdex http://www.developersdex.com ***
2
12,352
thread by: jetmarc | last post Jul 20 '05 by: Jim Ley
Hi. I have a webcam page (video surveillance) that refreshes 9 images once a second (1000ms rate). It uses javascript to change the image.src To trick the caching mechanism of the browser and force a fresh download from the IP camera, a random tag is appended to the URL. Unfortunately MSIE6 (WinXP) caches each and every frame ON DISK.
1
3,922
thread by: Cooper | last post Jul 20 '05 by: Vjekoslav Begovic
Hello, I have definited two select: main, secondary main = 0, 1, 2 secondaryA = "a", "b", "c" secondaryB = "1", "2", "3" secondaryC = "5", "6", "15", "25" i want that, if i check from first select (main) the value 0, in secondary
4
2,612
thread by: Rick Barr | last post Jul 20 '05 by: Rick Barr
I'm trying to build a tee-time reservation page, and want to display all the available tee times on one page for a particular date. I simply want to list the times out in 10-minute intervals, like: 8:30am 8:40am 8:50am Additionally, I want to be able to parse out the times that already have entries in my SQL database, but for now I'll...
3
5,070
thread by: Magic-chef | last post Apr 21 '06 by: bigKenny
This rollover script is created by Image Reaady. When using IE and especially with Win XP the images involved in the rollover disappear. It happens gradually with one or two at first then all. Even a browser refresh does not bring the images back. I there a problem known issue with Image Ready rollover scripts and IE+XP? <script...
5
4,024
thread by: Weston C | last post Jul 20 '05 by: Mark Szlazak
I'm trying to write a generic/reusable form validator in Javascript... just something that checks to make sure required fields have a value. By generic I mean I don't want to explicitly reference the name/id of the form or the name of any of the data fields within a "validation" function. My first shot seems to have some errors in it: ...
2
2,304
thread by: Rich Grise | last post Jul 20 '05 by: Lasse Reichstein Nielsen
Hi. I dashed off a little button-swapper for "homework" for lesson 1. Well, it works fine, with Internet Exploiter, but not with Netscape, which is kind of ironic, since NS invented JS. I'm surmising that it's all the crap that Tripod serves up with the page - I'd appreciate it, if anyone has the time and inclination, if you'd take a look at...
1
16,329
thread by: Thomas | last post Jul 20 '05 by: Grant Wagner
It looks like the String.replace doesn't work in IE6.1. Anyone else has the same problem. I am using newest service package of IE and Win2K. Thanks
4
27,523
thread by: Jan-Friedrich Mutter | last post Jul 20 '05 by: Chris Smith
Hi, I have a problem to access a hidden field by javascript. The name of the field has a dot in it. That's the problem. But I need that dot because it is a "Stuts Property". I'm using IE 6. This is my code: <!-- function changeValue(myvalue) { //works
2
32,683
thread by: John Cummings | last post Jul 20 '05 by: John
I have inherited form that requires me to use the FilesystemObject to write to a file. I have to use Javascript to instantiate and use the object. I think that I am having a problem as far as getting the javascript to work server side. I am able to create a file and write to it locally but when trying to work it on the server, I get...
2
4,552
thread by: TSK | last post Jul 20 '05 by: Dr John Stockton
I cannot get my focus() fn to work in my validateInput(userInput) fn. It will not allow the user to go back and correct invalid input like it should. Instead it goes right on through with the invalid input. I used this same function in another program similar to this one and it worked just fine, but it's not working in this one. Why? My...
5
11,370
thread by: Mika S. | last post Jul 20 '05 by: Klaus Johannes Rusch
Hi, How can I detect if the Flash plugin is installed? Should be working with the most common browsers and environments. Thanks, Mika
1
5,962
thread by: efiedler | last post Jul 20 '05 by: Tim Slattery
Hi - I have the following input field on my html page: <input type="image" name="submit" id="submit" src="c:\image.jpg" value="image.jpg"> I also have another input field on the form that is a text box. When submitted my form posts its data to a servlet. I can click on the image, and the form is posted and the servlet is ran. However, I...

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.