[mochikit] Re: I'm having a problem with BindMethods
I think you're confused. self is not defined. You want to be using this. On Feb 4, 2008 11:59 PM, Akari no ryu [EMAIL PROTECTED] wrote: self is a property of the pseudo classes in Javascript, similar to this. I possibly should have added that if I comment out the bindMethods part, everything works as expected. On Feb 5, 7:55 am, Bob Ippolito [EMAIL PROTECTED] wrote: Card = function(value, suit, orientation, set) { MochiKit.Base.bindMethods(self); ^^ self isn't defined here. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com 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 -~--~~~~--~~--~--~---
[mochikit] Re: I'm having a problem with BindMethods
self is a property of the pseudo classes in Javascript, similar to this. I possibly should have added that if I comment out the bindMethods part, everything works as expected. On Feb 5, 7:55 am, Bob Ippolito [EMAIL PROTECTED] wrote: Card = function(value, suit, orientation, set) { MochiKit.Base.bindMethods(self); ^^ self isn't defined here. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com 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 -~--~~~~--~~--~--~---
[mochikit] Re: including an html file?
Thanks Arnar, that worked out perfectly! Cheers, lance Arnar Birgisson wrote: On Feb 3, 2008 4:00 AM, Lance Levsen [EMAIL PROTECTED] wrote: Can I use a doSimpleXMLHttpRequest to include an html file into a span? I've been trying all day but I am not making much headway. snip ... replaceChildNodes(page,res.resultText); Try using $(page).innerHTML = resultText cheers, Arnar -- Lance Levsen, Catprint Computing Tel: (306) 493-2249 Cell: (306) 230-8783 Blog: http://www.catprint.ca/blog/ SaskBlogs: http://saskblogs.catprint.ca/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com 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 -~--~~~~--~~--~--~---