Display two tables

Display two tables

slaterslater Posts: 5Questions: 0Answers: 0
edited September 2010 in General
Hi,

I want to display two options say PHX and LEX and use jquery to display the corresponding table.
my cgi script has two table structures stored in $phx and $lex..So based on the user selection, only one variable would be printed.. I can do this with a simple form submission,but want to use jquery..

It would be great if i have those two radiobuttons in between show entries and search button of the table.

Any ideas would be appreciated...

Replies

  • slaterslater Posts: 5Questions: 0Answers: 0
    My question is passing params to json.cgi which is in SAjaxsource isnt working..
    if i use sAjaxSource="json.cgi",it is working


    Ok Here's my code:

    [code]
    var oTable;
    \$(document).ready(function() {
    oTable = \$('#example').dataTable( {
    "sAjaxSource": 'json.cgi?period=$period',
    "fnInitComplete": function ( oSettings ) {
    \$(oTable.fnGetNodes()).click( function () {
    var iPos = oTable.fnGetPosition( this );
    var aData = oSettings.aoData[ iPos ]._aData;
    window.open('jp.cgi?domain=$domain&job='+aData[0]+'&org='+aData[1],'Job-Detail','width=1024,height=768,resizable=yes,scrollbars=yes');
    } );
    }
    } );
    } );
    [/code]
  • slaterslater Posts: 5Questions: 0Answers: 0
    Any Help???
  • slaterslater Posts: 5Questions: 0Answers: 0
    it was a problem with the column width..Resolved..thanks
This discussion has been closed.