youve forgotten the new keyword:
function deleteRole(roleId) {
var req = new Request({
method: 'post',
url: '/Role/Delete/' + roleId
});
req.send();
}
Fábio Miranda Costa
Engenheiro de Computação
http://meiocodigo.com
On Sat, Jul 4, 2009 at 8:52 AM, websam <[email protected]> wrote:
>
> I try to do this :
>
> function deleteRole(roleId) {
> var req = Request({
> method: 'post',
> url: '/Role/Delete/' + roleId
> });
> req.send();
> }
>
> But get this error in firefox 3
>
> uncaught exception: Security error (NS_ERROR_DOM_SECURITY_ERR)
>
> The web application is an asp.net mvc app.