March 10, 2010

Pages


Search Site


Topics


Adobe AIR

ColdFusion

Flex

Adobe

ActionScript

Pet Rescues

My Links


Archives

Entries Tagged as 'Lazy Code'

Flex 3: Wrapping Text Around an Image in a TextArea

April 22 2009 by Wally Kolcz

While  in the process of building a flip book that populates itself with an image and then the story that accompanies that story. I encountered a problem with getting the text to wrap around the image. After a little Googling, here is the solution to share.

Read more...

Posted in Flex | Lazy Code | 1 comments

Javascript close and refresh the parent page

March 19 2009 by Wally Kolcz

If you want to close a pop up window and refresh the parent page to reflect the update

Read more...

Posted in Lazy Code | 4 comments

Query Driven Link List Navigation

July 20 2008 by Wally Kolcz

To make life easier on the user, allow them to step through a recordset X amount of records at a time.

Top of page w/query

Then make output:

Then put you link list anywhere on the page you want the users to see it:

In the last line above the closing cfscript you can change the pipe '|' to any differnent divider you would like.

Also, I like to put on at the top and bottom of the page if there are a number of records. Just copy and paste the above script multiple times on the page for multiple link lists.

Posted in ColdFusion | Lazy Code | 2 comments

Are you sure pop up - Javascript

June 19 2008 by Wally Kolcz

Javascript:
<script language="jscript" type="text/javascript">
 function Confirm() {
  return confirm ("Are you sure you want to delete this project?");
 }
</script>

On the href:
onclick="return Confirm();"

Posted in Lazy Code | 1 comments

Lightbox Script 'fix'

May 22 2008 by Wally Kolcz

Seems like I am constantly looking for how to keep the prev / next buttons on Lightbox 2 always on and reposition them. Simply edit the CSS:


#prevLink { left: 0; float: left; background: url(../images/prevlabel.gif) left 0% no-repeat; }#nextLink { right: 0; float: right; background: url(../images/nextlabel.gif) right 0% no-repeat; }
#prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 0% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 0% no-repeat; }

Obviously change the url to the buttons. Also the .. 0% no-repeat is the position. 0% is at the top and 100% is at the bottom. Trying to figure out how to extend the padding at the bottom and place it there instead so it doesn't interfer with the picture.

Posted in Lazy Code | 2 comments