Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to get for your free account now!
Indirect assignments in javascript
Name: jimg Date: December 5, 2007 at 14:19:10 Pacific OS: 2003 Server CPU/Ram: 3g P4, 4gb Manufacturer/Model: Asus
Comment:
I have a form text box that I need to load, but the name of the field is a variable (quan1, quan2, etc.). The following code results in a blank alert and the box remains empty. I think I've tried all the simpler combinations. Any suggestions?
function spcfnc(x,value) { setVar('window.order.quan'+x,value) alert(eval('window.order.quan'+x).value) } function setVar(y,z){ y.value = z; }
Summary: When i use an event handler in javascript, i will be able to get the name of the image by using event.srcElement. But this method does not work in firefox. What is the alternate method to get the name...
Summary: ok my m8 helped me by writing me a code in java script to change front colour background colour front size and style its for a college project and i dont have long left well it all worked but the font...
Summary: Hello! Im trying to insert an image using javascript. My problem is, i cant use the standard: document.images["image_name"] This is because the image is in a totally different folder. I have a variabl...