triggering a jquery's ready() from another webpage's jquery's ready()

I could not get the child's ajax result in parent page..the child's component does not get displayed in parent page.My guess is that the child's ready function is not getting triggered.I am not sure of why?any help would be much appreciated. Sample call:

 //parent page contains this function
  $(document).ready(function()
  {
  $('#a').click(function()
  {
  $.ajax({
            type: "GET",
            url : "child_ajax.php",                     
            data:{},
            success : function(result){
                window.setTimeout(function(){
                    $('#result_div').html(result);
                }, 100);
            }
  });
 });
 });
 <div id="result_div"></div>
 <div id="a">click</div>

//child_ajax.php
  $(document).ready(function()
  {
   alert('welcome');
    $.ajax({
    type: "GET",
    url : "child2_ajax.php",                    
    data:{},
    success : function(result){
    window.setTimeout(function(){
    $('#result_div_child').html(result);
    }, 100);
    }
  });
      });
  <div id="result_div_child"><div>

Answers


Need Your Help

Worklight Javascript Adapter: Unable to retrieve array value passed as parameter to adapter

javascript worklight worklight-adapters

I pass a array to the Worklight adapter, and I am unable to retrieve the value in my array.

BAT file to create Java CLASSPATH

java windows command-line batch-file

I want to distribute a command-line application written in Java on Windows.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.