On Thursday, June 20, 2013 8:28:33 AM UTC+2, Amit wrote:
>
> Hi All,
>
> I am getting StatusCodeException with Status Code as 0.
> I am added code like  <a href="mailto:[email protected] <javascript:>">
> [email protected] <javascript:></a>
> for sending mail in my GWT project.
> When i clicked on this link, I am getting error StatusCodeException with 
> Status code '0'.
> But i am able to send mail,Functionally it's working correctly but don't 
> know why StatusCodeException ?
> Is there any solution to resolve this StatusCodeException ?
>

A status code of 0 for an AJAX call means that the request was aborted. 
This is generally the case when "unloading" the app while an request is "in 
flight", and it's possible that your browser aborts all ongoing requests 
when following a mailto: link (it generally is the case when following a 
link that will trigger a download: the app is not unloaded but ongoing 
requests are aborted anyway, maybe mailto: links work the same).
As a workaround, I'd open the mailto: into another window (add 
target="_blank" to the link) 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to