DataTables with POPbox plugin

DataTables with POPbox plugin

Madhu12Madhu12 Posts: 32Questions: 0Answers: 0
edited January 2013 in General
I am using DataTables (1.9.4) to display data and POPbox plugin (http://gristmill.github.com/jquery-popbox/) to display a simple pop up on click of the column header.

POPbox mandates certain nested structure to work. Based on this I have en-wrapped my 5th column's header text. Now the table doesn't load properly.

There is an error at the line 3500 of jquery.dataTables.js - 'firstChild' is null or not an object

I have given below my HTML. Is the which is creating the problem? Any workaround?

[code]



Column 1
Column 2
Column 3
Column 4


Column 5



Title of the pop box:
Text row

Close




Column 6



[/code]

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Can you link to a test case please? http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Allan
  • Madhu12Madhu12 Posts: 32Questions: 0Answers: 0
    Thanks for the response. :)

    This is an internal application. I can try to bring a test cases soon using http://live.datatables.net/ . But I need to import POPbox's js and css to demonstrate this case. How can import these files into the test case? Since I don't have any public server hosted I cannot provide a direct link to POPbox's js and css.
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    There is no way to host additional files on this server - you'd need to have them web-accessible somewhere.

    I don't need a full page (indeed it isn't really desirable!) I just need the simplest test case showing the issue, so I can then debug it. For example, the HTML that you not that is causing an issue actually appears to work for me:
    http://live.datatables.net/iwozun/edit#javascript,html

    So there is something happening to the HTML that breaks things.

    Allan
  • Madhu12Madhu12 Posts: 32Questions: 0Answers: 0
    Thanks Allan!

    I have included a test case here. But the table is coming up in this case.
    http://live.datatables.net/ebezes/edit#preview

    I am using DataTables 1.9.4. But this version is not available for selection in live window.
  • Madhu12Madhu12 Posts: 32Questions: 0Answers: 0
    Is there a possibility that the other config options I am using with DataTables during initialization causing the issue?
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    > Is there a possibility that the other config options I am using with DataTables during initialization causing the issue?

    Possibly, but without being able to see those options, I've no idea if that is the issue :-).

    Thanks for pointing out the 1.9.4 not being the live list. I'll add it in soon.

    Allan
  • Madhu12Madhu12 Posts: 32Questions: 0Answers: 0
    Thanks Allan!

    I have added all the config options.
  • Madhu12Madhu12 Posts: 32Questions: 0Answers: 0
    Though I have given "table-layout": "fixed", out of six columns I have specified width for only 5 columns and expect the other column to vary in width based on screen resolution. It is actually on this column's header I am trying to show pop box.
This discussion has been closed.