StanScates / Tweet.js-Mod

Basic wrapper for Seaofclouds / Tweet.js that incorporates functionality with Twitter's v1.1 API
MIT License
234 stars 103 forks source link

Uncaught TypeError: Object #<Object> has no method 'twit' #56

Open eighteight opened 10 years ago

eighteight commented 10 years ago

I seem to have followed the directions, but get the "Uncaught TypeError: Object # has no method 'twit' ". Please look at the http://post.scriptum.ru to see this error. Thank you very much.

wtadesign commented 10 years ago

Your ".repertory" class in your JS does not seem to match up to the div id in the html page which has

They should match up. Try that first.
eighteight commented 10 years ago

Hi! There is<div class="repertory"></div> element and it is being referred to as $(".repertory"). Sorry what is not matching?

Thanks.

wtadesign commented 10 years ago

hi

This JS script code in your head section the class .repertory, there is no div associated with it. Try changing it to #scriptumBlock which you have used for the twitter feed.

try this

$(document).ready(function() { $("#scriptumBlock").twit({ userName: "postscriptums", modpath: "/js/jquery/jquerytw/", numTweets: 5, loaderText: "Загрузка репертуара...", slideIn: true, showHeading: false, headingText: "", showProfileLink: false, slideIn: true, showHeading: false, headingText: "", showProfileLink: false }); });

eighteight commented 10 years ago

Same error. Have a look.

wtadesign commented 10 years ago

ok

try this it a ticker version, this work for me, so as a test drop this in your code.

eighteight commented 10 years ago

Hi, I think the part of your message got eaten. Would you like to try https://gist.github.com/

?

Thanks.

wtadesign commented 10 years ago

only other thing is the the structure of the folder setup for the twitter folder

//

  1. Acquire /twitter/. How you wish to structure the files is up to you, but by default it is designed to be placed in the docroot of your website as a whole. (IE, domain.com/twitter). //

currently your code is

it might be helpful to have as this - as default set up in the index php twitter folder is as

eighteight commented 10 years ago

Right, moved past that error. Now I am getting "Uncaught TypeError: Cannot read property 'statuses' of null", which, perhaps is related to authentication.

Thanks a lot!

wtadesign commented 10 years ago

No problem, just check that your index.php (in the twitter folder) app consumer and access keys/ tokens are have been setup and matchup.

eighteight commented 10 years ago

For the record: the last error was due to old jquery. Upgrading to current version fixed it.

Thanks for your help.

wtadesign commented 10 years ago

Glad you fixed it, always a pain to setup the first time. cheers