Open the xml file in a new tab with javascript??
Hello all,
I have given Denes Kubicek example on Export to xml files straight from Reports http://htmldb.oracle.com/pls/otn/f?p=31517:118:651492651950833::NO .
I am glad to say that with a few changes it also works on Interactive reports.
However i am trying to implement something different.
I wish to have the same feature but within an ajax request, i don't want to submit the page.
I already know how to fill in all the variables required.
the only problem is on how to return the file to download.
In your method as soon as the page submits you present the file to download.
I want to be able to do that but after an ajax request and not after a submit.
I am quite sure the problem is about http/header mime types.
I can return the whole xml into the javascript. I can even see it in an alert() or in the page with document.write(); but i haven't found a way on how to make it as a file download automatically.
Can anyone tell me how to solve this??
Regards Pedro.