Monday, February 14, 2011

Captain’s Log

This morning I added a feature to the campaign page to copy info to clipboard.

I needed to review the details surrounding how to wire a client side click to individually rendered elements of the template.

Found How to dynamically set control IDs inside a repeater template?

How does one copy to the clipboard via JavaScript?

Found (IE only) http://www.htmlgoodies.com/beyond/javascript/article.php/3458851/Click-Its-Copied.htm

My Code: Copy-To-Clipboard client side click handler.

image 

What can I use for a copy-to-clipboard icon?

A: http://www.iconarchive.com/show/must-have-icons-by-visualpharm/Copy-icon.html
Now the page has the functional copy icon in it:
image 
My Code: ASP.NET logic for putting a copy-to-clipboard icon after the short description of the campaign.
image 
Issue: The feature is not fully useful until I change the ETL to bring in the entire description as opposed to the first 255 characters only. Pros and Cons?
 

No comments:

Post a Comment