Solved

Datatable not rendering when calling function

Posted on 2014-10-24
1
212 Views
Last Modified: 2014-10-24
Hi all,

Please help.  I am using datatables plugin to render a table from array and object.  The first jsfiddle below works fine but the 2nd does not.  The only difference is that the 2nd fiddle uses a function to call the datatable.


Rendering datatable
http://jsfiddle.net/7d9pceor/11/



Using a function to call my dataTable but not working
http://jsfiddle.net/7d9pceor/12/
0
Comment
Question by:Isaac
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 40403059
check here : http://jsfiddle.net/7d9pceor/13/

line 35 :
/*"aoColumns": [    
instead :
/"aoColumns": [
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ModalPopup  question 22 38
Make checkboxes execute queries on click 8 33
Make check boxes work 8 43
javascript works in Chrome, but none of the other browsers 14 31
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question