cancel
Showing results for 
Search instead for 
Did you mean: 

open XML-file in a new window

Former Member
0 Kudos

Hi,

I create an XML file in my BSP application and when ready the standard page shows up for the end user to select either Open, Save or Cancel. Everything is Ok, but when they press Open, the file is opened in the same window and that means the the BSP application is gone.

Now, they want me to open the file in a new window, so that the BSP application remains. I´ve tried either with Iframes or with Javascript code and nope ... doesn´t work.

<% if display_url is not initial. %> <script language="Javascript"> url = "<%=display_url%>"; window.open(url, "Zusatz", "width=400, height=400"); </script> <% endif. %>

has anyone an idea on how to do it ?? Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

This code of yours should work.

<% if display_url is not initial. %>

<script language="Javascript">

url = "<%=display_url%>";

window.open(url, "Zusatz", "width=400, height=400");

</script>

<% endif. %>

what happens, it doesnt open new window at all or new window is opened but xml doesnt show up?

Regards

Raja

Former Member
0 Kudos

Hi,

new window is opened, popup window with options shows up and I press Open. In this case, the new window is closed and the file is opened in the window for the BSP application.

Former Member
0 Kudos

Hi Jorge,

Try window.open(url, "target=_blank").

Regards,

Narinder