bonjour a tous;
je voudrai modifier le script javascript myspace.js qui est situé dans C:alfrescotomcatwebappsalfrescoscriptsajax
je veux qu'au moment de la creation d'espace je met un aspect par default je ne sais pas si c'est possible?
je pense que la partie qui faut modifier est :
YAHOO.util.Connect.asyncRequest(
"POST",
getContextPath() + '/ajax/invoke/MySpacesBean.createSpace',
{
success: function(response)
{
if (response.responseText.indexOf("OK:") == 0)
{
MySpaces.refreshList();
}
else
{
alert("Error during creation of new space: " + response.responseText);
}
MySpaces.closePopupPanel();
},
failure: function(response)
{
alert("Error during creation of new space: " + response.responseText);
MySpaces.closePopupPanel();
}
},
//The third argument — variable callback — is a reference to a defined callback object(or an object written inline), which handles the server response.
"path=" + path.replace("_%_", "'") +
"&name=" + encodeURIComponent(spaceName) +
"&title=" + encodeURIComponent(spaceTitle) +
"&description=" + encodeURIComponent(spaceDesc)
);
}
},
mais je ne sais pas vraiment comment