ASU Web Community

Can TinyMCE / Jquery "pop-up" work in IE?

Thursday, October 9th, 2008 - 9:43 am
  • aoblt

I'd like to create a Drupal page on which a link opens a small window, with the existing window remaining as is.

I've tried out the "pop-up" link options available in TinyMCE; http://geography.asu.edu/test_popup is a test page. The function works nicely in Firefox 2.0 and 3.0, and in Safari 3.1.2, but in Explorer, the link opens as a full-size window that replaces the original one.

Here's the current code:

span class="primary_heading">Ann Fletchall</span> 
<a href="/files/fletchall_statement.htm" onclick="window.open('/files/fletchall_statement.htm','Ann Fletchall','scrollbars=yes,width=600,height=400,left='+(screen.availWidth/2-300)+',top='+(screen.availHeight/2-200)+'');return false;" title="Ann Fletchall" class="body">Research Statement</a.

My site uses Drupal 5.2.

I'd be very appreciative of suggestions on how to adjust this code so it works in IE. A different code that creates a similar effect would also be fine!

Thank you for any suggestions!

Thursday, October 9th, 2008 - 11:52 am
  • aoblt

Here's the code, presented more clearly:

<span class="primary_heading">Ann Fletchall</span> 
<a onclick="window.open('/files/fletchall_statement.htm','Ann Fletchall',
  'scrollbars=yes,width=600,height=400,left='+(screen.availWidth/2-300)+',top='+(screen.availHeight/2-200)+'');
   return false;"
   href="/files/fletchall_statement.htm" title="Ann Fletchall" class="body">Research Statement</a>

Friday, October 10th, 2008 - 1:17 pm
  • mmenavas

I tested the code below in IE 7, and as long as the setting: "Always open pop-ups in a new tab" is disabled then it should work fine.

<a href="javascript:var load = window.open('/files/fletchall_statement.htm','',
'scrollbars=yes,width=600,height=400,left='+(screen.availWidth/2-300)+',
top='+(screen.availHeight/2-200)+'')" title="Ann Fletchall">Research Statement</a>

Monday, October 13th, 2008 - 5:07 pm
  • aoblt

This did the job -- Thanks!