How to display a link to my latest Tumblr post using Javascript?
-
I am looking for some help and would be VERY grateful for it. I would like to use Javascript to display a link to my latest Tumblr post. For example, it would be like: <a href="http://brianjsmith.tumblr.com/post/4486283258/welcome-to-my-tumblr">Read Post</a> As you can see in the above code, the link is to my latest post. However, the latest post is (of course) going to change.... I can't seem to find anything online (I've been searching Google for a few hours) and I have been trying to create my own code with Tumblr's API settings with no luck. I know I asked a question similar to this for Twitter. Also help with getting it to execute, because apparently I can't seem to get that working either. And once again any help would be amazing!
-
Answer:
i think this will get you what you need: $.getJSON('http://brianjsmith.tumblr.com/api/read/json?callback=?', function(response) { $('#myLink').attr('href',response.posts[0].url); }); edit: ok, forget what i had before. doesn't work for tumblr apparently. this does though.
BrianJ at Stack Overflow Visit the source
Related Q & A:
- how to open a link in new tab in chrome extension?Best solution by Stack Overflow
- How to access a nested function from another nested function in javascript?Best solution by devarticles.com
- How to put a link on Myspace?Best solution by Yahoo! Answers
- How to remove a link border?Best solution by stackoverflow.com
- How to make a link open on a question?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.