sonnyt / tweetie

Simple jQuery Twitter feed plugin
https://sonnyt.com/tweetie
312 stars 116 forks source link

2.1.1 hangs on loading #11

Closed Phrenesis closed 10 years ago

Phrenesis commented 10 years ago

I tried to use version 2.1.1. but it gets stuck on loading... I then downloaded 2.1.0 and that one works perfectly.

sonnyt commented 10 years ago

@Phrenesis hmmm, can you please post the log, I would love to see what is wrong.

Phrenesis commented 10 years ago

@sonnyt Now why didnt i think of checking the logs earlier... I noticed that the api directory couldn't be found so i looked in the tweetie.js. In the newest version you've set 'apiPath' : '/api/tweet.php' in the default settings which doesn't work. Setting is to 'apiPath' : 'api/tweet.php' fixed it for me. The reason i didn't have this problem in 2.1.0 is because apiPath isn't set in de default settings but set in $.getJSON('api/tweet.php',.... (but i guess you already knew that)

sonnyt commented 10 years ago

@Phrenesis ahh makes sense. Yes I added another feature called, 'apiPath' where you can define your own path to the api file.

You can continue using the never version and just change the api path.

$('#feed'). twittie({
  'apiPath': 'api/tweet.php'
});