By default, Zend Form outputs as a definition list:
<dl>
<dt><label for="surname">Surname</label></dt>
<dd><input type="text" name="surname" id="surname" /></dd>
</dl>
I needed to output each field within a paragraph tag and a fieldset surrounding all fields:
<fieldset>
<p>
<label for="surname">Surname</label>
<input type="text" name="surname" id="surname" />
</p>
</fieldset>
The YUI logger is a debugging component in the Yahoo UI.
By calling YAHOO.log('your message'); you can write to the logger which can be read in a console (as in this example) or via the firebug extension or firefox.
This example shows how to write to the YUI logger from flash using flash.external.ExternalInterface.
Here's a quick example I did of moving along a photo with a mouse listener and timer. For when you want to display a widescreen photo and use buttons to navigate along the photo.
There are 3 objects on the stage, 2 buttons (left and right) and a photo.
As the user hovers over the buttons the photo is moved in the opposite direction to scroll across the photo - with a check in there to ensure the user cannot scroll beyond the edges of the photo.
At present it moves 1px at a time - if you wanted to move larger distances this could be changed to use TweenLite rather than incrementing or decrementing the x position of the photo
Include the yahoo logger component and add the following line to make log messages show in the firebug console:
YAHOO.widget.Logger.enableBrowserConsole();
http://developer.yahoo.com/yui/logger/
Don't forget to enable the console in firebug!
My name is Alex
I live in Leeds, England
I'm currently learning actionscript 3
in the near future I will be building an open source CMS in flex/flash
it will be called affcms
alongside that I'll be posting lots of cool new things I discover along the way
if you would like to know more about the project or get involved contact me!
cheers
:o)
© 2009 Alexander James King