Page 1 of 1
Creating a popup window
Posted: Mon Jun 02, 2008 10:21 pm
Any suggestions? Thanks lots!
Re: Creating a popup window
Posted: Tue Jun 03, 2008 11:35 am
Can you show your window.open() 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".
Posted: Tue Jun 03, 2008 4:56 pm
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 window.open looks like this:
var myWin = window.open('/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:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<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.
Re: Popup window
Posted: Tue Jun 03, 2008 10:25 pm
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.