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

  • Home
  • SEARCH
  • 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 327987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:27:11+00:00 2026-05-12T09:27:11+00:00

I’m running into a bit of an issue when I try to return a

  • 0

I’m running into a bit of an issue when I try to return a link to pull up a thickbox on my page from a simple php echo. Basically what I have is:

A page with a few include statements like:

<?php 
    include ("display_header.php");
?>

Each one of the include statements just points to a php file that pulls a short query and echos out a link with an anchor ref to open an inline thickbox (with a form) when the user clicks on the link text like:

echo "<a href='#TB_inline?height=265&width=225&inlineId=header_change' class='thickbox' style='text-decoration:none; color:#990000'>";
echo "Query Result etc";
echo "</a>";

So when the user clicks on the link on the page, a thickbox with a form is supposed to pop up. The user enters their changes to the given section, clicks submit, and jquery ajax posts the form and reloads the div with the include statement to display the changes.

This works the first time the page is loaded, but once I submit the form and try to click on the returned link again nothing happens. This seems to work if I have the link surround the div with the include statement inside (which isn’t a big deal to do), but I just don’t understand why this doesn’t work if I have the link in the included php statement.

Can anyone offer some guidance? I know there are a lot of brilliant people here and I’m probably just not understanding something very basic. 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-12T09:27:11+00:00Added an answer on May 12, 2026 at 9:27 am

    You need to bind thickbox to your links using Events/live. Something like:

    $("a.thickbox").live("click",function() {
        tb_init('a.thickbox');
    });
    

    That will prevent your thickbox enabled links from losing their binding to thickbox after they are reloaded or injected via ajax.

    You can also do it in the callback to your $.ajax (or $.post or whatever) method, e.g.:

    $.ajax({
        type:       "GET",
        url:        "/ajax-content.php",
        cache:      false,
        data:       "f=foo&b=bar",
        loading:    $('.loading').html(''),
        success:    function(html) {
                        $('#ajaxContent').html(html);
                        //re-attach thickbox
                        tb_init('a.thickbox, area.thickbox, input.thickbox');
                    }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am currently running into a problem where an element is coming back from
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm making a simple page using Google Maps API 3. My first. One marker
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has

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.