Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

105
Views
Indefinido (leyendo 'childNodes') List.js con mi lista siendo procesada por una llamada Ajax

No puedo entender por qué me arroja un error, pero cuando compruebo si mi lista se está procesando, está allí.

Interfaz

 <div id="calendar-events-list" class="events-listing"> foreach(sample_arr) { echo '<ul class="events-by-date list"></div>'; } <nav class="events-calendar-pager events-pager" data-value=""> <a class="page-prev disabled" href="#"></i></a> <ul class="pagination"></ul> <a class="page-next" href="#"></i></a> </nav>'; </div>

archivo js

 $.ajax({ method: 'post', url: path+'js/ajax/get-events.php', data: { // 'current_month': instance.month, 'current_year': instance.year, 'current_period': instance.current_period, 'action': action, 'views': views, 'limit': instance.limit, 'xid': c_xid },dataType: 'json' }).done(function(data){ if($('ul.list li').length){ var events_calendar_options = { valueNames: ['side'], pagination: true, page: 3, innerWindow: 2, }; var eventList = eventsPagination('calendar-list', options); eventList.update(); } } // close ajax ... // when user clicked a date from a calendar, the events (my list array) on that date should show $container.on('click', $element, function(){ if($('ul.list li').length){ var options = { valueNames: ['side'], pagination: true, page: 3, innerWindow: 2, }; var eventList = eventsPagination('calendar-list', options); eventList.update(); } }

No hay nada de malo con mi función eventsPagination() ya que las otras funcionan correctamente. Es solo que este me arroja un error una vez que cambio la fecha y paso a través de ajax y luego devuelvo mi nueva matriz de eventos. Y mi matriz de lista de eventos solo se mostrará una vez que hagan clic en una fecha específica en el calendario.

¡Realmente aprecio su ayuda!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!