Results 1 to 3 of 3

Thread: facebox 1.1 not opening in a box

  1. #1
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default facebox 1.1 not opening in a box

    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:

    $('a[rel*=facebox]').facebox()

    The entire page in question is here. 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.
    Last edited by traq; 04-22-2008 at 01:05 AM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Your jQuery library reference:

    Code:
    <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.

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    traq (04-22-2008)

  4. #3
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    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.

    thanks again!
    Last edited by traq; 04-22-2008 at 02:45 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •