473,539 Members | 8,653 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,136
thread by: Jens | last post Jun 30 '06 by: novadoft
I can read text files with scriptableinputstream.read(). But it is not possible to read binary files containing hex zeros. How do I read those? Jens
2
1,893
thread by: Todd Cary | last post Jul 20 '05 by: Lasse Reichstein Nielsen
I want to have a link on a php page that when opened, has to be closed in order to move on. I have done this on pages using a button and JavaScript as follows: <input name="btnHelp" type="button" value="Help" onClick="MM_openBrWindow('help.html','', 'toolbar=no, status=yes, scrollbars=no, resizable=no, width=790, height=600')";"> When...
1
2,688
thread by: marius | last post Jul 20 '05 by: marius
i get "name_ is undefined" error. how should i access ClassA object from inside this inner function/object? in Java i would write something like this alert(ClassA.this.name_) <html> <head> <script language="JavaScript"> function ClassA(id) { this.name_ = "class A";
2
1,509
thread by: Stephan Hauduc | last post Jul 20 '05 by: Evertjan.
What I think is the best way for me to do what I want to do is have a text file which contains the following, the number of slides at the top, then the time lengths that each file should be displayed for in the slideshow in sequence. SO what I'd like to do is have a slide show that displays files named as slide1.jpg, slide2.jpg to...
1
3,401
thread by: mark.reichman | last post Jul 20 '05 by: Grant Wagner
I have text fields in my form with the same name. I can reference the value of these fields in IE 6.0 like with document.form.field.value. However, netscape 4.7 seems to croak. Why? What is the equivalent way to get the value in netscape 4.7.
1
4,047
thread by: Chris Jakeman | last post Jul 20 '05 by: Markus Ernst
Hi, Internet Explorer doesn't load JPGs progressively. I need to show a large graphic (100KB) on dial-up lines, so I searched for a way to emulate progressive loading of images. Couldn't find anything, so I've written my own, with bands of low-res image being loaded and then overwritten with high-res. Have I been re-inventing the wheel?
3
6,801
thread by: Da Costa Gomez | last post Jul 20 '05 by: Da Costa Gomez
Hi all, I've been eluded the last couple of *days* on the onload mystery within the frame and function context. Problem is as follows: - frameset with two frames. One called scripts and the other called main - scripts carries a bunch of js functions rechable via parent.scripts.functioName() - Main carries the html page that utilizes some...
1
2,198
thread by: nickolausp | last post Jul 20 '05 by: Dom Leonard
When embedding a JavaScript document.write within a JavaScript document.write in Netscape 4.x (example below), the text is written out of logical order. <script type="text/javascript"> <!-- document.write('<script type=\"text/javascript\">document.write(\'111\');<\/script>222'); document.write('333'); //-->
3
3,352
thread by: james | last post Jul 20 '05 by: james
Hi. I have a problem with a little javascript to open up a pop-up window in my search results page. I get a debug pop-up every time the page loads, and I've gone over the code several times, and I can't figure out what's wrong. I'm a newbie, though, so that doesn't mean much. I'm doing a lot of work on the page now, so the code's kind of...
1
3,046
thread by: Koms Bomb | last post Jul 20 '05 by: Csaba2000
I create two iframes dynamically to get data from the server. I want to deal with the data after it's downloaded, so I set the two iframes' onload event handlers to current document(not the iframe self), the handlers' JS code is generated dynamically too. But I found only the second event is triggered and I can't get the first iframe's onload...
6
167,404
thread by: Jez | last post Jul 20 '05 by: Jez
Hi, I've created a function which opens a popup window containing a calendar. When a day is clicked, the date is entered into a text box on the parent page and the popup is closed. The link I'm using on the parent page is ... <a href="#" onClick="popupcal()">choose date</a>
2
9,248
thread by: Konrad Mathieu | last post Jul 20 '05 by: Greg
Does this work in most browsers, namely MSIE? document.links.href or does it have to be document.links.href ?
2
1,634
thread by: Da Costa Gomez | last post Jul 20 '05 by: Da Costa Gomez
Hi All, Would it be safe to presume IE 5.00 is less than ideal to do popups? Compared to Mozilla (any) & Opera it really smells! Anyone else got the same experience? TIA Fermin DCG
2
6,590
thread by: Jarle Kaste | last post Jul 20 '05 by: kaeli
Take a look at this code: var arr = new Array(); arr = 1; // element 0 arr = 2; // element 1 arr = 3; // element 2 Is it possible to loop through this array without knowing the string-id's? Just start out at element 0, and go on to 1 and 2 and print out the values?
1
9,565
thread by: mark.reichman | last post Jul 20 '05 by: Mark S Reichman
First off.. Thanks to Grant Wagner for help in a previous thread related to this one. I am at a total loss... I have multiple fields in a form with the same name. Lets call the fields with the same name "junk_array". My first field of junk_array is a input type=hidden. All the others fields in junk_array that follow are type=text. I can...
5
22,931
thread by: Jez | last post Jul 14 '06 by: elsint
Hi, I have created the following functions to select and deselect checkboxes in a form ... function check(checkbox) { for (i = 0; i < checkbox.length; i++) { checkbox.checked = true; } return "Select all";
1
2,998
thread by: Mariano López | last post Jul 20 '05 by: YD
Hi. How can I make the following code (for Internet Explorer) work fine on Netscape 6 and Opera? document.createStyleSheet(); with (document.styleSheets(document.styleSheets.length-1)) { addRule("A.newslink","text-decoration:"+FDRlnkDec+";color:"+ FDRlnkCol); addRule("A.newslink:hover","color:"+ FDRhovCol); }
1
1,940
thread by: Dwayne Epps | last post Jul 20 '05 by: Lee
This is probably a no brainer, but I am having no luck at getting this to work. I'm creating functions that will validate form data fields. For example, the following function: function checkText(field, msg, min, max) { if (!min) { min = 1 } if (!max) { max = 65535 } if (!field.value || field.value.length < min || field.value.max > max...
2
3,334
thread by: Frank Py | last post Jul 20 '05 by: Frank Py
I'm tring to use a validation function example from WROX that looks at form fields on a submit. I can't seem to launch it. I have 2 other functions up in the header that work fine. Any help appreciated. Here is the code and form: <script type='text/javascript'> function form1_onsubmit() { var form = document.MyInput var controlCounter;...
12
2,877
thread by: Joseph Misko | last post Jul 20 '05 by: Dr John Stockton
I am on WinXP. The following page works perfectly in IE6. For Netscape 7.0, I have to move off of the image and then back on to get the fade to take effect, and with Mozilla (latest version) a series of close mouseovers will cause the screen to go wacko. Does anyone have input on how to get Netscape/Mozilla to work with a fade like this?...
1
6,725
thread by: Venkat | last post Jul 20 '05 by: DU
Hi All, I have got two windows namely parent and a child . My parent window has got a link, on clicking which opens a child window(i am using window.open function). I do the following set of operations In my parent window i click the link which results in popping up the child
10
4,114
thread by: George Hester | last post Jul 20 '05 by: George Hester
Any ideas how to decipher it? <script language = "JavaScript"> var x =...
1
3,313
thread by: Steve VanSlyck | last post Jul 20 '05 by: John
Can someone give me the code to show or hide a field based on the status of another field (in this case a checkbox). The actual application is Adobe Acrobat. Thanks.
8
1,790
thread by: Robot Tree | last post Jul 20 '05 by: nice.guy.nige
Anyone know how to do this? I have 25 *.gif files, all of the same dimensions. I want to display one at a time in the top middle of a dynamic web page, with 25 links below the display that will, when clicked, each display the corresponding file (I want to make just one web page to display the paintings rather than 25 separate pages). If...
4
10,720
thread by: John MacIntyre | last post Jul 20 '05 by: John MacIntyre
Hi, Using the script below, when you click on the radio button beside click here .... the first row shrinks. Has anybody else ever experienced this? Does anybody know of a logical explaination for this? A co-worker told me it is not valid HTML. He may be right, but we both agree; it's odd that IE would handle it when the form is...

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.