Hi,

Are you doing cross-domain ajax, or is this all within one site?

Does this work?
def generate_birt(request):
    url = 
'/birt/frameset?__report=report/test.rptdesign&sample=my+parameter&__format=pdf'
    return  HttpResponseRedirect(url,mimetype='pdf')

Collin

On Monday, November 24, 2014 8:18:22 AM UTC-5, swapnil srivastava wrote:
>
> Ext.Ajax.request({
> url: 'generate_birt/',
> });
>
> in view.py 
>
>
> def generate_birt(request):
>     url = '
> http://10.2.114.2:8080/birt/frameset?__report=report/test.rptdesign&sample=my+parameter&__format=pdf
> '
>     return  HttpResponseRedirect(url,mimetype='pdf')
>
> following error throws  
>
>
> XMLHttpRequest cannot load 
> http://10.2.114.2:8080/birt/frameset?__report=report/test.rptdesign&sample=my+parameter&__format=pdf.
>  
> No 'Access-Control-Allow-Origin' header is present on the requested 
> resource. Origin 'http://10.2.114.2:8000' is therefor
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f4b5274d-9171-49ac-9c26-5c4392979734%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to