473,543 Members | 2,003 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
1,715
thread by: Kirk Zelinske | last post Jul 20 '05 by: Kirk Zelinske
I am looking for a script which will do the following. I have an image with 13 hot spots at the top of a page linked to a table below the image with 13 rows and 3 columns. When clicking on a hot spot I would like to change the color of a table row which is linked to the hot spot to a different color. I am using DreamweaverMX. Is this...
3
11,167
thread by: David Cohen | last post Jul 20 '05 by: Grant Wagner
Is there a function that returns the html source of a given page as a string? Preferably, I'm looking for a function that takes a URL as an argument. Alternatively, is there such a function that takes a handle to a window (in which the desired page is open) as an argument? Thank you, David
2
10,029
thread by: Robert Oschler | last post Jul 20 '05 by: kaeli
I'd like to be able to see if a URL was functional before I attempt to put it in an IFrame. Is there a way to do this so I can prevent the user from ending up with a 404 error page in the IFrame? thx -- Robert Oschler "Let the web hear you, add your voice to your web site in minutes!"
1
1,566
thread by: Brian Quigley | last post Jul 20 '05 by: David Dorward
hi... i have a site with 3 frames - menu, top and main. i want to click a link in the menu frame and change the top and main frame. how can i so this ? thanks, Brian Quigley
7
1,636
thread by: Ross Levis | last post Jul 20 '05 by: Evertjan.
I wrote some javascript code a couple of years ago to load a web page based on the current date & time. I just modified it today to change the naming format of the web pages and I can't get it to work at all. Even the old one which was working (on Win98) is not working at all on my WinXP Pro. Has some new requirement been introduced? Can...
3
28,421
thread by: noViagraHere | last post Jul 20 '05 by: Evertjan.
What do i need to add to the document line to stop getting an Unterminated String Constant error? itemtocheck = '1300'; document.writeln('<!--#include virtual="checkQty.cgi?item='+itemtocheck+'"-->');
9
1,849
thread by: iz0nlee | last post Jul 20 '05 by: Evertjan.
can anybody tell me what is wrong here, I got this shockwave test from javascript in easy steps but it doesnt open the pages required <html> <head> <script type = "text/javascript"> if ( (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.IndexOf ( "Mac" ) == -1 && navigator.appVersion.IndexOf ( "3.1" ) == -1)...
3
12,373
thread by: Peter | last post Jul 20 '05 by: Peter
Hello, Two newbie questions: 1) I have a javascript file with a function in it. From this function I want to access a variable in another javascript file -which is not inside a function. I have tried many combinations to do this, but has yet to try the right one. How is it done? 2) What kinds of file operations can be done in...
14
8,302
thread by: nagual | last post Jul 20 '05 by: Mark Szlazak
Can anyone please help me with a regular expression to test for Valid International Email Addresses? Also, which version of javascript (1.2 ?) is needed for same? Thanks. Regards.
1
4,615
thread by: Donald Canton | last post Jul 20 '05 by: HikksNotAtHome
Hi all, I've got a script that caches 52 card images and displays the appropriate card based on user input. It works fine, except when the page loads for the first time the results are unpredictable until a few seconds elapse. My guess is that it's taking time to cache the 52 images. Is there any way to delay the loading of the page until...
2
9,421
thread by: Mark Szlazak | last post Jul 20 '05 by: Mark Szlazak
All files that I will be referring to are in the same file folder. I need my javascipt file to write or save the contents of a textarea to other local files. This is for local use only on one system. I have no problem doing this in NN4 and IE. However, I have problems with nn7 and moz1.4 even when I add this to my prefs.js files: ...
2
6,074
thread by: Csaba2000 | last post Jul 20 '05 by: Csaba2000
I'd like to be able to simulate a mouse click on an arbitrary HTML element (for the purpose of invoking whatever behaviour that element would have, had a real mouse click come to it) so that my click event will contain mouse coordinates (I only need this for IE 5.5+) In most cases, if domElem is the element, I can do domElem.click and I get...
1
4,747
thread by: Zapp | last post Jul 20 '05 by: Grant Wagner
Hello all! I need to do detect the IPXI move player plugin in IE. I know you have to look for the Active X object, Netscape you just loop through and it will print out the plugins. Can anyone point me to a script that will detect IE plugins? Thanks in advance!
1
2,711
thread by: Robert Oschler | last post Jul 20 '05 by: chotiwallah
I want to change the time it takes the browser to timeout before producing a 404 error on one of my web pages. I want to do it before I set the SRC attribute of an IFRAME on the page, and change it back when the IFRAME onload event fires. Is there a Javascript function to change the timeout value? thx --
2
1,956
thread by: Andy Kowaluk | last post Jul 20 '05 by: Andy Kowaluk
I have an intranet site that connects to an access database using ASP (Javascript). > Currently, when an user attempts to enter a duplicate value into the > database it is rejected and the user is redirected to a custom > message generated by the ODBC driver (I think). How can I change this so > that the user is redirected to a message that I...
2
58,911
thread by: Alessandra | last post Jul 20 '05 by: Alessandra
Hi all, I am trying to build a pop-up into a Web page. The pop-up should open when clicking a button. It works fine on Mozilla and Opera, but Internet Explorer refuses to open the pop-up. How can I make it work? The code is: <input type="button" value="Help" onClick="javascript:window.open('help.htm','Help on units...
1
3,652
thread by: Grant Ito | last post Jul 20 '05 by: DU
Hi, What I thought to be a fairly straight-forward project is turning out to be ridiculous. I'm simply trying to determine the width and height of a browser window in IE v.6.0, but to no avail. I'm finding conflicting information regarding which window property I should be using, and in all cases I am receiving an "undefined" result. Code...
1
2,379
thread by: Andrus | last post Jul 20 '05 by: Grant Wagner
User enters an item code to a browser <input type=text> field. I need to verify the code entered using server callback. If item code is wrong, user is not allowed to leave the field. So I think I must use synchronuous server callback for this. Data passed to server is larger tham 2KB, so POST method should be used. Unfortunately, W3C...
3
2,674
thread by: mydirac | last post Jul 20 '05 by: Laurent Bugnion, GalaSoft
hello, I'm thinking about javascript's producing another file. Can I do it?
5
8,435
thread by: Phil N | last post Jul 20 '05 by: Phil N
Hello again Site I'm working on: http://www3.telus.net/bikim/lightning/test/ - 'coach' & 'main' links swap innerHTML of div element - id 'textArea' works fine in NN7; IE6 reports 'Object doesn't support this property or method' code is:
4
15,320
thread by: yzzzzz | last post Jul 20 '05 by: Evertjan.
Hi, <input type="text" onkeypress="alert(this.value)"> This doesn't work, it is always 1 character missing because the event triggers *before* the character is inserted into the text box. How can I get the entire string, including the last character? (only needs to work with Mozilla or NN7) Thanks.
1
1,834
thread by: abs | last post Jul 20 '05 by: abs
Hi. I've got such html source: <form name=my_form> <input type=checkbox class="a"><input type=checkbox class="b"><br> <input type=checkbox class="a"><input type=checkbox class="b"><br> <input type=checkbox class="a"><input type=checkbox class="b"><br> <input type=checkbox class="a"><input type=checkbox class="b"><br> <input type=checkbox...
6
20,491
thread by: Eddie | last post Jul 20 '05 by: Eddie
When I use JavaScript to read an element's textDecoration style, I only get one value even if there are more than one in the sytle sheet. For example if the text-decoration is defined as: text-decoration : underline overline; when reading element.currentStyle.textDecoration I only get "underline"!! What's worse is that...
1
1,880
thread by: Da Costa Gomez | last post Jul 20 '05 by: chotiwallah
Hi all, I'm looking at a situation whereby I have to get something from the server *before* I can do a popup (with the stuff I got from the server). It basically has to take place in *1* click action. So, click goes to server, comes back and pops up a window with retrieved data in a different html page. Its probably relatively simple but...
3
39,681
thread by: yzzzzz | last post Jul 20 '05 by: Grant Wagner
Hi I have: <div onkeypress="go(event)">...</div> and: function go(event) { alert(event.keyCode); }

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.