simple iframes question

Mark Klein <[email protected]> Fri, 9 Sep 2011 12:04:14 +0200
Newsgroups gmane.lisp.cl-http
Message-ID <[email protected]>
--===============0778944341075609124==
Content-Type: multipart/alternative; boundary=Apple-Mail-27-100522059


--Apple-Mail-27-100522059
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


I want to have a PDF document appear within an iframe, so I wrote a =
cl-http response function that generates the following HTML:

<html>
<body>
<iframe width=3D1000 height=3D700 =
src=3Dhttp://cci.mit.edu/klein/papers/guidelines.pdf></iframe>
</body>
</html>
The problem is that the PDF document gets downloaded into a new window, =
and not within the iframe I specified. Any suggestions on what I can do =
about that?

    Thanks!

	Mark

-------------------------------
Mark Klein
Principal Research Scientist
MIT Center for Collective Intelligence
http://cci.mit.edu/klein/




--Apple-Mail-27-100522059
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><div><br></div><div>I want to have a PDF document appear within an =
iframe, so I wrote a cl-http response function that generates the =
following HTML:</div><div><br></div><div><span class=3D"Apple-style-span" =
style=3D"font-family: Times; "><pre style=3D"word-wrap: break-word; =
white-space: pre-wrap; ">&lt;html&gt;
&lt;body&gt;
&lt;iframe width=3D1000 height=3D700 =
src=3Dhttp://cci.mit.edu/klein/papers/guidelines.pdf&gt;&lt;/iframe&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></span><div>The problem is that the PDF document gets =
downloaded into a new window, and not within the iframe I specified. Any =
suggestions on what I can do about =
that?</div></div><div><br></div><div>&nbsp; &nbsp; =
Thanks!</div><div><br></div><div><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>Mark</div><div><br></div><div>
<span class=3D"Apple-style-span" style=3D"border-collapse: separate; =
color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; =
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: =
0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span =
class=3D"Apple-style-span" style=3D"border-collapse: separate; color: =
rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: =
normal; font-weight: normal; letter-spacing: normal; line-height: =
normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: =
normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: =
0px; -webkit-border-vertical-spacing: 0px; =
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div =
style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; "><span class=3D"Apple-style-span" =
style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; =
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; =
-webkit-border-vertical-spacing: 0px; =
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space; "><div>-------------------------------</div><div>Mark =
Klein</div><div>Principal Research Scientist</div><div>MIT Center for =
Collective Intelligence</div><div><a =
href=3D"http://cci.mit.edu/klein/">http://cci.mit.edu/klein/</a></div><div=
><br></div></div></span></div></span></span><br =
class=3D"Apple-interchange-newline">
</div>
<br></body></html>=

--Apple-Mail-27-100522059--


--===============0778944341075609124==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
WWW-CL mailing list
[email protected]
https://lists.csail.mit.edu/mailman/listinfo/www-cl

--===============0778944341075609124==--