Posts that Aldo is monitoring

Subscribe to Posts that Aldo is monitoring 3 post(s) found

Aug 11, 2007
Avatar Sebastien Gr... 198 post(s)

Topic: win.setURL(...) not working in IE6 - anybody have a fix?

on http://prototype-window.xilinus.com/samples.html, sample #2 works on IE and it’s an URL content.
Could u show your HTML code?

 
Aug 7, 2007
Avatar drybij 2 post(s)

Topic: win.setURL(...) not working in IE6 - anybody have a fix?

Ok – this is a weird one and took quite a bit of work to pin down.

Summary: It appears that in IE, when I use an anchor tag onclick event to call my JavaScript function to open the window, the Window opens but the iframe content is not retrieved. But if I use a button element onclick event (like in the example) the iframe content is retrieved properly. Is this mentioned somewhere?

 
Aug 7, 2007
Avatar drybij 2 post(s)

Topic: win.setURL(...) not working in IE6 - anybody have a fix?

HELP! I’m using PWC v1.3 and trying to popup a window which contains content from another server call. The setURL() feature is perfect for this and it works perfectly in FireFox, but not in IE6. I’ve copied the code verbatim (with minor modifications) from the setURL() example on the PWC demo page. Interestingly, if I put an alert(‘blah’) after win.showCenter() the content does appear correctly in IE6. Here is the code snippet:


  popupWindow = new Window({
    className      : "alphacube",
    title          : "Sample",
    width          : 640,
    height         : 480,
    destroyOnClose : true,
    recenterAuto   : false
  });

  popupWindow.setURL('http://www.mywebsite.com/scripts/myscript');

  popupWindow.showCenter();