Jump to content
Sign in to follow this  
man5

Quick question. This is a twitter button code. How do I keep the "following" selected on success?

Recommended Posts

This twitter style button I found.  http://jsfiddle.net/jakie8/ZECEN/

 

I have managed to modify it to my liking. And yes I know the ".live" is depreciated and instead use "on". 

 

Anyways, the only thing I noticed is that if I click "Follow" button and it turns green; once I refresh the page, it goes back to default "follow" mode.  I was wondering how can I keep it green even if I refresh the page?

Edited by man5

Share this post


Link to post
Share on other sites

write an event handler and store the result in a variable.Another way use flag.

 

These are very specific suggestions.  A quick example, or jsfiddle would be appropriate.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.