Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Open the xml file in a new tab with javascript??

PedroMendezJun 4 2009
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 2 2009
Added on Jun 4 2009
0 comments
487 views