473,796 Members | 2,652 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.
3
1,135
usafshah
thread by: usafshah | last post Apr 10 '08 by: acoder
In html/css/javascript, is it possible to change the color of the line for which you set certain parameters like if the line begin with # , then change with color of the line blue example: ================================================ This is normal line #This line should automatically get blue via javascript or whatever the next line...
8
1,497
thread by: CF FAN | last post Apr 10 '08 by: CF FAN
We have an issue with refreshing pages using JavaScript. We have got three pages. From page 1, page 2 is opened by window.open and from page 2, page 3 open up by window.open and also closes page 2. Now on submitting page 3, can we refresh page 1 ? Is there any method to do this using JavaScript ?
7
2,763
thread by: ThePope78705 | last post Apr 9 '08 by: gits
Hi all, I have a web form that is generated on the fly. I need to insert some javascript into the form to do validation on the contents of each text box when the text box loses focus. here is what I have <SCRIPT language=JavaScript> <!-- Begin function filterNum(obj) { re = /^$|!|$|<|>|"|'|%|,|&|%|;/g; // remove spcial charcters obj.value...
7
1,969
thread by: mukeshrasm | last post Apr 9 '08 by: gits
Hi I want to find the color vaule of text which is of different color when user will move mouse on the text/charector.It should display its color value in RGB format. like Code: ( text ) <p>Hello Muksh Kumar. Welcome to thescripts.com!
3
2,595
thread by: Andrewh | last post Apr 9 '08 by: acoder
Hi, I am having a bit of a problem with using xmlhttp. The code of the javascript file is shown below used in Windows XP. var xmlhttp = null; function SetURLDiv(url) { if (window.XMLHttpRequest) {
1
1,785
thread by: nicky77 | last post Apr 9 '08 by: acoder
Hi, apologies in advance is this may be a nonsensical ramble, but I'm hoping someone can give me some advice on how to solve the following problem: I'm developing a site where the main content is loaded dynamically (and using a fade effect) into a placeholder div using AJAX. This is all working fine, however the tricky part for me is making...
2
1,582
thread by: soms2m | last post Apr 9 '08 by: acoder
hello all, I am a just a beginer in this community also to this topic, i want to load a page using ajax. the parent should not be refreshed also its should have a dim background color which one i specify, also when loading another page the dim color should fill whole window. When the parent page increse in height the dim property should fill...
7
2,220
thread by: Amzul | last post Apr 9 '08 by: acoder
hello all, (congratulations for the new name admins) i have this anoyying issue that i cant resolve.. :( i am trying to open a small window (popup) with javascript. all i want in that window is an output of a javascript i have. here is the function:
1
1,494
thread by: mariaz | last post Apr 9 '08 by: pronerd
Hello, I have an array in my javascript file: var locations=new Array(); and I want to pass the attributes of the array into my java file, does anyone know how can this be done? Thank you in advance!
1
1,387
thread by: DeepikaRao | last post Apr 9 '08 by: acoder
Hi. Iam able to get macid of server machine using javascript, but iam not able to get clients macid. can anyone help me out. Thanks
1
1,232
thread by: devabratkumar | last post Apr 9 '08 by: acoder
Hi getElementsByTagName("*") returns an array of objects which are tags present in the document for eg, var a=getElementsbyTagName("*") ; 'a' would be an array of Tag objects a.nodeName gives the name of the tag eg, IMG,SCRIPT, etc
1
1,524
thread by: selvialagar | last post Apr 9 '08 by: acoder
i have link like this... <a href="javascript:showCal('Calendar2')">Select Date</a> i have a radio button named 'rent'. now i want to disable this link....but it should be enable when i click the radio button....is it possible....plz give some ideas...
1
1,781
techtherapy
thread by: techtherapy | last post Apr 9 '08 by: acoder
Hi guys and gals, This is a mootools js question, for any of those familiar with it. I'm using the accordion on this page: http://admire.previsuals.com/productions/index.php/resources.php Now when I test across browsers the only issue I have is when testing in ie6, the background color for the very first element is not displaying. The...
2
1,673
thread by: majidtou | last post Apr 9 '08 by: acoder
Hi , We have an HTML page which is using AJAX. We make an AJAX call which retrieves a table with mutiple rows. We need to extend this functionality. In the table, we want to put a button on each row. When this button is pressed, we want to update just the single row and keep the rest of the table the same. Currently the AJAX call looks...
1
2,409
thread by: gilan | last post Apr 9 '08 by: acoder
I'm building a javascript WYSIWYG editor using designMode. My main problem right now is that I'm trying to create dragging functions for certain classes of divs, but Firefox's own designMode drag-drop functionality keeps getting in the way. I managed to disable the similarly-annoying resizing feature using: execCommand("enableObjectResizing",...
12
1,604
thread by: watdaduck | last post Apr 9 '08 by: acoder
Can someone guide me in the right direction? I have a drop down with values of 1 through 14 (1 = 1 day, 2 = 2 days, 3 = 3 days, ect). The onchange the drop down should calculate the days starting from today. If today is 4/1/08 and the user selects 3 then the output should show 4/4/08. However, my problem is that the date is not changing. ...
23
2,094
thread by: wangers16 | last post Apr 9 '08 by: acoder
Hi all, Does anyone know how to get JavaScript to retrieve the hyperlinks that are stored on a page and then use them later on? Thanks in advance
5
2,133
thread by: deepikashalini | last post Apr 9 '08 by: gits
Hi, how to validate the textbox accepts 10 Numbers only. give sample code....
4
1,116
thread by: felic | last post Apr 9 '08 by: gits
Hi all, i have got: (syntax only to visualize) elem = elem // object reference of elem a = 'parentNode.parentNode'; //manual build string What i want to achieve:
1
1,320
thread by: Geoff Cox | last post Apr 8 '08 by: Geoff Cox
Hello, I have an image map of a house and when the user clicks on part of the building a number is given to the area, e.g. <area shape="rect" coords="65,8,78,16" href="javascript:Get1(2);"> Is it possible to mark where the user has clicked? Can the area be made to change colour for example? Or can a cross appear where the mouse was...
1
16,611
thread by: JTreefrog | last post Apr 8 '08 by: gits
Hello - I've read a ton of stuff about deleting duplicate values in an array. They are all very useful - they just haven't addressed an array of objects. Here's my array: var sDat = ; The array is produced from JSON sent to me from a database query. I can't do a "group by" in the sql query - i actually need the repeats in a different...
1
1,197
thread by: jonavanmona | last post Apr 8 '08 by: gits
Hi, i found this strange thing in firefox. if i alert the output of a simple 'for in' loop, it returns first the right value and then: function forEach(){ why is it doing this? it gives an error and its not in the array at all..?
1
1,643
thread by: saravanatmm | last post Apr 8 '08 by: acoder
i want script code for the hover onn the text or images like this url http://www.istockphoto.com/file_search.php?action=file&lightboxID=2351475 Or double click on the text it shows the corresponding details on the popup windows like this url http://www.answers.com/test?cat=technology when double click on the text it shows...
1
3,103
thread by: wmbrae | last post Apr 8 '08 by: acoder
I trying to make a javascript document reader in 2 frames. The left frame displays the document, the right frame shows a list of document links. This is as far as I got http://www.geocities.com/viewdoq/opening.htm (there are Firefox and Ie, and Ie version incompatiblities and clean-up which I will work on later) Does anybody have one...
5
2,535
thread by: obwatter | last post Apr 8 '08 by: acoder
i'm trying to recreate what i *think* should be a simple CSS/JS <div> content reveal / swap. just like this one ("A Tale of Two Pets", near bottom of page): http://www.castorpolluxpet.com/our_story been trying to figure it out on my own for about 2 days now & have run out of ideas. *** NOTE: my JS skills are currently limited to...

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.