Skip to Content
0
Former Member
Nov 21, 2005 at 02:40 PM

Javascript not working in Internet Explorer

173 Views

Hi,

I wrote a javascript function to redirect sites in my bsb application:

function gotoUrl(url)
{
    var destination=eval(window.parent);
    destination.location=url;
}

In my view I call the function like this:

  <xhtmlb:toolbarItem>
    <xhtmlb:toolbarButton id            = "b_create"
                          text          = "anlegen"
                          onClientClick = "gotoUrl('createnorm.do');"
                          groupId       = "s_c_s_m"
                          down          = "<%= b_create %>" />
  </xhtmlb:toolbarItem>

The javascript function "alert('Hello World'); does work in the IE and in my firefox the redirect is working as well but I can not find the problem with the IE.

If you have an idea, please let me know ^^.

mfg

Stefan