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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:17:51+00:00 2026-06-05T15:17:51+00:00

Hello i’m doing a application in php, and i have a list of items

  • 0

Hello i’m doing a application in php, and i have a list of items that they have a list of another items inside. So i have a code for load the first list of items, but the idea is that the another items inside could be load by ajax:

function cargar(ids) {
  jQuery.ajax({
    url: "index.php?controller=descripcion&id=ids",
    dataType: "HTML",
    type: "POST",
    start: document.getElementById('orden_descripcion').innerHTML = '... Cargando',
    success: function(datos) {                      
      //document.getElementById('orden_descripcion').innerHTML = datos;
      $('#data-1').html(datos);
      $('#data-1').html(datos);

The idea is charge a lot of jQuery ajax in each #data-#, but i want to that the “datos” will be different, repect a var ids (my controller will be procces that id for different data), but i don’t know how do this.

Thank 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-05T15:17:53+00:00Added an answer on June 5, 2026 at 3:17 pm

    Well, i put in the nested list a javascript function like:

                <div id="orden-<var_id>">
                        <script type="text/javascript">     
                            cargar(<var_id>);       
                        </script>       
                </div>
    

    Note: There is a lot of that orden-# divs, because is a list in a data base.

    So that function is a jQuery.ajax function where the shows different type of data.

        <script type="text/javascript">
            function cargar(var_id) {
                jQuery.ajax({
                    url: "index.php?controller=orden",
                    data: "var_id="+var_id,
                    dataType: "HTML",
                    type: "POST",
                    success: function(datos) {
                        $('#orden-'+var_id).html(datos);                
                    }
                });
            }
        </script>
    

    Thank you so much!

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

Sidebar

Related Questions

Hello frnds I have windows mobile application, that retrieves location info. Now i want
Hello I have this problem with PyQt4-dev-tools that include: * a user interface compiler
Hello i have this code var queue = new BlockingCollection<int>(); queue.Add(0); var producers =
Hello i have a list of apartments and i need to filter them by
Hello I have a double linked list set up, and i have a search
Hello we have an SQL server application running over a low bandwith connection. We
Hello dearest community. I have trouble in the last two days, that I can't
Hello all i have the code below which produces four wheels each with the
hello i have a app that connects and post to user wall but when
Hello I have an example that works properly: $(function() { $(#treegrid).jqGrid({ url: 'tree2.json', datatype:

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.