473,549 Members | 2,598 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
16,876
thread by: N/A | last post Jul 20 '05 by: N/A
Hey all, If I open a popup like this window.open('http://www.google.com', 'popup', 'width = 618, height = 425, directories = no, location = no, menubar = no, resizable = no, scrollbars = yes, status = no, toolbar = no'); Then I know that there is a window object in the windows collection called 'popup'. So how can I make that window...
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?
2
6,653
thread by: Chris New | last post Jul 20 '05 by: DU
G'Day All I am having trouble dynamically assigning a value to a table's cell from one frame to another frame. I've created a website that is primarily viewed in a frameset consisting of 2 frames - a navigation frame (navFrame) at the top and a contents frame (mainFrame) on the bottom. In all instances, the mainFrame displays a single...
5
8,437
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:
3
12,376
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...
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...
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...
2
31,563
thread by: john | last post Jul 20 '05 by: John
I'm looking to have a form where a drop down list contains my full range of options even when some are not currently available. Is it possible to produce a select box where some items could show differently (eg greyed out) and not be selectable? All suggestions welcome!! Thanks John
7
1,637
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...
1
1,835
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...
2
1,957
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...
5
9,696
thread by: Carol Lyn | last post Jul 20 '05 by: Carol Lyn
Could use your assistance with this. I have a window that opens via onclick and it is a small window with info about a site. If the user is interested in visiting that site, there is a link to click that opens the site in a new and larger window via onclick. My question is, can I have the smaller window automatically close when the user...
9
1,852
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)...
1
3,656
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
1,915
thread by: Rom | last post Jul 20 '05 by: Randell D.
Hi. I was wondering if anybody knows if its possible to change the appearance of a window OnLoad. Like, without the toolbars and menu bars. The thing is that i am opening this window from a cgi script, and i need it just to show an html without all the other stuff. Hope u can help me. Thanks
1
4,616
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...
1
2,810
thread by: Cooper | last post Jul 20 '05 by: Richard Hockey
Hello, i have a form with TEXT, SELECT etc, elements. Simple, i suppose two TEXT (name: T1 and T2). If a user insert a bad value, it display a error message and turn back at form. My problem is: I am in T1, i insert a bad value... is displayed a alert, i click on OK and prompt go in T2. Now, i want to do that if i am in T1 after that i click...
2
2,263
thread by: Dave | last post Jul 20 '05 by: Dave
After much general searching, a JS newbie asks: can anyone point me to where I can find out how to build a page (including form) using Javascript? The reason I'd want to do this is because the page html is becoming quite large due to form element attributes for each row of a large form. I'm under the impression that I could condense this by...
3
28,422
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+'"-->');
2
1,716
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
10,825
thread by: FN | last post Jul 20 '05 by: Evertjan.
I know how to do an HTML content redirection (e.g. in 5 seconds you'll be redirec to...) but... I have a javascript countdown timer. It goes for a few hours. At the end, I want to dispaly "times up", wait 10 more seconds, and then redirect to another page. Is there a javascript way to do this, and would it work going back to IE4 and...
2
3,065
thread by: reneeccwest | last post Jul 20 '05 by: reneeccwest
Different user input boxes are automatically populated based on a value of the dropdown box. Can anyone help me on that?
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!"
3
11,170
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
8
10,607
thread by: JohnS | last post Jul 20 '05 by: JohnS
Hello: Can a javascript file that is included with a webpage with SRC="filename.js" be read and/or saved by a user? I thought not, but now I wonder.... Thanks John.

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.