Strange, i'm using firefox 3.0.1 under linux :/ I have the same problem with the documentation example.
2008/9/1 Jason Bunting <[EMAIL PROTECTED]> > > > I tried your code with both the "current" version of MochiKit, 1.3.1, and > the latest packed version from the repository. > > For both of those, your code worked just fine in FireFox 3.0.1 and IE 7 on > Windows XP Pro. > > Not sure what your problem is, so maybe someone else has an idea. Which > browser is this failing in? If you want additional examples, even though > your example seems to work just fine for me, there are a few on the > documentation page: > > http://www.mochikit.com/doc/html/MochiKit/DOM.html > > Jason Bunting > > > > -----Original Message----- > > From: [email protected] [mailto:[EMAIL PROTECTED] On > > Behalf Of [EMAIL PROTECTED] > > Sent: Monday, September 01, 2008 11:21 AM > > To: MochiKit > > Subject: [mochikit] help with createDOM > > > > > > Hello, > > > > I'm new to mochikit, i'm trying to use it to create HTML fragments > > with DOM api (i'm using mochikit from SVN). > > > > The following code is working : > > > > //---------------------------------------------------------------- > > var new_node = H1('hello'); > > var target = document.getElementById('title'); > > swapDOM(target, new_node); > > //---------------------------------------------------------------- > > > > "hello" is correctly displayed. > > > > But this code NOT : > > > > //---------------------------------------------------------------- > > var new_node = DIV({'id':'title'}, H1('hello')); > > var target = document.getElementById('title'); > > swapDOM(target, new_node); > > //---------------------------------------------------------------- > > > > [object HTMLHeadingElement] is displayed in place of "hello". > > > > Do you have any working example of DOM usage please ? > > > > Thx. > > > > > > > > > No virus found in this incoming message. > > Checked by AVG - http://www.avg.com > > Version: 8.0.169 / Virus Database: 270.6.14/1645 - Release Date: 9/1/2008 > > 7:19 AM > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" 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/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
