Results 1 to 4 of 4

Thread: Javascript Error: Cannot read property 'replace' of undefined

  1. #1
    Thread Starter
    tcm03's Avatar
    Join Date
    Jun 2013
    Location
    Australia
    Posts
    23
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Javascript Error: Cannot read property 'replace' of undefined

    I am getting a javascript error related to the company logos.

    The error is: Cannot read property 'replace' of undefined

    The bit of code that has the error is copied below:

    Code:
    // dynamic thumb positioning and sizing >>
    var title_width = $j("dd.title", $j(this)).css('width');
    title_width = parseInt(title_width.replace('px',''));
    var cssTitle = {
    'width': title_width-thumbs_width + 'px',
    'padding-left':  (pad_margin/2)-adjust_size
     };
    $j("dd.title", $j(this)).css( cssTitle );
    (refer to replace on the 3rd line)

  2. #2
    sebet's Avatar
    Join Date
    Oct 2010
    Location
    Portugal
    Posts
    1,491
    Thanks
    138
    Thanked 207 Times in 182 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Checkout my products on the Marketplace.

  3. #3
    Thread Starter
    tcm03's Avatar
    Join Date
    Jun 2013
    Location
    Australia
    Posts
    23
    Thanks
    4
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    sebet's Avatar
    Join Date
    Oct 2010
    Location
    Portugal
    Posts
    1,491
    Thanks
    138
    Thanked 207 Times in 182 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Checkout my products on the Marketplace.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 14
    Last Post: June 10th, 2015, 01:36 PM
  2. Replies: 7
    Last Post: February 14th, 2015, 04:45 AM
  3. Replies: 1
    Last Post: December 5th, 2014, 05:52 AM
  4. Replies: 7
    Last Post: May 11th, 2014, 05:14 AM
  5. Getting error: undefined - error - [object XMLHttpRequest]
    By freshjustin in forum Report Clipper Bugs
    Replies: 4
    Last Post: August 29th, 2011, 09:15 PM