Results 1 to 4 of 4

Thread: Facebox problem

  1. #1
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default Facebox problem

    1) Script Title: Facebox

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

    3) Describe problem: Hey, I want to use facebox within a table, and since I can't use <a><tr></tr></a> I need to use the onclick event, only problem is I don't have a clue how to load facebox onclick, I need to be able to retrieve a page onclick via ajax too. This should be possible, but how?

  2. #2
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    Update, I've got it working a bit, but I still need it to do some AJAX so this isn't good enough. It's a start though:

    Code:
    onclick="jQuery.facebox('content here');"
    This produces a facebox div with "content here". I've tried changing this to:

    facebox(ajax.php);

    And some other things, none of which have worked, can anyone help?

  3. #3
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    Cmon... I know there must be a way

  4. #4
    Join Date
    Mar 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi

    Found your thread while I was trying to solve the same problem.
    If you have facebox version 1.2 (here), you can do it using:
    Code:
    onclick = "jQuery.facebox({ ajax: 'remote.html' });"
    For some reason (at least on mine) the popup box isn't centred in the middle of the page any more though, so something else must be broken...
    Last edited by jylyn; 03-03-2009 at 05:04 AM.

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
  •