| MochaUI | A Web Applications User Interface Framework. |
Copyright © 2007-2008 Greg Houston, http://greghoustondesign.com/.
MIT-style license.
This documentation is taken directly from the javascript source files. It is built using Natural Docs.
Consider making title tooltips optional and using them more often.
| Core.js | |
| Functions | |
| updateContent | Replace the content of a window or panel. |
| reloadIframe | Reload an iframe. |
| closeWindow | Closes a window. |
| closeAll | Close all open windows. |
| toggleWindowVisibility | Toggle window visibility with Ctrl-Alt-Q. |
| centerWindow | Center a window in it’s container. |
| dynamicResize | Use with a timer to resize a window as the window’s content size changes, such as with an accordian. |
| garbageCleanUp | Empties all windows of their children, and removes and garbages the windows. |
| fixPNG | Bob Osola’s PngFix for IE6. |
updateContent: function( updateOptions )
Replace the content of a window or panel.
| element | The parent window or panel. |
| childElement | The child element of the window or panel recieving the content. |
| title | (string) Change this if you want to change the title of the window or panel. |
| content | (string or element) An html loadMethod option. |
| loadMethod | (‘html’, ‘xhr’, or ‘iframe’) Defaults to ‘html’. |
| url | Used if loadMethod is set to ‘xhr’ or ‘iframe’. |
| padding | (object) |
reloadIframe: function( iframe )
Reload an iframe. Fixes an issue in Firefox when trying to use location.reload on an iframe that has been destroyed and recreated.
| iframe | This should be both the name and the id of the iframe. |
MochaUI.reloadIframe(element);
To reload an iframe from within another iframe:
parent.MochaUI.reloadIframe('myIframeName');Replace the content of a window or panel.
updateContent: function( updateOptions )
Reload an iframe.
reloadIframe: function( iframe )
Closes a window.
closeWindow: function( windowEl )
Close all open windows.
closeAll: function()
Toggle window visibility with Ctrl-Alt-Q.
toggleWindowVisibility: function()
Center a window in it’s container.
centerWindow: function( windowEl )
Use with a timer to resize a window as the window’s content size changes, such as with an accordian.
dynamicResize: function( windowEl )
Empties all windows of their children, and removes and garbages the windows.
garbageCleanUp: function()
Bob Osola’s PngFix for IE6.
function fixPNG( myImage )