• Jayhawk
  • 61.4% (Friendly)
  • YAF Camper Topic Starter
I found that this was an issue before, but didn't see an fix to it. Upon integrating yafnet 2.0 into an existing app, when running it, with regard to the following line of code

Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(loadTimeAgo);function loadTimeAgo(){jQuery.timeago.settings.refreshMillis=60000;jQuery.timeago.settings.strings={prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",numbers:[]};jQuery('abbr.timeago').timeago();}//]]>

I get the following error:

Unhandled exception at line 432, column 98 in http://localhost:3741/App_Pages/OCCSDCauses.aspx

0x800a138f - JavaScript runtime error: Unable to get property 'settings' of undefined or null reference

The error is specific to the text "jQuery.timeago.settings.refreshMillis=60000"