Type: Posts; User:
$display="<select name='selDiscId' onclick='alert(this.options[this.selectedIndex].value;'>";
(The selected value is displayed).
Thanks. Your comment about the form submitting solved it. I realised I was clicking Enter to move off the changed field which resubmitted it. Thanks for the Christmas present.
I have a table with 15 rows containing a number of textboxes. If I change a numerical value in the last box in a row then, from the next row down to the end, the values must start from one more than...
Tried that but it didn't make it work. I notice there's a whole lot of stuff about this on the web which I'll work through.
I have been playing with your idea using document.write and see now how to use it. It's much easier than what I was trying to do. However, it seems to want to write to a new page. I need...
Thanks. The new row is actually built as a result of an onclick event and I thought it would be quicker to add the row at the client rather than sending to the server unnecessarily.
I have a table nested in a row of another table, briefly:
Thanks very much. It took a few hours but I eventually got your reply working in my context. Very useful, this forum.
I'm extending the number of rows of a table by cloning the last row (=newLastRow).
Each row has a single input tag in it, with a name which includes the row number and an onclick function call...
A night's sleep and the solution is obvious: call th table one thing and the body something else and bingo.
I have to input an undefined number of rows of data. Existing data is read from a database. There is an Add button after the last row.
I can see how to add the next row: there is a hidden blank...
I have got this working exactly as I want it by using ShowHide on the div. Much better than my original idea.
I click on a text box - the div with several options in it opens - I choose an...
Exactly what I need. Thanks very much.
Thanks. I think I get the idea, but the point I don't understand is how to
"send the data in the popup back to the parent window in a query string".
My test popup form is:
Thanks, Tirna. I thought of that but if I put it in a new popup window how do get it to return a value to the calling window?
I would like to find something like prompt(), but which allows me to put my own controls in the prompt rather than a text box, specifically radio buttons. Is there already a solution to this that...