f['txt_price'].value = (f['combo_1'].value).toFixed(2);
This is something I was working on but no results so far.
<select name="combo0" id="combo_0" onChange="change(this);" style="width:200px;">
<!-- I would like to Multiply this field -->
<select name="combo1" id="combo_1" onChange="change(this)" style="width:200px;">
<!-- and this field -->
<select name="combo2" id="combo_2" onChange="change(this);" style="width:200px;">
<!-- To present an outcome to this field -->
<input type="text" name="txtPrice" id="txt_price" onChange="change(this);" style="width:200px;">
I am now wanting to expand the program to allow users to optionally enter their own strings and the program will use all the photos from www.flickr.com which use that string as a tag.
How can I then use this variable to access the opener of 'window' ?
Meaning, I dont want to access it as such:
but as: window.+newVariable
So it uses the contents of newVariable to access the opener.
I need this because I have a couple of variables which I need to concat to eachother as a string, and this string in turn is the variable I need to access from window.opener.varSomething where varSomething is the variable that stores the variable I need to access.
I am writing a litle script that will go to my mysql table and take out 20 rows ( from about 10,000 rows ) based on the WHERE statement.
Then I want to step through these 20 rows displaying just two filds in this fashion:
First, I want to display one field in a "box" ( using divs and css ) then wait for a form input. Then while keeping the first displayed box and field display the second field in a similar box a fee lines below. Wait for a form input update some data.
Then onto the next row.
Is this the best way to do this ?
Or would php and having a couple of extra trips to the server for form processing be better ?
Can I have 2 variables upon one select? The code below is created dynamically with php from a database, and displays a dropdown select box, the only thing is that the values: Oliver Franchis, Pedro pastor, Maria China... have unique ID's and when the name is selected I would like the ID allso to be.
<!-- Populate list with friends START--> var newTextbox = document.createElement('select'); newTextbox.className = 'fn-select'; newTextbox.name = "opcion";
//First user in the populated select menu is the person Loged in var op1 = new Option("", "Oliver Franchis"); newTextbox.appendChild(op1); var txt1 = document.createTextNode('Me | Oliver Franchis'); op1.appendChild(txt1);
//Next users are my friends in the database var op1 = new Option("", "Pedro pastor"); newTextbox.appendChild(op1); var txt1 = document.createTextNode('Pedro pastor'); op1.appendChild(txt1); .....
I have a form and if the user presses submit, and the "password" and "retypepwd" are the same. Does anyone know how, and where to include a variable that if "password" and "retypepwd" are the same, the page is redirected to success.htm and if they are not the same, fail.htm?