Using the following link below works in Firefox, Chrome and Safari but in Internet Explorer it opens an empty window. This seems to happen when the referenced title variable contains spaces.

<a class="simple-dialog" href="<?php global $base_path; print $base_path; ?>node/374?reference=<?php print render($title); ?>&url=<?php global $base_path; print $base_path; ?>node/<?php print render($nid); ?>" name="node-374" rel="width:500px;position:[center,60]" title="Email a friend">Email a friend</a>

Comments

vogre’s picture

Bump! Works ok in chrome, loads white window in Firefox

drclaw’s picture

Ah yes... I thought I replied to this one. I'll look into it this weekend.

drclaw’s picture

Status: Active » Postponed (maintainer needs more info)

Is anyone still having this problem? I can't reproduce it... Maybe a little more information? IE Version? Also a code block directly from the rendered html page would be nice (without the php tags).

Thanks!

cayerdis’s picture

It does not work in IE8, IE7. I tested using it the simple dialog example provided with the module. It only display a blank page. It works great in IE9

drclaw’s picture

Hm... Looks like I'll have to do some more testing.

gooney0’s picture

Version: 7.x-1.2 » 7.x-1.6

I've made an ugly fix for 7.x-1.6

Here are the changes I made to simple_dialog.js starting at line 79:

              //$('#simple-dialog-container').html( $( '<div></div>' ).html( data ).find( '#' + selector ).clone() );
              document.getElementById('simple-dialog-container').innerHTML = data;
              var found = $('#simple-dialog-container').find( '#' + selector );
              document.getElementById('simple-dialog-container').innerHTML = found.html();

gooney0’s picture

I solved my issue. It turns out the page template had too may closing DIV tags. Only IE reacted to this.

drclaw’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Great!