Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6548401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:58:03+00:00 2026-05-25T11:58:03+00:00

Hi there I’m trying to use a thickbox http://jquery.com/demo/thickbox/ to open up a form

  • 0

Hi there I’m trying to use a thickbox http://jquery.com/demo/thickbox/ to open up a form on my homepage.

I want the link which opens the thickbox to be an image but being a bit new to all this I’m struggling to figure out exactly how to do this. the instructions say:

In the href attribute of the link add the following anchor:

#TB_inline

In the href attribute after the #TB_inline add the following query string on to the anchor:

?height=300&width=300&inlineId=myOnPageContent

I’ve got this

echo $this->Html->image('123.jpg', array('alt'=>'Create a page', 'url'=>'#TB_inline?height=155&width=300&inlineId=hiddenContent&modal=true', 'class' => 'thickbox'));

What do I need to put to make image.jpg be a link which opens up a thickbox who’s contents is the function Campaigns::thickbox??

Thanks
🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:58:04+00:00Added an answer on May 25, 2026 at 11:58 am

    To create the link itself:

    <a href="#TB_inline?height=155&width=300&inlineId=hiddenContent&modal=true" class="thickbox">
      <?php echo $this->Html->image('123.jpg', array('alt'=>'Create a page')); ?>
    </a>
    

    Then somewhere on your page you need to have a div with the content for that link to display:

    <div id="hiddenContent">
      <p>
        <?php echo Campaigns::thickbox(); ?>
      </p>
    </div>
    

    I am assuming here that Campaigns::thickbox() is a static method that returns whatever content you want to display.

    I would also add some css to the hiddenContent id to make it hidden at first:

    #hiddenContent { display: none; }
    

    Edit: I edited the image display code. Remember this: In order to make an image a link, it takes two html tags, an outer “a” tag that holds the link information, and an inner “img” tag that holds the image information. In this case you are using php to get the img tag information from CakePHP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
There is How can I construct a link to view a message on facebook.com
There are two major fix engines: opensource QuickFix http://www.quickfixengine.org/ commercial Fix Antenna http://www.b2bits.com/trading_solutions/fix_engines/fix_engine_cpp.html What
There are numerous Agile software development methods. Which ones have you used in practice
There is something wrong in my jQuery plugin. I can't post the whole script
There's a thrird party app that needs to get information via custom http headers,
I want use html5's new tag to play a wav file (currently only supported
There is an application written in PHP which I am converting to Ruby. When
There is a known issue with using jquery fadeOut, fadeIn, and fadeToggle, when fading
There are many free online services which provides you with large spaces to store

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.