{"id":661,"date":"2011-11-15T16:12:03","date_gmt":"2011-11-16T02:12:03","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=661"},"modified":"2011-11-15T16:12:03","modified_gmt":"2011-11-16T02:12:03","slug":"prettyphoto-undefined-description","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/prettyphoto-undefined-description\/","title":{"rendered":"prettyPhoto undefined description"},"content":{"rendered":"
I had “undefined” showing up in the description of my lightbox whenever I left out the “title” attribute in my link.<\/p>\n
<\/p>\n
I am using jQuery 1.6.2, the examples used 1.4.2. \u00a0 To resolve the problem, look to change something like this:<\/p>\n
<\/p>\n
if(pp_descriptions[set_position] != \"\"){\n\t\t\t\t$pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));\n\t\t\t}else{\n\t\t\t\t$pp_pic_holder.find('.pp_description').hide();\n\t\t\t}<\/pre>\nto this:<\/p>\n
if(typeof pp_descriptions[set_position] != 'undefined' && pp_descriptions[set_position] != \"\"){\n\t\t\t\t$pp_pic_holder.find('.pp_description').show().html(unescape(pp_descriptions[set_position]));\n\t\t\t}else{\n\t\t\t\t$pp_pic_holder.find('.pp_description').hide();\n\t\t\t}<\/pre>\n<\/p>\n