Current Position:Home > Get a window with external website when loading iview

Get a window with external website when loading iview

Update:11-30Source: network consolidation
Advertisement
Hi,
i wrote a iView which calls a external website with a couple of computed parameters .
The iview has the following JS code :
function openSite(){
     var oChild = window.open("https://emea.website.com/login.jsp?un=usernameABC&pw=B0C328098DA439DEC12578B000407BED",  "website","width=768,height=1024");
     return false;
I call the function in the body  using  onload and as a anchor with onclick.
So far so good outside the portal. But when i call the iview in the portal nothing happens.
When i click on the link, it brings me to the correct website.
My Question : What do I have to do to get the window open within the portal?
Regards,
Kai

The Best Answer

Advertisement
Hi,
i found a solution by myself:
My body tag was not the only one within the HTML, hence no onload method was called.
I added a javascript tag and called the javascript function there.
Thanks for trying to help.
Kai