Hey everyone,
I'm having a weird issue with Firefox and loading of a PDF inside an iframe. Here is what the pages does. - Select an item from a drop down list - Load PDF inside a iframe based on the selection.
All other browsers work fine except FF. One a select an item to load the status in the lower left corner says 'STOPPED'. I fired up Firebug and there's no HTTP action. It's like everything gets halted.
Here is the catch. When I popup the DIV box I can load the PDF in FF by making a selection in the drop down list. Once I close the div it doesn't load.
Here is the jQuery to load the PDF
<script type="text/javascript">
$(document).ready(function() {
$("#<%= ddlSpecialty.ClientID %>").change(function() {
var selected = $("#<%= ddlSpecialty.ClientID %> option:selected");
var speciality = selected.text();
switch (speciality) {
case 'Cardiology':
window.open('./../PDF/SpecialityGuidelines/SPECIALTY-cardiology.pdf','Specialtyframe');
break;
;
case 'Neurology':
window.open('./../PDF/SpecialityGuidelines/SPECIALTY-Neurology.pdf','Specialtyframe');
break;
;
case '-- Select Specialty --':
window.open('Specialty.html','Specialtyframe');
break;
;
}
});
});
</script>
<div id="Clean_ContentPlaceHolder1_c2_flyout_content" style="display:none;filter:alpha(opacity=0);-moz-opacity:0;opacity:0;">
<div class="modalcontainer" style="width: 700px;">
<div class="modalheader">
<span id="Clean_ContentPlaceHolder1_c2_flyout_Label3" class="modalmsg">Specialty PDF</span>
<img class="modalclose" alt="Close" title="Close" onclick="Clean_ContentPlaceHolder1_c2_flyoutimgPDF.Close();" style="cursor: pointer;" />
</div>
<div class="modalbody" style="height: 500px;">
<table width="100%" cellpadding="5" cellspacing="0">
<tr>
<td>
<iframe id="Specialtyframe" name="Specialtyframe" frameborder="0" width="650px" height="500px" src="Specialty.html">
[Your browser does <em>not</em> support <code>iframe</code>, or has been
configured not to display inline frames. You can access <a href="../PDF/SpecialityGuidelines/SPECIALTY-Cardiology.pdf">
the document</a> via a link though.]
</iframe>
</td>
</tr>
</table>
</div>
</div>
</div>
<div id="Clean_ContentPlaceHolder1_c2_flyout_contentbox"></div>
Any ideas?