Why don't use a iframe, inside iframe call a your xbap application.


On Wed, Dec 22, 2010 at 12:35 PM, stegzzz <[email protected]> wrote:

> Hi, I have an XBAP application that I want to run from my django
> website. At the moment I'm just setup on my local machine using the
> development server and it is working OK for straightforward html pages
> and the XBAP program works OK if I just click on the XBAP file.
>
> However when I want to run the XBAP from django I just end up with the
> xml contents of the XBAP file onscreen.
> I was trying to use a view function like this:
>
> def current_XABP(request):
>    s=open('C:/Python26/Lib/site-packages/django/myproject/
> WpfBrowserApplication1.xbap')
>    xml=s.read()
>    s.close()
>    return HttpResponse(xml, mimetype="application/x-ms-xbap")
>
> Any ideas what I'm doing wrong?
>
> Thanks, stegzzz
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<django-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Greetings / Saludos
Gerardo González Cruz (GGC)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to