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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:07:52+00:00 2026-06-02T10:07:52+00:00

Basically I am using JQuery and colorbox. I am using iframe class of colorbox.

  • 0

Basically I am using JQuery and colorbox. I am using iframe class of colorbox.

So basically initiating with

$(".iframe44").colorbox({iframe:true, width:"80%", height:"80%"});

I am then using it on a element as

<div class="class1">
<a class="iframe44" href=xyz.php> Add New</a>
<ul>
</ul>
</div>

This piece of code is fine and the iframe pop’s out. The class also transforms to class=iframe44 cboxElement as expected.

So not I am running an AJAX call to get some values ( as JSON) and then using appendTo()to add stuff into the <ul> element. Like this

$(document).ready(function () {
    $.ajax({
        type : "GET",
        url : "values.php?type=init",
        dataType : "json",
        success : function (data) {
            //alert("success");
            var ul_data = '';
            var counter = 0;
            for (var val in data) {
                if (data.hasOwnProperty(val)) {
                    console.log(data[counter].variable1 + data[counter].variable2);
                    ul_data = ul_data + "<li><a class=\"iframe44\" href=value_edit.php?variable2=" + data[counter].variable2 + ">" + data[counter].variable1 + "</li>";
                }
                counter++;
            }
            $(ul_data).appendTo('#class1 ul');
        }
    });
});

Now the issue I am facing is that the newly appended ul_data into the <div> does not have the same characteristics of class=iframe44 cboxElement … rather it has is class=iframe44, and hence the popup is not coming.

Let me know if I am doing something wrong? Why is the class of appended data not coming correctly.

Any help appreciated !!!

  • 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-06-02T10:08:05+00:00Added an answer on June 2, 2026 at 10:08 am

    add

    $(".iframe44").colorbox({iframe:true, width:"80%", height:"80%"});
    

    after

    $(ul_data).appendTo('.class1 ul'); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using JQuery to position a series of div tags which basically use
Basically: I have this HTML: <div id=foo><img src=/foo/bar/{var}/foo alt={var}></div> When calling (using jQuery in
I'd like reposition a div on my website using jQuery. Basically I have a
Hey all, I basically output content into a div like this using jquery: var
Basically I have an IFRAME that displays a given page. I am using jQuery
I am using JQuery autogeocomplete and basically the lat_id and the lng_id strings are
I'm trying to create a game of memory using Javascript/jQuery. Basically, a random array
I'm using (or trying to) JQuery Validation with WebForms/html. I have, basically (simplifying the
I am currently using PHP/MySQL and the jQuery timeago plugin. Basically, I need to
basically I am using jquery cycle, and it has a wrapper for the numerical

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.