473,543 Members | 1,903 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
38,626
thread by: slekshmipriya | last post May 29 '07 by: acoder
Hai friends.I have a pblm with my drop down list onchange event.The pblm is as follow I have a drop drown list with items 1,2 ,3 etc. On selecting an item from the drop down list i want to populate that much text boxes for entering values.for example if i select 3 , three text boxes are to be created.if 1, one text box like that. So with out...
1
38,706
thread by: mhito | last post Jan 29 '08 by: acoder
hi guys, My first post yes. Thanks for all the nice posts and threads in this forum - great stuff. Now, here's my question: First off, the url : http://catfish.businesscatalyst.com/bcimg.htm When you get there an alert of the div/img name in question appears. It splits and grabs the 'name' from images/name.jpg.
3
38,768
thread by: user | last post Jul 20 '05 by: user
hi there has anyone of you writte a function to encode html from like '&' -> '&' and likes to share it with me.. or can anybody give me a hint how to set up something like that. cheers me. ralphie
5
38,857
thread by: TheKeith | last post Jul 20 '05 by: Lasse Reichstein Nielsen
Is there any wildcard, like *, for addressing all the element ID's on the page at once, like if you want to hide all layers at once. For example: document.getElementById('*').style.visibility = 'hidden'; I know the above doesn't work but you get what I'm driving at right? Is there anything like that for that method or in javascript in...
12
38,936
thread by: zhisol | last post Jul 20 '05 by: Stephen
how can i check if file exist in current directory (in javascript)? -- pozdr;) zhisol
5
38,990
thread by: chakradhari.ashish | last post Jun 7 '07 by: chakradhari.ashish
Does anybody know how can I load an html page inside a <div</div> where the content gets update on the onclick even of anchor <a href=> </a>? I googled around and followed some links pointing me that it is possible to use javascript combined with CSS for doing this? Any ideas? Chakra
9
38,999
thread by: DonD | last post Nov 23 '05 by: Joe D Williams
The code: <a href="/art/visit/openhouse03/images/17.jpg" target="_blank" onclick="popCenter(this.href,'name','500','500','no'); return false;"> <img src="/art/visit/openhouse03/images/thumb17.jpg"></a> The problem: I always get two windows. I have the required "return false". I found a post (http://tinyurl.com/avjlh) that addresses my...
13
39,413
thread by: Oleg Konovalov | last post Nov 14 '06 by: VK
Hi, I am working on a web application which among other things uses DHTML, Java and Javascript. It populates web page based on the contents of the database (resultset), and next to each row there is a checkbox (v1) allowing to select that row for changes (e.g. delete, update, etc.) So we are creating an array of checkbox, correct ? Of...
21
39,441
thread by: James Black | last post May 27 '06 by: Michael Winter
I am curious if there is a benefit to set attributes directly, in my javascript, or to use setAttribute. For example, I have this: var input = document.createElementNS(xhtmlNS, 'input'); input.setAttribute('width', '20em'); I could have just called input.width='20em' When is each better to use, or is there no difference between them?
4
39,445
thread by: Dipin | last post Jul 20 '05 by: DU
Hi All; I have this javascript which is adding a new button to the column in the row which is created dynamically, the innerhtml shows that the onclick event is correctly added but it never gets invoked when I click it. newcol = doc.createElement("TD"); newbutton = doc.createElement("input"); newbutton.name = "newChange"+__uid;
11
39,493
thread by: PerumalSamy | last post Jun 4 '09 by: acoder
Hi, I am developing program using asp.net in which i am using javascript coding in particular part. I need to find height and width for loaded image file. How can i write coding for it.
8
39,502
thread by: brett | last post Jul 23 '05 by: Thomas 'PointedEars' Lahn
How can I find the height and width of a webpage? Say I want to make sure someone's webpage is within an 800X600 viewing area. Width is the most important but if I can get width, I should also be able to get height. I don't need to modify the page in anyway. Just get the width and height. I can reference the page in an iframe, cfhttp...
4
39,523
thread by: soni2926 | last post Jul 16 '07 by: David Mark
hi, i have a page that has a search box, when the user types something into i'm able grab the data, but wanted to strip out all the quotes (double and single) from it, what's the best way to do that? basically i need to pass the search words to another page via the url, but want to strip the quotes out first. Thanks.
1
39,552
thread by: maflu | last post Jul 20 '05 by: Mike
Hello, I am rather a beginner in Javascript and have the following problem. There is a drop down list on my Web page with various values to be selected by the user. Once the user has selected a value, he/she clicks on the submit button. When he/she does that I would like 2 things to happen: the selected value of the drop down list is...
5
39,640
thread by: laredotornado | last post Aug 16 '08 by: jdalton
Hi, Please let me know if there is a better place to which to post this message. I'm trying to use prototype.js and wondering how I use it to find elements on page with class = "myClass"? Thanks, - Dave
3
39,681
thread by: yzzzzz | last post Jul 20 '05 by: Grant Wagner
Hi I have: <div onkeypress="go(event)">...</div> and: function go(event) { alert(event.keyCode); }
9
39,754
thread by: Michelle | last post Aug 25 '05 by: ASM
I have a div that is initially empty. Clicking on a button will add some text boxes and other controls so the user can add additional records. In IE all works fine but in Netscape 7.0 when I add another "record" the values for all previous controls within the div are wiped out. In the javascript function where I add on to the html in the...
11
39,757
thread by: Giakko | last post Apr 14 '06 by: Randy Webb
Dear reader.. i have a page that opens a popup window from this popup window i have to change some opener divs innerHTML content, how can i do? this is how i do, (and it doens't work): THE MAIN WINDOW: <div id="'myDiv'"></div> <input type="button"
7
39,830
thread by: Robert Mark Bram | last post Aug 7 '05 by: Richard Cornford
Hi All! How do you get the length of an associative array? var my_cars= new Array() my_cars="Mustang"; my_cars="Station Wagon"; my_cars="SUV"; alert(my_cars.length);
3
39,867
thread by: Stefan Mueller | last post Nov 30 '05 by: Stefan Mueller
I've an input box <input type = "text" name = "MyInput" value = ""> and a selection <select name = "MySelection" size = "1"> <option value = "1">Entry 1 <option value = "2">Entry 2 </select> With
3
39,928
thread by: Daz | last post May 4 '07 by: Daz
Hi everyone. I am passing data through JSON objects between the server and client via Ajax. I would like to know if it's possible to check for the existence of a property within that object without using try and catch blocks? I was hoping that there might be something else that will just return null if the property doesn't exist. If...
1
40,009
thread by: Mike Gifford | last post Jul 20 '05 by: DU
Hello, I'm right now using window.location.reload() to refresh the browser. It behaves as I would want in Mozilla/Netscape, but not in IE. I want to refresh a form, but keep the cached content as it has been filled out be the user.
12
40,118
thread by: ssh | last post Jan 28 '11 by: Henry Ren
function testfn(name) var tbody = document.getElementById('hellospace').getElementsByTagName('tbody'); var row = document.createElement('TR'); var cell1 = document.createElement('TD'); cell1.align="left"; cell1.style.height = "22"; cell1.style.width = "15"; cell1.valign = "middle"; cell1.className = "dwInfo"; var inp1 =...
7
40,177
thread by: Willem | last post Jul 6 '06 by: harinda
Can someone tell me how I can get a page(any page) on the Internet to refresh automatically every 5 minutes. I was thinking along the lines of having a HTML file on my C-drive with JavaScript to do so. It should be possible, Right? I don't know much about JavaScript. Thanks for the help.
5
40,257
thread by: d3vkit | last post Apr 22 '09 by: gits
Okay I bet this is the easiest thing to figure out, but I've tried EVERYTHING to no avail. Maybe it's just not possible but I don't see why not. I have a php page which is grabbing content from mysql and looping with while to display it. Each entry has a unique id, which I am setting as the name (the id is already taken in my script). I then...

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.