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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:37:50+00:00 2026-05-15T08:37:50+00:00

I have page loading, via AJAX a PHP page into a div. In turn,

  • 0

I have page loading, via AJAX a PHP page into a div.

In turn, this loaded page has it’s own javascript and AJAX loaded div.

Reason is to allow user to select data > alter data within loaded data. I’m trying to do this without the help of JSON or such to communicate between JS and PHP.

I’m guessing the parent calling page has already loaded the javascript, and the AJAX loaded content can’t access that? (I’ve tried running the JS into the AJAX loaded content as well) If so, is there anyway to access that?

Here’s the JS I have on the main page, which, via AJAX, loads another page. It is the jQuery UI slider being used, as I write this I realise is not going to be able to apply to loaded content. But, the questions stands as it is not loading even if these scripts are all included in the loaded page:-

<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.2.custom.min.js"></script>
<script type="text/javascript" src="js/selectToUISlider.jQuery.js"></script>
<link rel="stylesheet" href="css/redmond/jquery-ui-1.7.1.custom.css" type="text/css" />
<link rel="Stylesheet" href="css/ui.slider.extras.css" type="text/css" />
<style type="text/css">
    fieldset { border:0; margin: 2em; height: 8em;} 
    label {font-weight: normal; font-size: 10px; float: left; margin-right: .5em; font-size: 1.1em;}
    select {margin-right: 1em; float: left;}
    .ui-slider {clear: both; top: 5em;}
</style>
<script type="text/javascript">
function readOut(IDin) {
if(IDin != '') { var ID = IDin; }
var myRequest = new ajaxObject('loader.php');
myRequest.update('tits=bumblebee&ID=' + ID);
myRequest.callback = function(responseText) {
document.getElementById('loader').innerHTML = responseText;
}
}

    $(function(){

        //demo 3
        $('select#valueAA, select#valueBB').selectToUISlider({
            sliderOptions: {
                change: function(readOut) {
                    var from = document.getElementById('valueAA').value;
                    var to = document.getElementById('valueBB').value;

                    var ID = document.getElementById('IDp').value;
                    var myRequest = new ajaxObject('tester.php');
                    myRequest.update('tits=bumblebee&ID=' + ID + '&from=' + from + '&to=' + to);
                    myRequest.callback = function(responseText) {
                    document.getElementById('elementId').innerHTML = responseText;
                    }
                }
            },
            labels: 12
        });

    });
</script>
  • 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-15T08:37:51+00:00Added an answer on May 15, 2026 at 8:37 am

    You’re using some jQuery in there already. If you use the jQuery .html() function to stuff HTML into a container, then jQuery will find your <script> tags in there and run them. However, if you just set innerHTML yourself, the browser will not do that for you.

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

Sidebar

Related Questions

No related questions found

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.