View Full Version : facebox 1.1 not opening in a box

04-21-2008, 11:36 PM
1) Script Title:
Facebox image and content viewer (v 1.1)

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex4/facebox/index.htm

3) Describe problem:
Just so you know, this is the first time I've tried to install a script like this. I've done a few websites before, using mostly html. I'd like to think I'm a quick study, but I'm still very much at the beginning of the learning curve.

I'm trying to use facebox to view a page. the link calls up the page, but in a regular window and not in the facebox "box."

Frontpage 2000 (FPSE are disabled) tells me there are script errors:

line: 42, char: 1, error: 'jQuerry' is unidefined, code: 0
line: 12, char: 5, error: object expected, code: 0

line 42 is a table, which was preexisting and not changed when I tried to install the script, so I'm not sure why it would now have an error:

<td width="7%">&nbsp;</td>

line 12 is the middle of the "head" part of the facebox script:


The entire page in question is here (http://seascouts.arrowheadsps.org/calendar.htm). The link in question is on April 22 and reads "Ship Meeting."

I appreciate any help you can give.

[edit]: I just realized that the errors probably relate to the lines in the facebox.js file, not my html page. likely correct (shows how much experience I have here, huh)? I still don't know what's going on, however. I haven't changed anything in that file, it's exactly as I got it.

04-22-2008, 06:24 AM
Your jQuery library reference:

<script src="facefiles/jquery-1.2.2.pack.js" type="text/javascript"></script>

must proceed that of facebox.js. So try moving the above line on your page to the top, right after the <HEAD> opening tag.

04-22-2008, 02:36 PM
thanks very much - I think the problem is that I'm using FrontPage, which tends to rearrange lines of code when I save a page. That line was in the right place when I placed it in the page, but when I saved it, it moved down below the head. I have to watch that...

Here's the corrected page in action. (http://seascouts.arrowheadsps.org/calendar.htm)

thanks again!