473,545 Members | 524 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.
5
28,591
thread by: BibhuAshish | last post Nov 25 '07 by: trbjr
Hello, I have one child window. in child window i am selecting one radio button. i want to return that selected value to parent window. To open child window in parent window, i have written like this: window.open() In child window to return a value i have written like this child window: javascript function
2
28,559
thread by: Matt | last post Jul 23 '05 by: Grant Wagner
If I do the following, the browse text box still cannot see C:/hello world/test.txt. <input type="file" name="fileName" value="C:/hello world/test.txt" size=80> Any ideas? and workarounds to this problem? thanks!!
4
28,548
thread by: highway of diamonds | last post Jul 20 '05 by: Grant Wagner
a bit of a 'hacker' with javascript but can any one tell me why this code throws up "'exit' is undefined" and how to sort. the code does what I want it to, but hate errors I can't explain. TIA R. code is:
6
28,547
nirmalsingh
thread by: nirmalsingh | last post Aug 13 '08 by: rnd me
hi all, how to pass javascript object as url parameter and get that object by c#(request.querystring..)something like that? thanx in advance
6
28,440
thread by: zippy | last post Feb 15 '06 by: Thomas 'PointedEars' Lahn
My code works fine in IE but not FF. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">
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+'"-->');
2
28,409
thread by: rockdale.green | last post Sep 7 '06 by: rockdale.green
Hi, I do not know where should I start to solve this problem. I have a calendar inside a div on my webpage which will show /hide when user click a button. but the button is almost at the bottom of my webpage, I am using position :absolute for the div so everytime when the div shows, it will "drop down" cause the vertical scroll bar...
6
28,396
thread by: Ron Brennan | last post Jul 23 '05 by: Thomas 'PointedEars' Lahn
I want if possible to use something like: element.getElementsByTagName('text') but that doesn't work. Is there another value for the parameter, or is it not possible with getElementsByTagName? Thanks, Ron
3
28,367
thread by: Christopher Benson-Manica | last post Jul 23 '05 by: Christopher Benson-Manica
Why doesn't this replace all double quotes in a string with the letter Q? source.replace( /"(*)"/g, "Q$1Q" ); -- Christopher Benson-Manica | I *should* know what I'm talking about - if I ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
2
28,346
thread by: John E | last post Jul 20 '05 by: Ray at
How do I get whether a checkbox is ticked in a form on a form's submission (true or false)? How do I use the Request object in ASP?
5
28,339
thread by: Keiron Waites | last post Jul 20 '05 by: Kent Feiler
<script language="JavaScript" type="text/javascript"> <!-- var array1 = new Array(); var array1i = new Array(); array1 = array1i; alert(array1); // --> </script>
5
28,233
thread by: balakrishnan.dinesh | last post Dec 20 '06 by: Roy A.
hi Frnds, I need Confirm box with "yes" or "no" buttons, Is that possible in JAVASCRIPT , Can anyone tell me the solution for this or anyother way to create confirm box with "yes" or "no" button? Thanks & Rgrds Dinesh...
3
28,232
thread by: Terry Murray | last post Jul 20 '05 by: kaeli
Hi All: I would like to know how to set the focus on a radio button (if it is possible) I tried button.focus() but with no luck The reason that I need to do this is to validate a form. If the user does not select a radio button I would like my validation code to set the focus at the first radio button within the pair that was not...
8
28,121
idsanjeev
thread by: idsanjeev | last post Dec 6 '07 by: gits
how can check the input data is character or numeric if input data accept the numeric and input data is character then error message
14
28,119
thread by: Erik | last post Jul 20 '05 by: Grant Wagner
I need to submit a form using a hyperlink, and I need to pass a variable associated with that hyperlink. Example: I have a page where employees enter event information, and they are supplied a dropdown box to pick the promoter for that event. If the promoter does not exist in the database, they need to add him/her to the database so that...
2
28,083
thread by: krismath | last post Jun 20 '06 by: Laurent Bugnion
I am unable to have the "null" value working for the validation of the text field. The code is able to validate if the sid value is having one,two,three spaces....but not more..it is sloppy coding...but it works....any pointers to improve the code. sid = document.form1.StudentID.value; if (sid.length == 0 || sid == " " || sid ==" " ||...
16
28,061
Frinavale
thread by: Frinavale | last post Oct 30 '08 by: MRamaLakshmi
I am just wondering if it is possible to determine where the cursor is located within an <input type='text'> element using JavaScript? I'd like to write a snippet of code that will move to the focus to the next text box when the user has pressed the left arrow key and the cursor location has hit the text box's maxLength. Likewise I'd like...
0
28,047
Frinavale
thread by: Frinavale | last post Apr 7 '09 by: Frinavale
Convert a Hex number into a decimal number and a decimal number to Hex number This is a very simple script that converts decimal numbers into hex values and hex values into decimal numbers. The example following this one demonstrates how to convert decimal numbers into binary values. A hex number is a string that contains numbers between...
4
27,986
thread by: christine.nguyen | last post Oct 16 '05 by: christine.nguyen
Hello, Here's the deal. I have an html page that contains an iframe. This iframe has an id that is unknown to me. This iframe also has test.html as it's source. Within test.html runs some javascript. Within this javascript that runs in test.html, I want to obtain the id of the iframe that loaded test.html in the first place. Is this...
2
27,937
thread by: Neo | last post Jul 20 '05 by: Neo
can anybody help me in writing a javascript function which opens a popup window with the target URL when the link "POST Request" is clicked.. Points to note: The HTML DOESNT and SHOULDNT HAVE A FORM TAG. The URL data should be sent as POST and not GET..i.e the search parameters should not be showin in the address bar when the page is...
5
27,928
thread by: delraydog | last post Jul 23 '05 by: Thomas 'PointedEars' Lahn
I'm creating a dynamic iframe element: var iframe=document.createElement("iframe"); I want attach a style to the element, overflow-x:hidden. However, I can not find a way to do this via JavaScript. For example, the following do NOT work: iframe.style.overflow-x="hidden"; iframe.style="{overflow-x:hidden;"};
7
27,925
thread by: libsfan01 | last post Aug 13 '06 by: Dr John Stockton
hi all how do u get js to work out the number of times a given char occurs in a given string? regards Marc
4
27,923
thread by: Logico | last post Jul 23 '05 by: Michael Winter
Hi everybody, I need to do a function in javascript to check or uncheck all checkboxes with the same id. I want this function to work in every form and every page of my site, as I will use the same id ("sel") for all checkboxes in the site. So I need to refer to these by id. I tried with: document.getElementById("sel") but this returns only...
6
27,892
thread by: prabhunew2005 | last post Oct 21 '08 by: avijit dey
Hi all, I need to allow the date format only yyyy-mm-dd to store into mysql4 data base. I have the validation coding for mm-dd-yyyy format. But i could not modify to convert it to validate required format. Help me. Advance thanks.
6
27,886
thread by: Matt | last post Jul 23 '05 by: Richard Cornford
By using javascript, is it possible to disable the REFRESH functionality (F5 or refresh icon) in a browser? Please advise. Thanks!!

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.