474,045 Members | 2,458 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.
11
1,565
thread by: rohitchawla | last post Feb 7 '08 by: rohitchawla
I am trying to get the values of all the child elements from a specific element function getnodes(elem) { for (i=0; i<elem.childNodes.length; i++) { alert(elem.childNodes.nodeName); alert(elem.childNodes.nodeType);
1
1,321
thread by: lizarraga | last post Feb 7 '08 by: acoder
I have a table this table sep 2007 = 1.7890 oct 2007 = 1.8952 nov 2007 = 1.8970 in the field (date) sep 2007 the problem is and and other field get 1.7890
9
5,276
thread by: semomaniz | last post Feb 7 '08 by: acoder
I have a form where users will input phone numbers. The way it is set up is with three text boxes. First for phone prefix( 314) then second for the middle number (546) and finally third for last four digits (4563). What i am being asked to do is the cursor need to jump to second text box as soon as user inputs 3 digits on the first text box. and...
1
1,819
thread by: dohko8 | last post Feb 7 '08 by: acoder
Hi I have an html that runs in Mozilla but not in IE. Are there any differences in how you declare them? I figured that my problem is with the .js file. When I reduce it to about 500kb it runs but I need the whole file. The .js file is 1.5MB. Does IE have any limitations? any workarounds?
1
1,100
thread by: Scotter | last post Feb 7 '08 by: acoder
Hi everyone, I've searched for a while now, but i cant find out how to do this. I'm trying to make a website where a user can click a button and lets them browse their computer to find a file. Like if your at a website and you have to upload something, you click a button and you find the file to upload. I'm not sure if I'm explaining this...
8
3,897
thread by: danielparod | last post Feb 7 '08 by: acoder
I am trying to set up my website so that our jingle plays when you load the page, but as I am new to web development, I do not know how. I taught myself how to use Dreamweaver CS3, which means that I don't know all that much, escpecially about Javascript. Can anybody explain how to get music to play onload in terms that a newbie can understand?...
3
1,263
thread by: romcab | last post Feb 7 '08 by: acoder
Hi guys, I would like to ask any idea on how I can make this program. I don't know if javascript can do this but I just want to try. What i want is to create a program or add a code to an existing account that will notify me if someone viewed my profile. For example, let say my profile to a forum and then if someone viewed it, I want to...
6
8,017
thread by: Romulo NF | last post Feb 7 '08 by: acoder
Greetings again to everyone, Im back to show this grid componenet i´ve developed. With this grid you can show the data like a normal table, remove the rows that you need, add rows, import data, call determined functions, and edit the data already present What will you need to use the grid? A table with standard markup and an ID to call the...
2
1,056
thread by: digitalclout | last post Feb 7 '08 by: Randy Webb
Just noticed on a new york times article, I could click any word that is NOT an hyperlink, and it automatically searches for that word on a different page. I'm looking through the source, and can't figure out how it's done, nor can I find any mention of it. Only double clicking text in a text field. ...
1
1,335
thread by: Brownie Guy | last post Feb 6 '08 by: Joost Diepenmaat
Today while researching a bug I found this script: var Event = { add: function() { if (window.attachEvent) { return function(el, type, fn) { var f = function() { fn.call(Dom.get(el), window.event); }; Dom.get(el).attachEvent('on' + type, f); }; }
3
946
thread by: theS70RM | last post Feb 6 '08 by: mrhoo
why cant i do this: for (var i=0;i < 100; i++) myarr = "foo" + i; i have to use myarr = blah any way around this?
4
3,549
thread by: crc294 | last post Feb 6 '08 by: acoder
Hi all, in order to experiment with AJAX, I created a site called Rob's Easy Budget Tool (http://budget.edgerob.net). Check it out if ya like. I found its functionality useful so I made it available to all as well as source code & resources used. In the course of making this site, I ran into a question. I exclusively use responseText to receive...
3
18,348
thread by: Arif Mohd | last post Feb 6 '08 by: mrhoo
i have given the stmt as document.addEventListener('onkeydown', my_onkeydown_handler, true); and the function defined was function my_onkeydown_handler() { alert('called');
3
1,914
thread by: misogsk | last post Feb 6 '08 by: iam_clint
Hi all, i need to create modal popup, which will have OK and Cancel button and radio list. Now i need to run method on server which deletes data from database and way of deleting will depend on user's choice from radiobutton list and if he click OK or cancel. Is it possible? Kind Regards.
1
1,714
thread by: toskydao | last post Feb 6 '08 by: acoder
I'm using a select object (options list) with limited length, wich makes a last part of long texts be hidden. The title property of select list does'nt work. So... how can I show the entire long text of an option by moving the mouse over a list option (showhint style) ? http://www.softart-dz.net/imgs/show.png thanks ...
2
2,395
thread by: Sebastian Fey | last post Feb 6 '08 by: RobG
hi, how do you select an option using javascript? i tried to setAttribute("selected", "disabled") to disable last selected and setAttribute("selected", "selected") for the newly selected. doesnt work :)
1
2,487
thread by: bravo | last post Feb 6 '08 by: acoder
hi using javascript i am able to capture the backspace key and also to disable it but it is not working for the back button on the toolbar. i am new to javascript have searched a lot but didnt got success.... the code i have written is like this <script language="JavaScript"> <!-- window.document.onkeydown = Backkeyhandler; function...
1
1,418
thread by: fps | last post Feb 6 '08 by: acoder
I am passing a XML object from ASP to javascript.then i am converting XML object to string using toString() method.This is works fine in FireFox but not in IE. This is the code xmlDatajs=<%=session("xmlDataasp")%>; xmlDatajs=xmlDatajs.toString(); Help me to solve this. Thanks for your reply.
1
1,519
thread by: rag84dec | last post Feb 6 '08 by: acoder
Hi, i tried the following to use a string from asp code in javascript but it didnt work....please tell me how to pass a string to a javascript <script language="JavaScript"> function ChangeAll(f) { alert(f);
1
1,013
thread by: dkm999 | last post Feb 6 '08 by: acoder
I am having fits with a bit of JavaScript. I am filling in a <DIV> with a text string fetched from a database, and find that as soon as the browser executes p.innerHTML = txtthe div (pointed to by p) does not contains just the text, but contains a link surrounding the text: <a>{text}</a>. Where did that come from, and how do I make it stop?
2
1,376
thread by: onlymukti4u | last post Feb 6 '08 by: acoder
Hi, I have a text box and a search button attached to it,when I am clicking the search button a popup is coming with a list of elements, but once I am clicking an element it is neither going to the text box nor the popup is getting dissapeared. Can any one help me in this regard.I need it in javascript only. Regards, Mukti
8
21,051
dmjpro
thread by: dmjpro | last post Feb 6 '08 by: acoder
i have a pge .... and i opening a modal dialog box from the page .. now my problem is ....... i want to acces the parent window of the modal dialog box ... how can i do it ...... plz helppppppp me out .... lot of thanx in advance ..............
3
1,438
thread by: Pocky | last post Feb 6 '08 by: gits
Hello. Does anyone know a javascript for making a little textbox appear when you mouseover a link/image? I made an example: http://i26.photobucket.com/albums/c104/World-of-nina/mouseover.png I really need it, but i suck at scripts D: Thanks ~
2
1,531
thread by: lokica | last post Feb 6 '08 by: lokica
Hy! I need some help or a suggestion... I would like to collect data from a web page automatically... So, there is one page on which you select some parameters and it throws you out a table with data. How can I get that data in some nice format so I could process that data further in PHP. I apologize if this isn't, maybe, a javascript problem,...
3
1,141
thread by: Ciri | last post Feb 6 '08 by: Dasty
Hi all, it's possible to have a js script that checks repeatly, say once each 5 secs, the last modified date of an image file on the server and, if changed, reload the page or update the page with the new image? 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.