Change BlogCFC tweetbacks function

Yesterday night, I was troubleshooting why my tweetbacks aren't coming out even they're in Twitter. I've asked Ray about this problem and he told me that previous version of BlogCFC is completely working for tweetbacks but in current version, it doesn't work at all. That's why I was troubleshooting on SweetTweets.cfc and make complicated testing. Finally, I found it's because getShortURLs function of it. In blogCFC infrastructure, it posts blog URL into getShortURLs function and which will make the short URLs and search those short URLs in twitter by getTweetSearchUrl function. So, getTweetSearchUrl found no records for my short URLs in twitter. That's why I've changed not to make short URLs and search Original URLs in twitter and found some of results from twitter as jSON format data.

[More]

Your Ad Here

Coldfusion load content like Facebook and Twitter

Today, I've tested how to load content like facebook and twitter when scrolling down at the bottom of document. I feel it's cool and flexible for developers and users. As mention in previous post, don't need to include pagination and don't need to retrieve all data from database.By using like that, we can save our client time to click pagination link and don't need them to worry how many pages he/she already clicked. In this demo, index.cfm is the main page and action.cfm will display the rest of limited records when scrolling down at the bottom of document.

[More]

Load Content like Facebook and Twitter

Today, I found one of the new features of Twitter's new face is loading content while scrolling like Facebook. I feel it's cool and the advantage of using is don't need to fetch all records from database at once and don't need to use annoying pagination feature (I didn't say all pagination are annoying). Here is how they work with jQuery.

view plain print about
1/* Load jQuery from Google API */
2$(document).ready(function(){
3
4 /* Alert the height of content */
5 alert("Current Document Height is : " + $(document).height() + "px");
6
7 function AnotherContent()
8 {
9 /* get current Height of content */
10 var currentHeight = $(document).height();
11
12 /* increase Height of content */
13 var IncreaseHeight = currentHeight + 200;
14 $('#myHeight').height(IncreaseHeight);
15
16 /* Alert the new current height of content */
17 alert("Current Document Height is : " + IncreaseHeight + "px");
18
19 /*
20 if you wanna load another page, use this script.
21 $("#myHeight").load("index.cfm");
22 */

23
24 };
25
26 $(window).scroll(function(){
27 /* Load AnotherContent() function when scroll down to the bottom of page. */
28 if ($(window).scrollTop() == $(document).height() - $(window).height()){
29 AnotherContent();
30 }
31 });
32
33});

view plain print about
1<body>
2 <table cellpadding="4" cellspacing="1" border="1" height="640" width="100%">
3 <tr>
4 <td id="myHeight" valign="middle" align="center">What?</td>
5 </tr>
6 </table>
7</body>

Twitter Search with jQuery

Last week, I've attended Webcamps seminar organized by Microsoft in Singapore. Describing my previous thread, they're focus on MS visual studio 2010, IIS7 and MVC 2. Meanwhile, James Senior (actually he's main person for this seminar) let us know how to create "twitter search with jQuerytemplate ". It's absolutely cool and we don't need any server-side programming for it.

Here you go: http://www.jamessenior.com/post/Twitter-Search-with-jQuery-Templating.aspx

Top of Page