[mochikit] Re: appendChildNodes displays HTML-tags instead of executing them

2008-04-26 Thread Kevin Damm
I think what you're looking for is the newline character, "\n" - Kevin On Sat, Apr 26, 2008 at 6:54 AM, Decebal <[EMAIL PROTECTED]> wrote: > > I use appendChildNodes aas follows: > appendChildNodes(commentDiv, P({'class' : 'commentText'}, "Some > textand more text")); > This is displa

[mochikit] Re: queryString has Problems with german "Umlaute"

2008-04-11 Thread Kevin Damm
But, then you are not url-encoding the quotes in the query string. From the documentation for encodeURIComponent: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Functions:encodeURIComponent it looks like the conversion from Latin-1 umlaute to UTF-8 byte sequence is int

[mochikit] Re: New INPUT short-hand functions?

2007-12-17 Thread Kevin Damm
cement for > JavaScript, you shouldn't try and wedge it in everywhere just because > it might be possible :) > > -bob > > > On 12/17/07, Kevin Damm <[EMAIL PROTECTED]> wrote: > > > > Oops, that should probably be arguments[0] > > > &g

[mochikit] Re: New INPUT short-hand functions?

2007-12-17 Thread Kevin Damm
Oops, that should probably be arguments[0] On Dec 17, 2007 2:00 PM, Kevin Damm <[EMAIL PROTECTED]> wrote: > Maybe use MochiKit.Base.merge or MochiKit.Base.update: > > function CHECKBOX() { > return INPUT.apply(this, update(arguments, {'type': "checkbox"

[mochikit] Re: New INPUT short-hand functions?

2007-12-17 Thread Kevin Damm
Maybe use MochiKit.Base.merge or MochiKit.Base.update: function CHECKBOX() { return INPUT.apply(this, update(arguments, {'type': "checkbox"})); } - Kevin On Dec 17, 2007 1:30 PM, machineghost <[EMAIL PROTECTED]> wrote: > > I recently found myself doing this a lot: > var a = INPUT({type:"

[mochikit] Re: SSL Secure warning message when using swapdom

2007-12-04 Thread Kevin Damm
The most likely reason you are getting this message is because your page is served from an https:// site and some content (images, etc.) is being served from an http:// site. This message appears (even without javascript usage) when content from insecure http: is on the same page as secure conten

[mochikit] Re: Connect Issues

2007-11-05 Thread Kevin Damm
Nothing really pops out at me from your example code. Do you get any Javascript warnings or errors when that input field gets focus? Or, better yet, do you have a publicly-accessible demo page that we can poke around at? - Kevin On 11/5/07, feesh <[EMAIL PROTECTED]> wrote: > > > Hi all, > >

[mochikit] Re: IE 7 Issues

2007-10-10 Thread Kevin Damm
It's probably an issue with IE7 aggressively caching the request. Try adding a unique string (e.g. datetime and a random number) to the end of your request as part of the query string so that IE views it as a unique page. So, an example, http://mysite.com/ajax-process.php?var=value would become

[mochikit] Re: Can it be more simple ?

2007-02-26 Thread Kevin Damm
Or, return (compare(americanDate($('exsupplier_date').value), americanDate($('arrival_date').value) != 1); On 2/26/07, Matthew Kwiecien <[EMAIL PROTECTED]> wrote: > More simple how? So you don't need the split and piecing back together? If > so, then how about: > > if > (compare(americanDate($(

[mochikit] Re: Is there any secret to connect to document.body on IE?

2007-01-09 Thread Kevin Damm
> I am more concerned with when some input fields are left, so that I can update > some calculations. I don't have a Windows box nearby to test IE on, but onblur propogates to the parent form in Firefox. This way you can connect one signal and catch when the user leaves a form element (assuming

[mochikit] Re: Is there any secret to connect to document.body on IE?

2007-01-09 Thread Kevin Damm
It looks like more than just IE has a problem with the onchange event. According to quirksmode http://www.quirksmode.org/js/events_compinfo.html#forms the onchange event is buggy for Safari and Opera as well, not being implemented for some form elements. It may be that the event doesn't propogat

[mochikit] Re: Is there any secret to connect to document.body on IE?

2007-01-08 Thread Kevin Damm
Maybe the onchange event isn't propagating to document.body in IE. Have you tried wrapping everything in a and connecting the signal handler to that div instead? That seems to be a good workaround. - Kevin On 1/8/07, Jorge Godoy <[EMAIL PROTECTED]> wrote: Jorge Godoy <[EMAIL PROTECTED]> wri

[mochikit] Re: Latest Error Free Revision for Visual

2006-11-07 Thread Kevin Damm
Have you also included New.js? On 11/7/06, Nirmal <[EMAIL PROTECTED]> wrote: > > Hi, > I am using SVN to get the latest codebase of MochiKit. I am trying to > use Visual Effect slideDown and Up but it has got errors, > > Visual.js > d.makeClipping is not a function > d.undoClipping is not a fun

[mochikit] Re: DOM Manipulation: Setting textNode to html string.

2006-10-31 Thread Kevin Damm
On 10/31/06, Zachery Bir <[EMAIL PROTECTED]> wrote: > > On Oct 31, 2006, at 3:03 PM, abargnesi wrote: > > > Hello, > > > > I am using the DOM Manipulation js library that is part of Mochikit > > and > > I like it a lot. And it seems quite fast. However I would like it to > > handle one case that

[mochikit] Re: fill select with mochikit

2006-10-25 Thread Kevin Damm
There isn't a form module. But, what you're looking for can probably be done using some MochiKit.DOM magic: var MyDic = [{'value':1, 'text':Text1}, {'value':2, 'text':Text2}]; var sel = SELECT({}); for (var i in MyDic) { sel.appendChild(MochiKit.DOM.OPTION({'value': MyDic[i].value}, MyDic[i].t

[mochikit] Re: setElementDimension and boxing model differences

2006-09-03 Thread Kevin Damm
>From what I understand, it's discouraged to use functions like isIe, isGecko, etc. to fork your condition on how you calculate or manipulate objects. There are a few good reasons for this, especially that the box model in future versions (or different current versions) of the same browser might

[mochikit] Re: How to include MochiKit in my pages?

2006-08-29 Thread Kevin Damm
Sometimes a web server is set up with a root directory different than the system's root directory... it could be that /abspathto/ is not the real path to MochiKit. Try treating the root directory as the document root for your web server and see if that works. - Kevin On 8/29/06, [EMAIL PROTEC

[mochikit] Re: Newbie - DoSimpleXmlHttpRequest not returning!

2006-07-08 Thread Kevin Damm
One of the restrictions on XMLHttpRequests is that they can only work on the same domain as the script they originated from. This is a javascript security feature to avoid malicious scripts found on another domain. Unfortunately, this means that you can't even share script information between ww

[mochikit] Re: Back, Forward best practice

2006-07-05 Thread Kevin Damm
whoops, accidentally replied to the last sender and not the whole list... On 7/5/06, Kevin Damm <[EMAIL PROTECTED]> wrote: > One approach I've found some success with (but haven't tested a great > deal) is to load one page that checks a session variable or cookie > va