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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:22:02+00:00 2026-06-08T21:22:02+00:00

I am opening a page inside a shadowbox. But then when user clicks on

  • 0

I am opening a page inside a shadowbox. But then when user clicks on a button, it loads the second div in the same page from a different page using jQuery.ajax. It works for FF,chrome and safari but not for IE8.

`function open_shadowbox_div_view(){

Shadowbox.open({
         content:  
                   $("#div1").html(),  
                   player:     "html",                                                    
                   height:     420,    
                   width:      750 ,
                  options:{
                       onFinish: function(){  

                       } ,
                          onClose: function(){  }

                   }



    });

}



function newOccFunction(contract){


    var site_url = "page.php?var=";?>"+var;

    jQuery("#div1").load(site_url,function(){open_shadowbox_div_view();});


}'     

this opens the first div.
Then there is a button in that page that loads up a div in the same page.php
Button onclick function
‘function filter(){

    var site_url = "page2.php";

    jQuery.ajax({
        type: "POST",
        url : site_url,

        success: function(data){
            alert(data);
            jQuery("#sb-player #div2").html(data);
            alert(jQuery("#sb-player #div2").html());//This returns null

        },
        failure: function(){
            alert("fail");
        }

    });
}'

Any help will be appreciated.
Than you

  • 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-08T21:22:03+00:00Added an answer on June 8, 2026 at 9:22 pm

    since the content i am trying to load into a div is inside the first page in shadowbox, we don’t have to use #sb-player but all the div tag that is nested. It only affect in IE, therefore you can just do.

    To clarify,
    if it is like

     <div id="sb-player">
     <div id="main_box"><div id="second_box"></div></div>
    

    then you can load content in “second_box” by doing this:

     jQuery("#main_box #second_box").load(url);
    

    Hope it helps for those who have wasted hours figuring this.

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

Sidebar

Related Questions

I'm opening an iframe(inside a pop up) from a page(say parent) and trying to
I know that for opening android application from a link inside a web page
I'm trying to open Shadowbox from within a radio button onclick event on a
During an ASP.NET page load I'm opening and closing multiple System.Data.SqlClient.SqlConnections inside multiple controls
In this scenario: User enters some information into a textbox User clicks a button
I have a issue with Jquery Modal dialog being called from a button inside
I was looking into a solution for opening a page in new tab and
i'm trying to open a page using JSoup . I've tried opening a page
I am opening an html page in web view and By Clicking an html
Whenever I entered URL for opening a jsp page ..i am getting The requested

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.