473,541 Members | 15,253 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.
1
3,072
thread by: 3W | last post Jul 20 '05 by: Lasse Reichstein Nielsen
How does one get the browser's width using standards compliant Javascript 1.5/ECMAScript?
6
3,763
thread by: Andrew V. Romero | last post Jul 20 '05 by: Richard Cornford
First off, I am mostly familier with PHP but am trying to make a multi-step javascript program. For an example, I would like to run different sections of the script depending on how many times the user presses the submit button: <form method="post" name="step1" action="test.html"> <script language="JavaScript"> var position
6
2,482
thread by: MichaelF | last post Jul 20 '05 by: MichaelF
I've embedded a RealPlayer window in a page, and am unable to get mouse clicks. The clip plays, but clicks are ignored. I'm running IE5.5 on Win2k, with the following code: <embed name="RPEmbed" src="http://..." CONTROLS=ImageWindow AUTOSTART=true onLButtonUp="alert('rpm');return false;"> I've also tried setting...
1
3,385
thread by: SledgeHammer | last post Jul 20 '05 by: DU
Hi group, Little question that bugs me .... I have a page (window) with frames. Topframe + MainFrame = page I want to close the whole window, but don't know how Can somebody help me with this one ?
2
2,191
thread by: Smogo | last post Jul 20 '05 by: Smogo
Hi, I'm new to JavaScript so forgive me if the answer to this question is (a) ridiculously obvious, or (b) beyond the realms of JavaScript.... Is it possible to create URLs from function call operators? For example, I'm trying to program an onClick function which will load a webpage in one frame and an image in another, based on the name...
1
1,692
thread by: moon | last post Jul 20 '05 by: David Dorward
Wondering if this is possible? Situation: I have a frameset with a few frames in it that loads side graphics, main navigation, subnavigation and content. Everything works fine. Now, I decided to add a gateway index page with buttons that lead to a specific page within the frameset. ie. aboutus, contact, products,etc... The buttons work but...
1
1,646
thread by: BlackSabbath | last post Jul 20 '05 by: David Dorward
Hi, I have an HTML page: <HTML><HEAD> <SCRIPT LANGUAGE="JavaScript">function FreeHand() { }</SCRIPT> </HEAD> <body oncontextmenu="FreeHand();return false">Hello World</BODY></HTML> The "return false" in oncontextmenu is to suppress the right_click menu
4
3,596
thread by: Daniel | last post Jul 20 '05 by: Daniel
Hullo =) Inspired by another guy's questions here I've created an isset function that works (almost) like the one in native PHP: function isset(variablename) { return(typeof(eval("window."+variablename))!='undefined'); } I use it like if(isset('myVar') { alert(myVar); }
1
4,616
thread by: Sanjay Goel | last post Jul 20 '05 by: Evertjan.
Hi, I have a input field like this <input name="To" type="text" class="input" value="<%=toList%>" size="106" onBlur="validateUser(document.NewCollab.To)"> this calls validateUser() as soon as I update the input field and lose focus from it. What I want is that this validateUser() should also be called on the intial <%=toList%> that I am...
6
4,486
thread by: 2obvious | last post Jul 20 '05 by: Richard Cornford
This is a pipe dream, I realize, but I'm trying to emulate the functionality of the W3C DOM-supported document.getElementsByTagName method under the very nightmarish Netscape 4. Through some sleuthing, I was able to find what serves as a document.getElementById emulator at http://www.xs4all.nl/~ppk/js/dhtmloptions.html#versionb. (Below...
1
3,785
thread by: Aron | last post Jul 20 '05 by: kaeli
What I really need to do is determine the source of a frame (in this case, a PDF) in a different window, close that window, and then launch a new window with that source, displaying only the PDF. However, when I try to access the DOM, it tells me that access is disallowed to scripts from another domain. This strikes me as a bug, since the...
1
1,777
thread by: BlackSabbath | last post Jul 20 '05 by: HikksNotAtHome
Hi, In fact, I want to suppress the right-click menu and use mine : It must like same look and feel than the original context menu Is it possible ? Tanks Olivier
1
1,628
thread by: news.verizon.net | last post Jul 20 '05 by: Chris Leonard
Hi all, I have a website created by others and sort of meshed together. Here are a couple of links... http://www.ibco.net/honours/rc/ See how the navigation bars on the left come in behind this - is there anyway to tell it to stack it otherwise? http://www.ibco.net/honours/rc/index.asp?showpage=photographs&golfmenu=1 This is the same...
1
2,671
thread by: Robert Mark Bram | last post Jul 20 '05 by: Lasse Reichstein Nielsen
Howdy All! I would like to find since when did different versions of browsers and/or JavaScript/JScript/ECMAScript support the SetTimeout and SetInterval methods.. this is for compatibility reasons. Thanks for any advice! Rob :)
1
2,594
thread by: Peter B. Ensch | last post Jul 20 '05 by: Peter B. Ensch
Can anyone explain why this code fails when the set of checkboxes consists of only one. myForm.update.length returns 0 instead of 1 with the result that I get an alert box even tho' the one checkbox is checked. Thanks, P
3
1,350
thread by: Robert Mark Bram | last post Jul 20 '05 by: Douglas Crockford
Howdy All! JavaScript uses objects created by the host: Window, Document, Form and Image objects JavaScript creates other objects by itself: String or Date etc.. My question is: does it ever make a difference to the programmer whether you using a host or a language object? Thanks for any advice!
1
3,154
thread by: Robert Oschler | last post Jul 20 '05 by: HikksNotAtHome
When a web page I created is bookmarked, for example using Ctrl-D or Right-Click->Add To Favorites in IE, is there a way to intercept and/or change the URL that gets assigned to the bookmark? Any JavaScript samples that show how to do this? thx -- Robert Oschler
4
3,195
thread by: Stuart Wexler | last post Jul 20 '05 by: Richard Cornford
Hi, I'm attempting to loop through the document.all collection of a page to make universal height, width, size changes. I am doing this on a page with a relative link to a css style sheet. In testing this out, I notice that it registers the DIV tags and such, but for some reason, it won't recognize any of the attributes of those DIV tags...
1
1,960
thread by: Phil N | last post Jul 20 '05 by: Dom Leonard
Hi all. I've been here before and got a lot of help with my neophyte troubles so I'm back again. This time I have a number of questions (if I can remember them all). (I've pasted the code in question at the end of this message and installed it on the web at http://www3.telus.net/bikim/test .)
2
1,482
thread by: Todd Cary | last post Jul 20 '05 by: Hywel Jenkins
What is the best groupd to use for HTML questions? Thanks.. Todd
1
1,496
thread by: Mark Constant | last post Jul 20 '05 by: Atrax
I want to try and make a menu using javascript and DHTML. I want the menu to be horizontaly placed on top of the webpage. When I move the cursor over it a popup menu comes up. Sort of like what you can find on the first page of Micrsoft.com near the top. But I want the menu to have a more transparent blue color. Is that possible? Also where...
1
1,817
thread by: Webstyler | last post Jul 20 '05 by: Webstyler
Hi, I must create a redirect : 1@mysite.com must open www.mysite.com and The url must remain 1 @mysite.com I have obtain redirect correctly with this code : <script language="Javascript"> <!-- var indirizzo = window.location;
1
3,383
thread by: Craig Lister | last post Jul 20 '05 by: Daniel
I've made a small chat page for a website that I made as a hobby... I didn't want to use Java, as alot of users can't/don't know how to download and install this. I know it's easy, people. But some people just don't get it. I didn't want to use flash, because ... I have no idea how. And it has to be a web page based chat, so that anone...
2
3,982
thread by: Kuntal Joisher | last post Jul 20 '05 by: Daniel
I have a frameset -- which has 3 HTML pages. its something like ----------------------- | main | | | -----------------------
2
2,143
thread by: Gabriel Murphy | last post Jul 20 '05 by: Daniel
Hello All: I am trying to populate a list of checkboxes in a different frame that the frame in which I am calling the function from. Below is an example: http://www.gabrielmurphy.com/javascript/5/ The left frame contains the checkbox titled "Check All". When I click this (onClick), I would like for it to invoke the function in the

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.