Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    table.tBodies[] method

    I am using this method inside a if and whenever controller come to this point it is throwing an undefined exception intead it should check if null or anything present. How to handle this?

  • #2
    d_s
    d_s is offline
    New Coder
    Join Date
    Mar 2010
    Location
    India
    Posts
    52
    Thanks
    0
    Thanked 8 Times in 8 Posts
    Hi,

    you may get the array length and if it is > 0, you may execute one action, else execute the else part of this condition checking loop.

    in case of any further javascript / jquery queries, do check out my blog at : http://www.dsaravanan.wordpress.com/javascript/ or http://saravanan-gsoc.blogspot.com/

    Regards,

    d_s

    Quote Originally Posted by ennidhi View Post
    I am using this method inside a if and whenever controller come to this point it is throwing an undefined exception intead it should check if null or anything present. How to handle this?
    regards

    d_s.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •