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 6329749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:44:05+00:00 2026-05-24T17:44:05+00:00

Suppose I have one button, and I want it to fetch data (like an

  • 0

Suppose I have one button, and I want it to fetch data (like an HTML element from the server side) when the user clicks it. For example:

<table><tr><td>here is my content</td></tr></table>

I will fetch the whole HTML from the server using an Ajax call, and I want to show it inside of a thickbox. I went through the thickbox site, and I found the below code for an inline content demo…but I don’t want it to work like that.

 <input alt="#TB_inline?height=300&width=400&inlineId=myOnPageContent" title="add a caption to title attribute / or leave blank" class="thickbox" type="button" value="Show" />  
 <a href="#TB_inline?height=155&width=300&inlineId=hiddenModalContent&modal=true" class="thickbox">Show hidden modal content.</a>

Instead, I want to show the thickbox programmatically. When the thickbox appears, then a busy animation will play inside the thickbox and then the ajax call will be completed and the data will be available, then I will show the fetched data inside of the thickbox. So please guide me how to do this with small code.

  • 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-24T17:44:06+00:00Added an answer on May 24, 2026 at 5:44 pm

    This functionality is already there review the “ajax content” section of thickbox

    OR

    what u can do is that
    when user clicks on the link/button call the server side function and modify the inner html content of ‘hiddenModalContent’

    <script type="text/javascript">
            function GetAjaxData(){
                  //retrieve ajax html data here
                  return "<b>Ajax data</b>";
            }
    
            $(document).ready(function(){
                  $("#myLink").click(function(){
                        var AjaxContent = GetAjaxData();
                        $("#hiddenModalContent").html(AjaxContent);
                  });
            });
    </script>
    
    <input alt="#TB_inline?height=300&width=400&inlineId=myOnPageContent" title="add a caption to title attribute / or leave blank" class="thickbox" type="button" value="Show" />  
    <a href="#TB_inline?height=155&width=300&inlineId=hiddenModalContent&modal=true" class="thickbox" id="myLink">Show hidden modal content.</a>
    
    <div style="display:none" id="hiddenModalContent">
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one simple app that suppose to get information from user and send
Suppose I have one long long int and want to take its bits and
Suppose I have one html page with frames. The left frame is simply a
Suppose I have a string like this: one two three four five six seven
I want to use a text as a button in Android. Suppose I have
I have two windows open at a time, Suppose I click one button on
Suppose I have one list: IList<int> originalList = new List<int>(); originalList.add(1); originalList.add(5); originalList.add(10); And
I have 2 questions: suppose we have one entity named class and another called
I have one doubt concerning c# method overloading and call resolution. Let's suppose I
Suppose you have an ActiveRecord::Observer in one of your Ruby on Rails applications -

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.