You are not logged in.
How to change the background color in a text field when edited? When saving the field returns to default. The idea here, not to forget to save before editing another record or exit.
Example, date and checkbox fields are edible. At the right side, for each row is a link "save".
(click to enlarge):
PHP Code:
http://user-contributions.org/projects/ … er_old.txt
Markku
Offline
You might have to use something like AJAX...I don't know it tho.
Offline
I will check if easy to install.
One other why could be something similar I am currently using when mouse is above a row. Where can I find other similar tags?
onmouseover=this.style.color="red" onmouseout=this.style.color="black"
Markku
Offline
maybe....
javascript as some sort of 'onkeypress' right? on that check if the box is empty, or changed from it's original value, and then if it has been changed, set the style to it.
James
Offline
javascript as some sort of 'onkeypress' right?
Thanks, found a helpful script.
http://www.webdeveloper.com/forum/print … hp?t=28750
In my case I copied the shorter sample:
function ini(a){
a.style.backgroundColor = '#FFFFFF';
}
onclick="ini(this)"
Sample:
INPUT TYPE=text size="15" onclick="ini(this)" name="dateApp" value="$myrow[DateApp]
PHP Code:
http://user-contributions.org/projects/ … rowser.txt
Markku
Offline
wouldn't onFocus and onBlur be a better idea?
DaDeXTeR (Martin Lefebvre)
My screenshots on PicasaWeb
[img]http://imagegen.last.fm/dadexter/recenttracks/dadexter.gif[/img]
Offline