Be careful if your canvas app invokes JavaScript function via href attribute

If you write you canvas app in such a way that it invokes JavaScript function via the href attribute as follows:

<a href="javascript:myfunc();" >click here</a>

then I would you to check your app to see if it still functions as expected.

Recently, I found that the above method may fail in some canvas pages (though it is working perfectly if it is running as a web page by itself).

To rectify the problem, you can simply rewrite the above code in the following way:

<a href="#" onclick="myfunc();">

Hope this helps.

Posted in Development Tips | Leave a comment

VirtualBox 4.1.6 released

Oracle has released VirtualBox 4.1.6, a maintenance release of VirtualBox 4.1 which improves stability and fixes regressions. You can download the binaries here: http://download.virtualbox.org/virtualbox/4.1.6/ This is a maintenance release. The following items were fixed and/or added: VRDP: fixed screen corruption … Continue reading

Posted in Virtualization | Tagged , | Leave a comment

Facebook Steps Toward the New Messaging System – do you care?

Quoting from the latest article in the Facebook Dev Blog, In November 2010 Facebook introduced a new messaging product which unified conversations sent via chat, e-mail and regular Facebook messages. Today we are beginning the transition of our old mailbox … Continue reading

Posted in news | Tagged | Leave a comment

Why the Facebook PHP SDK does not persis Facebook signed request in cookies?

Today, I have seen the following question asked in the StackOverflow, Why does the Facebook PHP SDK not set cookies? Facebook’s PHP SDK can decode signed_requests that are passed to the app via POST, or stored in a cookie, but … Continue reading

Posted in PHP SDK Demystified | Tagged | Leave a comment

Internationalizing your FB Canvas App – Loading the locale specific JavaScript SDK

While you are handling the locale specific issues in your canvas app, do remember to load the locale specific JavaScript SDK. Simply refer to the section “Localization” in the Facebook doc at http://developers.facebook.com/docs/reference/javascript/. With this done, then all the social … Continue reading

Posted in Development Tips | Leave a comment

Internationalizing your FB Canvas App – using externalized strings

After determining the user locale, the next thing that you should do is to avoid hard-coding text strings in your web pages.  Instead, you should externalized all the text strings used in your application. It is true that more time … Continue reading

Posted in Development Tips | Leave a comment

Internationalization on FB Canvas App – The first thing you should know

If you only develop your Facebook canvas application in your own local language, then you should try making your app to support other foreign languages.  Facebook is currently available in over 70 languages and by supporting multiple languages will make … Continue reading

Posted in Development Tips | Leave a comment

Sample Helper Function for the PHP SDK

Last time, I have shared the idea on writing our own helper functions in developing our Facebook Applications by using the PHP SDK. Someone has asked me for sample code……Well, the helper functions should be developed to help you in … Continue reading

Posted in Development Tips | Tagged | Leave a comment
Pages: Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 ...36 37 38 39 40 41 42 43 44 45 46 47 48 Next