मेरा एकांतवाश का इलाका

Just another WordPress.com weblog

Dynamically adding Facebook XFBML plug-in to your page using jQuery

Posted by सन्दीप on जुलाई 18, 2010


Note: Cross posted from Blog@SandeepRawat.com.

Permalink

I was trying to add some of the facebook social plug-ins to my home page at www.sandeeprawat.com which display a kind of splash screen at first (not a splash actually but a simple visible <div> and hidden content on the page) and then on clicking on the page, it renders the hidden content of the same page and adds some XFBML plug-ins and a twitter gadget. I didn�t want to download everything on the page load since it will never be shown to a user if she never click on the splash screen and it would  mean unnecessary load time. So I what i tried to was to add the content dynamically on the onClick handler. Now here is the

Note: Cross posted from Blog@SandeepRawat.com.

Permalink

Advertisements

एक उत्तर दें

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / बदले )

Twitter picture

You are commenting using your Twitter account. Log Out / बदले )

Facebook photo

You are commenting using your Facebook account. Log Out / बदले )

Google+ photo

You are commenting using your Google+ account. Log Out / बदले )

Connecting to %s

 
%d bloggers like this: