[mochikit] Re: Coordinating async stuff

2006-05-12 Thread Bob Ippolito
On May 12, 2006, at 8:54 AM, dbdweeb wrote: I've got a page that displays 2 SQL result sets in 2 different HTML tables. Users can update/delete multiple rows and insert a new row and these multiple database actions must be performed simultaneously with one click on the submit button. 9

[mochikit] losing formatting in IE

2006-05-12 Thread Max Ischenko
Hello there, I'm using MochiKit tofold content of some td nodes in the table. I'm trying to render newlines using BR() function and it works in FF1.5 but doesn't in IE6. It also double-escapes things like amp which is not intended. I'm not really sure if this is MochiKit specific so sorry if it

[mochikit] Re: losing formatting in IE

2006-05-12 Thread Bob Ippolito
On May 11, 2006, at 5:03 AM, Max Ischenko wrote: Hello there, I'm using MochiKit tofold content of some td nodes in the table. I'm trying to render newlines using BR() function and it works in FF1.5 but doesn't in IE6. It also double-escapes things like amp which is not intended.

[mochikit] Re: Coordinating async stuff

2006-05-12 Thread dbdweeb
This really did the trick nicely. THANKS! Oh yeah, the SQL is in a web service written in Python with HTTP authentication. The SQL is in a Python dictionary and looked up based on the key passed in the URL query string. --~--~-~--~~~---~--~~ You received this

[mochikit] Using javascript closures to implement private class functions.

2006-05-12 Thread Doug Crawford
I have always been irritated that whenever I call private functions on my class/object I have to prepend the function name with this. in order for javascript to associate the function with the correct object. In an effort to avoid this I was considering to change my classes so that pivate

[mochikit] Re: Using javascript closures to implement private class functions.

2006-05-12 Thread Doug Crawford
What about just assuming that my private functions don't need access to this and just define all private data for the class directly in the class constructor function like so: MyClass = function() { var privateData1 = 0; var privateData2 = 0; function privateA() {

[mochikit] Re: Using javascript closures to implement private class functions.

2006-05-12 Thread Bob Ippolito
On May 12, 2006, at 4:20 PM, Doug Crawford wrote: What about just assuming that my private functions don't need access to this and just define all private data for the class directly in the class constructor function like so: MyClass = function() { var privateData1 = 0; var

[mochikit] innerHTML and XML entities

2006-05-12 Thread David Shoemaker
Hi,I'm doing $('element').innerHTML = 'some big string with some 's in it that I don't want to be escaped'. The browser seems to always turn the 's into XML entities, which is not desired in this case. Is there any way to prevent the browser from escaping this? Thanks,David Shoemaker-- --- I'd

[mochikit] Re: innerHTML and XML entities

2006-05-12 Thread Bob Ippolito
On May 12, 2006, at 5:01 PM, David Shoemaker wrote:I'm doing $('element').innerHTML = 'some big string with some 's in it that I don't want to be escaped'.  The browser seems to always turn the 's into XML entities, which is not desired in this case.  Is there any way to prevent the browser from