Page 1 of 1

Creating a popup window

Posted: Mon Jun 02, 2008 10:21 pm
by Hulles
In my blog, I'd like to create a popup window with no sidebar etc. to display a large-format Flash video. So far I haven't had any luck with anything I tried. Static pages all seem to contain the sidebar, and I uploaded a couple of HTML files to the media library to try to use a JavaScript function but they open as plain text, not HTML.

Any suggestions? Thanks lots!

Re: Creating a popup window

Posted: Tue Jun 03, 2008 11:35 am
by garvinhicking

Can you show your try? This should work.

If you use URL rewriting, serendipity might "catch" your HTML files. Try to put a .htaccess file into the directory where you uploaded your custom HTML flash code, and the .htaccess should only contain "RewriteEngine Off".


Popup window

Posted: Tue Jun 03, 2008 4:56 pm
by Hulles
I can't upload (or rename) an .htaccess file to my media library, it doesn't like me "uploading active content". I suspect this is a good thing in general. I don't know how to upload to the site other than with "Add media" though. Is FTP a possibility?

Anyway, the looks like this:

<script type="text/javascript">
function WinkPresentation(file)
var myWin ='/uploads/geewhiz/' + file,'GeeWhiz Movie','resizable=1,scrollbars=1');

and a sample .html file would be this (if I can get this to work, I can get the real one to work) called test.html in my /uploads/geewhiz directory:

<title>test window</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8">
<meta http-equiv="content-style-type" content="text/css">
this is a test

It opens in a window, but it opens as a text file (i.e. the html source is printed, not the rendered html page).

Thanks for your help on this, and nice work with Serendipity, I enjoy using it.

Mark Hull

Re: Popup window

Posted: Tue Jun 03, 2008 10:25 pm
by garvinhicking

Sorry, yes -- you definitely need to upload that using FTP. :)

I'd need to see your URL on how it is implemented, especially what the HTTP headers of your server are.