Creating a popup window

This is the place to chat about anything that's related to the free blog-hosting-service called supersized.
Locked
Hulles
Posts: 2
Joined: Mon Jun 02, 2008 10:12 pm
Location: St. Paul MN USA
Contact:

Creating a popup window

Post by Hulles » Mon Jun 02, 2008 10:21 pm

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 window.open() function but they open as plain text, not HTML.

Any suggestions? Thanks lots!

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Creating a popup window

Post by garvinhicking » Tue Jun 03, 2008 11:35 am

Hi!

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".

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Hulles
Posts: 2
Joined: Mon Jun 02, 2008 10:12 pm
Location: St. Paul MN USA
Contact:

Popup window

Post by Hulles » 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:

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

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">
<html>
<head>
<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">
</head>
<body>
this is a test
</body>
</html>

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

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Popup window

Post by garvinhicking » Tue Jun 03, 2008 10:25 pm

Hi!

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.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Locked