Howdy All,

I'm fighting with IE on a secure site where I am trying to set the
location of a frame from within javascript using code similar to this.

sHref = "DocumentViewPDF.asp?DocumentType=<%=sDocumentType
%>&Instrument=" + sInstrument;
objFrameImage = window.top.frames['fraImage'];
objFrameImage.location = sHref;

IE 6 throws up this message that says "This page contains both secure
and nonsecure items.". None of the other browsers seem to have this
problem including IE7. Is there a way to fix this?

Thanks

dbl

Re: page contains both secure and nonsecure items When setting by DBLWizard

DBLWizard
Sat Jun 28 13:39:53 PDT 2008

On Jun 27, 12:45 pm, DBLWizard <ibflyfis...@yahoo.com> wrote:
> Howdy All,
>
> I'm fighting with IE on a secure site where I am trying to set the
> location of a frame from within javascript using code similar to this.
>
> sHref = "DocumentViewPDF.asp?DocumentType=<%=sDocumentType
> %>&Instrument=" + sInstrument;
> objFrameImage = window.top.frames['fraImage'];
> objFrameImage.location = sHref;
>
> IE 6 throws up this message that says "This page contains both secure
> and nonsecure items.". None of the other browsers seem to have this
> problem including IE7. Is there a way to fix this?
>
> Thanks
>
> dbl

Ok,

I have further diagnosed the problem. It's not client side as I
originally suspected. The DocumentView.PDF page streamed down a PDF
to the requesting page, when I remove that code and simply render HTML
there is not a problem. Here is what the DocumentViewPDF page looks
like:
<%
Dim objPDF
Dim sDocumentType
Dim sInstrument

sDocumentType = Request.QueryString("DocumentType") & ""
sInstrument = Request.QueryString("Instrument") & ""

If Len(sDocumentType) > 0 AND Len(sInstrument) > 0 Then
Set objPDF = Server.CreateObject("LEImage.clsPXCPDF")
Response.ContentType = "application/pdf"

Response.AddHeader "Content-disposition", _
"inline; filename=" + StripOutPage(sInstrument) + "_doc.pdf"
Response.BinaryWrite objPDF.GetDocumentPDF(sDocumentType,
sInstrument, "")

Set objPDF = Nothing
Response.End
Else
Response.Write "Invalid querystring parameters!
<br>sDocumentType:" & sDocumentType & "**<br/>" & _
"sInstrument:" & sInstrument & "**"
Response.End
End If
%>

Does anybody have any idea why it considers this "unsecure" but none
of the other browsers do, including IE7?

Thanks dbl