Re: [Dev] [DEV][Jaggery][javascript] jagg.post() returns to the error function while post fuction implements properly.

2015-11-20 Thread Sajith Ariyarathna
Hi Ishara,

Can you share the exception log here? So we can look into it and figure out
whats happening.

Thanks.

On Fri, Nov 20, 2015 at 12:23 PM, Ishara Cooray  wrote:

> I have the following code implemented in a jaggery app. In the reInvite
> function sends an email and returns email. The issue is though the email is
> sent successfully it throws an error.
>
>
> jagg.post("../blocks/tenant/register/invite/ajax/invite.jag", {
> action:"reInvite",
> email:email
> },
> function (result) {
>   //do something
> },
> function (jqXHR, textStatus, errorThrown) {
> //handle error
> });
>
> What could be the possible reason for this error?
> Appreciate your inputs.
>
> Thanks.
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sajith Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/
mobile: +94 77 6602284, +94 71 3951048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][Jaggery][javascript] jagg.post() returns to the error function while post fuction implements properly.

2015-11-19 Thread Ishara Cooray
I have the following code implemented in a jaggery app. In the reInvite
function sends an email and returns email. The issue is though the email is
sent successfully it throws an error.


jagg.post("../blocks/tenant/register/invite/ajax/invite.jag", {
action:"reInvite",
email:email
},
function (result) {
  //do something
},
function (jqXHR, textStatus, errorThrown) {
//handle error
});

What could be the possible reason for this error?
Appreciate your inputs.

Thanks.
Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev