• Resolved danial

    (@danish63)


    Errors:
    (index):2113 Uncaught TypeError: Cannot read property ‘split’ of undefined
    at HTMLTableRowElement.<anonymous> ((index):2113)
    at Function.each (jquery.js?ver=1.12.4-wp:2)
    at n.fn.init.each (jquery.js?ver=1.12.4-wp:2)
    at HTMLDocument.<anonymous> ((index):2110)
    at i (jquery.js?ver=1.12.4-wp:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
    at Function.ready (jquery.js?ver=1.12.4-wp:2)
    at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)

    Problem:
    I have install tablepress on my site but when i activate tablepress on site menu of my site on mobile view not working (converted in toggel). when i deactivate tablepress its working properly. and the code is showing that is not on menu files. how i can resolve it.

    Code thats shows:

    jQuery('.tablepress > tbody > tr').each(function(i) {
    		
        var customerId = jQuery(this).find("td").eq(1).html();  
        var res = customerId.split("/"); // on this line error on split
    		var mont= res[0];
    		var da= res[1];
    		var currentmonth=parseInt(mont);
    		var currentday=parseInt(da);
    		if(currentmonth == m &&   din > currentday ){
    		var counter=i+1;
    		jQuery('.tablepress > tbody > tr:nth-child('+ counter +')').hide();
    		}
    	
    		//return false;
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This JavaScript code is not part of TablePress, but it seems to be some custom code, maybe in your or in another (custom?) plugin. You should try finding out where exactly it’s from (from it’s filename) and then contact the author/developer of that file.

    Regards,
    Tobias

    Thread Starter danial

    (@danish63)

    thankyou for replay
    you are right it was due to our custom code.
    Its solve now thankyou

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uncaught TypeError: Cannot read property ‘split’ of undefined (Table Press)’ is closed to new replies.