September 18, 2012

jQuery Tweets Method

Question by Trt Trt

I have been trying this which seems to work fine, but
when I copy paste my code in my rails 3.2 it doesn’t show anything! What is going wrong? I need to get the tweets from a user, so I need an easy way to do it! Also why does the “tweets” method does not exist in the jQuery API?

Answer by Starx

On the fiddle, there is an external script included so it is working there.

If you want this to work on your code, you have to include the above script in your document too.

jQuery is a light weight JavaScript library, not a social networking toolkit, so it does not have any method as “tweets” in core library. However you can find plugins build for these specific reason, just like the one used in the fiddle you posted.


Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+


Please fill the form - I will response as fast as I can!