Results 1 to 2 of 2

Thread: Facebox trigger

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Facebox trigger

    1) Script Title:
    Facebox image and content viewer

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...ebox/index.htm

    3) Describe problem:
    As far as I saw this script only responds to <a click> .. is it possible to trigger facebox window from javascript or what I exactly need is something like on form submit. I have standard form in php with several input buttons and what I'd like to make is :

    1. When form submitts(after submission is complete) to trigger facebox window with content inside like "do you want to continue adding records" if yes is pressed then leave the user on this page to continue adding records if No is clicked then redirect it to other window.

    Thank you

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

    Default

    What you can do is embed a facebox link on your page as usual but that's hidden to begin with. Then when the time comes to automatically "click" on it, you'd call the code:

    Code:
     jQuery('a#faceboxlink[rel*=facebox]').facebox()
    where #faceboxlink would be the facebox link with that ID. When to call the above depends on how the rest of your page is set up.

    You may also want to look at this page, which shows how to integrate Facebox with another script, for some ideas: http://www.dynamicdrive.com/dynamici...uppliment4.htm
    DD Admin

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
  •