Si, in effetti è come dici.
Ho quindi cambiato il document type, però il mio problema si è spostato sull'associare il problema alla riga, ovvero al tr.
QUi sotto il codice:
Codice PHP:
<!doctype html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<HTML> <HEAD>
<TITLE>
SSP Version 0.0 - USER d - Anno: ND - Azienda ND </TITLE>
<meta name=generator content="Prove e test ssp">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="walt disney fumetti topolino paperino immagini italia francobolli zio paperone barks scarpa gottfredson cavazzano rosa">
<link rel="stylesheet" href="../../COMMON/CSS/top.css" type="text/css"><link rel="shortcut icon" href="../../COMMON/ICONS/test.ico" type="image/x-icon">
<script language="Javascript">
var pars="";
function AIC(me){ //AddIDToidchanged
me.style.background = "#0AFF00"; //background-color to green to let user know must use ajax
var melength=me.name.length; // had to use length bec autoid can get larger than just 1 ,2,3,4, or 5 digits.
var id=(me.name.substr(3,melength)); // will always be 3(f00) then autoid digits.
if (id){
var str=document.getElementById("idchanged").value; // if not sure how works then unhide the field on the form
if (str==""){
document.getElementById("idchanged").value=str + id;
document.getElementById("nascosto").value=str + id;
}else{
if (!str.match(id)){
document.getElementById("idchanged").value=str + "," + id;
document.getElementById("nascosto").value=str + "," + id;
}}
// this added for ajax
if (pars==""){
pars=me.name + "=" + me.value;
}else{
pars=pars+"&"+me.name+"="+me.value;
}}
}
function SetActiveID(me,form){
//alert (me);
var id=(me.name.substr(12,14));
form.activeid.value=me.name;
document.getElementById("nascosto").value=me.name;
}
function SetActiveID_2(me){
//alert (me);
var id=(me.name.substr(12,14));
//form.activeid.value=me.name;
//elem = document.getElementById(ID).value;
document.getElementById("nasc_new").value = me.name;
}
function hasClass(obj) {
var result = false;
if (obj.getAttributeNode("class") != null) {
result = obj.getAttributeNode("class").value;
}
return result;
}
</SCRIPT>
</head>
<form method=post action="./../ABILITAZIONE/save.php"><table id = "playlist" frame = box border = 1 cellspacing="0">
<tr><td width="0%"></td>
<td>[b]Legal entity enabling [/b]</td>
<td>[b]Roles[/b]</td>
<td>[b]Password modification[/b]</td>
<td>[b]Other user details[/b]</td>
<td>[b]Login name[/b]</td>
<td>[b]First name[/b]</td>
<td>[b]Last name[/b]</td>
<td>[b]E-mail address[/b]</td>
<td>[b]Enabled[/b]</td>
</tr>
<tr><div id= "ID" onclick="SetActiveID_2(this,id);" onFocus="SetActiveID_2(this,ID); " name ="062be1fc-ca11-102a-9eae-71cfbb3cf82a">
<td width="0%"><input type="hidden" name="USER_ID[0]" value="062be1fc-ca11-102a-9eae-71cfbb3cf82a" disable = "disabled"></td>
<td><input type="submit" name="LE_AB[0]" value = "Abilitazione aziende"></td>
<td><input type="submit" name="ROLES_AB[0]" value = "Ruoli"></td>
<td><input type="button" name = "Mod_pwd"
onClick = window.open("./../PASSWORD/password.php?USER_ID=062be1fc-ca11-102a-9eae-71cfbb3cf82a","newwin","scrollbars=no,status=no,resizable=yes,top=300,left=150,width=300,height=750") value = "Password modification " ></td>
<td><input type="button" name = "Mod_dett"
onClick = window.open("usr_details.php?USER_ID=062be1fc-ca11-102a-9eae-71cfbb3cf82a","newwin","scrollbars=no,status=no,resizable=yes,top=300,left=150,width=300,height=750") value = "Other user details " ></td>
<td>david </td>
<td>d</td>
<td>d</td>
<td>cicici</td>
<td><textarea rows="1" cols="1"class="boldblue"style="font:arial;"name="062be1fc-ca11-102a-9eae-71cfbb3cf82a"WRAP="virtual" onchange="AIC(this)" onclick="SetActiveID(this,this.form);"onFocus="SetActiveID(this,this.form); "></textarea></td>
<td> <input type= 'checkbox' name='FLG_ROLE_CODE_EDIT'></td></div></tr>
</table>
IDs Changed<input id="idchanged" name="idchanged" value="">
Active Element's Name:<input name="activeid">
</form>
<form action="pippo.php" method="POST">
<input type="text" id="nascosto" name="idchanged" value="">
<input type="submit">
</form>
</form>
<form action="pippo.php" method="POST">
<input type="text" id="nasc_new" name="idchanged" value="">
<input type="submit">
</form>
</body>
</HTML>
Sia che la riga la 'taggi' con div, che con a, lo script non mi funziona. Continua invece a funzionarmi sulla singola cella (la textarea...). Come si può far funzionare? :master: