Jorge Godoy <[EMAIL PROTECTED]> writes:

DOM approach (using MochiKit, of course):

    my_dyn_content = DIV({'id':'infotarget'}, P('this is a para inside the 
div!'));
    replaceChildNodes('infotarget', my_dyn_content);

.innerHTML approach (also using MochiKit):
    $('infotarget').innerHTML = '<p>this is a para inside the div</p>';

Just to make it clear: you'll have to use connect() from MochiKit.Async to
connect the onclick signal to a function that does the above.  And if it's an
automatic message that should vanish you will need MochiKit.Async's
callLater() as well.
--
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to