[mochikit] Re: MochiKit.DOM.createDOM problem.....

2006-07-15 Thread Zachery Bir
On Jul 15, 2006, at 1:28 PM, Andrew wrote: > Hi Bob, > you are correct. What I was after was: > > xml = dojo.dom.createDocumentFromText(data); > divList = xml.getElementsByTagName("div"); > dojo.byId('output').innerHTML = > dojo.dom.innerXML(divList.item(2)); > > Just wondered w

[mochikit] Re: MochiKit.DOM.createDOM problem.....

2006-07-15 Thread Bob Ippolito
On Jul 15, 2006, at 10:21 AM, Andrew wrote: > Ok, my bad, I understand now. So my next question is, is there any way > in mochikit to create a DOM document from a string or xml type of > document? No, you'll have to use the browser's native way to do that. The only really portable way is to u

[mochikit] Re: MochiKit.DOM.createDOM problem.....

2006-07-15 Thread Andrew
Hi Bob, you are correct. What I was after was: xml = dojo.dom.createDocumentFromText(data); divList = xml.getElementsByTagName("div"); dojo.byId('output').innerHTML = dojo.dom.innerXML(divList.item(2)); Just wondered whether there was a nicer, more intuitive, way of doing thing

[mochikit] Re: MochiKit.DOM.createDOM problem.....

2006-07-15 Thread Bob Ippolito
On Jul 15, 2006, at 9:31 AM, Andrew wrote: > > Hi, > I have just downloaded the latest, svn, version of MochiKit and am > using it (packed) in conjunction with dojo 0.3.1. I attempt to > create a > new DOM like so: > > MochiKit.DOM.createDOM(data) - data being an xhtml document > > and I get t

[mochikit] Re: MochiKit.DOM.createDOM problem.....

2006-07-15 Thread Andrew
Ok, my bad, I understand now. So my next question is, is there any way in mochikit to create a DOM document from a string or xml type of document? regards Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Mo

[mochikit] Re: MochiKit.DOM.createDOM problem.....

2006-07-15 Thread Zachery Bir
On Jul 15, 2006, at 12:58 PM, Andrew wrote: > Hi Zac, > what I'm attempting to do is getting the returned page from a submit > and then taking out element output which is the id of a div tag in the > returned document. So it's basicall the other way round of what you > have mentioned: Doesn't ma

[mochikit] Re: MochiKit.DOM.createDOM problem.....

2006-07-15 Thread Andrew
One of those days! > dojo.ById("myDIV") = my_doc.getElementById("output"); this should be dojo.ById("myDIV").innerHTML = my_doc.getElementById("output").innerHTML; regards Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[mochikit] Re: MochiKit.DOM.createDOM problem.....

2006-07-15 Thread Andrew
Hi Zac, what I'm attempting to do is getting the returned page from a submit and then taking out element output which is the id of a div tag in the returned document. So it's basicall the other way round of what you have mentioned: my_doc = createDOM(data); dojo.ById("myDIV") = my_doc.getElementB

[mochikit] Re: MochiKit.DOM.createDOM problem.....

2006-07-15 Thread Andrew
Hi, on a further note > MochiKit.DOM.createDOM(data) - data being an xhtml document it turns out that the error was mine as I never explicitly declared the variable xml! When I do an alert on divList I get 'null'. I thought mochikit dom avoided that?! var x = new dojo.io.FormBind({ for

[mochikit] Re: MochiKit.DOM.createDOM problem.....

2006-07-15 Thread Zachery Bir
On Jul 15, 2006, at 12:31 PM, Andrew wrote: > Hi, > I have just downloaded the latest, svn, version of MochiKit and am > using it (packed) in conjunction with dojo 0.3.1. I attempt to > create a > new DOM like so: > > MochiKit.DOM.createDOM(data) - data being an xhtml document > > and I get the