ff javascript library

The project documentation has been moved.


Comments

madhuts (October 18, 2009 at 02:21)

Hi, I tried to add image but I don’t know how to do this Can anyone be kind to tell me how? thanks a lot

fforw (Post author) (October 18, 2009 at 19:53)

easiest way is to globally initialize the dom builder and then do add an image via the created tag functions // make sure page is loaded ff.event.onload( function() { // call this once per page it creates all tag functions as // global uppercase functions ff.dom.init(window); // create an IMG with “test.gif” as src and immediately // add it to the document document.body.appendChild(IMG({“src”:”test.gif”})); });

Archived comments

Comments from the original blog, recovered from the Internet Archive.

madhuts

Hi,
I tried to add image but I don’t know how to do this
Can anyone be kind to tell me how?
thanks a lot

fforw (Post author)

easiest way is to globally initialize the dom builder and then do add an image via the created tag functions
// make sure page is loaded
ff.event.onload( function()
{
// call this once per page it creates all tag functions as
// global uppercase functions
ff.dom.init(window);
// create an IMG with “test.gif” as src and immediately
// add it to the document
document.body.appendChild(IMG({“src”:”test.gif”}));
});