473,785 Members | 3,142 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.
7
7,298
thread by: Nithu25 | last post Apr 8 '08 by: acoder
Hi All, I am facing one issue related to session. Suppose the user closes the window without Logging out, in firefox and in Safari (Mac OS) , the user will be automatically logged in,when they open a new window or a new tab. Is there any way to identify the event of closing the window or tab, opening a new window or tab using...
4
1,184
scubak1w1
thread by: scubak1w1 | last post Apr 8 '08 by: mmurph211
Hello, Is there a 'trick'/technique to see what the code on a page looks like on the client side after AJAX adjusts part of it? (for the example I had in mind, as the user selects items from <select>s on a form and AJAX adjusts the available <option>s in the next <select> based on the user's selection... and I would like to see what the HTML...
1
1,350
thread by: Pierre | last post Apr 7 '08 by: Jeremy J Starcher
hi, is there somewhere an implementation of some compression algorithm zip/ gzip/other ? Pierre
2
1,483
thread by: yuvaly | last post Apr 7 '08 by: rnd me
Hi I hope this is the right forum for this question... I have a form, from which I want to asynchronously upload one or more pictures. After each image is uploaded, I want to display its thumbnail in this form I understood I should use iframes, but I I couldn't find a working example or explaination of how to make it work... I would...
2
1,018
thread by: F159753 | last post Apr 7 '08 by: F159753
Hello, what would be the code if I want to hide or show a table included some fields in Javascript? Thanks F
3
3,966
thread by: gimme_this_gimme_that | last post Apr 7 '08 by: gimme_this_gimme_that
Thanks.
3
1,514
thread by: mattennant | last post Apr 7 '08 by: pronerd
Hi There I'm fairly new to javascript, and have been looking for a way for a user to add form elements (text area) by clicking a form button I happened upon a script submitted on this site this set me on my way, i have tried to adapt it, to add a checkbox. This is working fairly well except that the numbers for the elements are not...
7
2,734
Claus Mygind
thread by: Claus Mygind | last post Apr 7 '08 by: Claus Mygind
I can't figure out how to build the array of objects from the string I return from an ajax call. Let's say I return a string: {name:"Claus", age:39};;{name:"Tom", age:42};;{name:"John",age:13} This string is contained in the variable returnData. I have an array called jsData which I want to be a collection of objects and I would like...
13
1,434
thread by: adamjblakey | last post Apr 7 '08 by: acoder
Hi, I am using the following function to do a country/region ajax drop down list. // JavaScript Document var AdminResponse = ""; function parseResponse(){
6
1,993
thread by: gayak | last post Apr 7 '08 by: pronerd
Hi all, A pdf file is already open which launches in a frame..When I try to open another Pdf file I am unable to open it.. I get a Javascript error as " no such interface is supported".Kindly advice to resolve this issue... Many thanks in Advance.. gayathri
7
13,122
thread by: KDawg44 | last post Apr 7 '08 by: KDawg44
Hi, I have a series of notes in the cells of a table, when they click the note, it calls a function that creates a text area for the user to edit the note in. What I would like to do is have it so when they click outside the text area, it calls another function that changes it back to a cell displaying the data with the changes. Is...
1
6,718
thread by: CR1 | last post Apr 7 '08 by: acoder
I found a great cookie script below, but don't know how to make it also pass the values sent to the cookie, to a querystring as well for tracking purposes. Can anyone help? If there was a way to simply pass the values in a cookie to the querystring that would be even easier, but from what I've been able to tell, cookie values can't be passed to a...
1
1,810
thread by: dkwan | last post Apr 7 '08 by: acoder
Hello i wanted to know if it is possible to fill in a table using data from text field? or automatically create each row as i input data in textfields
1
2,687
thread by: ced69 | last post Apr 7 '08 by: acoder
having trouble getting marquee to work get object required errors tring t <title>This Month at the Chamberlain Civic Center</title> <link href="styles.css" rel="stylesheet" type="text/css" /> <script src="Dunbarlab9.js" type="text/javascript"></script> <script type="text/javascript">
1
2,099
thread by: shankar556288 | last post Apr 7 '08 by: acoder
I have just started using Jsp And have a problem; My site runs like this... I request some data that is processed by Jsp and is written back but I need to use Javascript here to display the long list of data in 2 pages linked together.. Where do I add my Javascript code... Please help me...
1
2,675
thread by: atiq | last post Apr 7 '08 by: acoder
once the feedback is submitted the thank.html popups. however, i want this popup to only be displayed for 3 seconds and then for this window to automaticaly close it self. below is the code for thank.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script...
3
2,272
thread by: Zana_Pia | last post Apr 7 '08 by: acoder
Hi How can I get the clipboard content from Notepad to my page ?(For pasting I use the dhtml method document.execCommand('Paste', true, null) and it works fine - but I need the clipboard content without calling "Paste" option). Thanks, Zana
3
304
thread by: sanju | last post Apr 7 '08 by: SAM
Dear All, i have 10 textboxes on a form, I require the following validation 1) if i fill the textbox in between(say 5th), then all textboxes before that should be mandatory,ie Textboxes(1,2,3,4) should be mandatory and rest of the textboxes should not be mandatory. Kindly help me out..
3
1,341
thread by: empiresolutions | last post Apr 7 '08 by: acoder
i am using the following AJAX request method. Most of you probably use this script allready as it seems to be everywhere online. I use it often with out issue... until now. What I'm finding is that if the click used to initiate the onblur() used like <input type="text" id="qty" name="qty" value=""...
10
1,811
hsn
thread by: hsn | last post Apr 7 '08 by: hsn
hey everyone i am currntly working on a project. for a function that i want to create there are too many methods to solve it. one of these methods that i am thinking of is to write a javascript function to read an HTML webpage, then to go to a text field next to (for example First Name label). the function should check the data in the text...
2
2,050
thread by: Ken Tilton | last post Apr 7 '08 by: Ken Tilton
Total JS noob here, but porting my hairy Common Lisp Cells (dataflow) package -- long intro on my blog: http://smuglispweeny.blogspot.com/2008/02/cells-manifesto.html ....so I am getting into some fun stuff straight-away. I am happy to see _defineGetter_/Setter_ here: ...
11
2,434
thread by: eihabisaac | last post Apr 6 '08 by: mrhoo
hey i wrote this function to generete random numbers. it works but i don't wont these number to be repeated so any idea. i'm using images to show the numbers. <script type="text/javascript"> function shuffle() { var imgval; document.write("<table border='1'>")
3
6,833
thread by: stevewy | last post Apr 6 '08 by: Bart Van der Donck
If the following line will force the user to input only a number between 1 and 5, and will give an error to any keypress outside that range: onkeyup="if(event.srcElement.value.search(new RegExp('^$'))) {alert('Please type in a number between 1 and 5');event.srcElement.value='';return false}" .... how could I get the regular expression to...
1
1,375
thread by: ktang | last post Apr 6 '08 by: acoder
www.statehousenews.com/beta/scroller2.asp Is a code I wrote that retrieves data from a txt file and displays it into a txt scroller. XMLhttpRequest() is used to open and retrieve the data. The javascript works fine in IE7 but doesn't work at all for Firefox/2.0.0.13. Here's the code: <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <!DOCTYPE...
5
2,367
thread by: mwpclark | last post Apr 6 '08 by: acoder
I have javascript code which passes select input form field values in Firefox and Opera but it does not seem to work in IE7. This form runs a search, and the search results page has the same form at the top of the page with values filled in. In Firefox the fields are passed correctly. In IE7 the select field "selected" option is not passed...

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.