Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Datatable not rendering when calling function

Posted on 2014-10-24
1
Medium Priority
?
223 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
1 Comment
 
LVL 83

Accepted Solution

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

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn how to dynamically set the form action using jQuery.
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)
Suggested Courses

886 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