Re: [Rails-spinoffs] [Prototype] understanding evalScripts

2006-03-23 Thread Ben Anderson
yes - that works. Thanks Rob! On 3/10/06, Robin Haswell <[EMAIL PROTECTED]> wrote: > I'm not a language expert but this looks like a scope problem. Have you > tried replacing "page" with "window.page" everywhere? > > -Rob > > Ben Anderson wrote: > > Hi, > > I have a misunderstanding of what I tho

RE: [Rails-spinoffs] XML parser fixed

2006-03-23 Thread Claudio Gamboa
Hi well, I tested it with a RSS and it didn't work in IE. It returns a nodeType = 7 in the first node. And if the RSS has a comment in it doesn't work too, because the nodeType = 8 BTW, for your code that I have see you are a good JS programmer. On Thu, 2006-03-23 at 10:40 -0700, Gregory

[Rails-spinoffs] Re: Autocompleter that auto scrolls through results..

2006-03-23 Thread erin
Jeremy Kitchen wrote: > On Monday 13 March 2006 08:14, SPENDLOVE, Matt, FM wrote: >> Hi All >> >> Before I investigate further, has anyone implemented an Autocompleter that >> will auto scroll down / up the results div as the user moves down through >> the list (using arrow keys) ? > > the scripta

[Rails-spinoffs] Re: Implementing nested drag and drop using scriptaculous

2006-03-23 Thread Mark Jetter
Hi Martin, Thanks for replying immediately. Highly appreciated. As i was trying my hands on it finally the nested sortables worked. Here is the code. I still have some questions on it which i have listed below the working code. /** Nested sortables using scriptaculous

[Rails-spinoffs] Re: Implementing nested drag and drop using scriptaculous

2006-03-23 Thread Martin Scheffler
that won't work. Try it like this: Wrap both sortables in a div and make that draggable. Also use the handle property, so that not all of the div is a drag handler. blabla blabla Sortable.create("firstlist", {dropOnEmpty:true,containment:["firstlist","secondlist"],constraint:false}

[Rails-spinoffs] Re: Implementing nested drag and drop using scriptaculous

2006-03-23 Thread Mark Jetter
Martin Scheffler wrote: > > I am not sure if this is what you want: > You have two sortables, and you want to be able to move draggables from > one sortable to the other. To do this, give both sortables these options > on startup: {containment:["boxlist1", "boxlist2"]} Hi Martin, Thanks for r

Re: [Rails-spinoffs] document.write() in ajax response

2006-03-23 Thread Martin Bialasinski
On 3/22/06, Maninder, Singh <[EMAIL PROTECTED]> wrote: > I am not able to follow what you suggested. > > Could you take this example and explain? There is nothing special with document.write. It can be redeclared like any normal property. Just try this in normal page: document.write("written");

RE: [Rails-spinoffs] [ANN] Support for window scrolling fordraganddrop

2006-03-23 Thread Gregory Hill
Well, I added a manual check to make sure it doesn't move it above 0 on either axis. I guess I just never let it scroll high enough to notice the behavior before. The first two lines were in the diff, just add the conditionals after. Or if you know a more prototype-ish way to accomplish the same

RE: [Rails-spinoffs] [ANN] Support for window scrolling fordraganddrop

2006-03-23 Thread Gregory Hill
> Heya, > > I think something is wrong with the patch-- when moving outside the > window > on the top, when the window is completely scrolled up, the draggable > somehow > continues to move (tested on Safari and Firefox). Hmm... I didn't see that in my testing, but I'll see if I can figure it out

RE: [Rails-spinoffs] XML parser fixed

2006-03-23 Thread Gregory Hill
> Hi, I changed the XML parser who have been write by Greg (Gregory Hill) > and changed some things. > > It did not work in IE and Safari and opera. Um... I tested mine in IE and Opera without any problems. Or are you saying that the stuff you added did not work in those browsers? Greg ___

RE: [Rails-spinoffs] Serialized form... problems with accents

2006-03-23 Thread Gregory Hill
ISO-8859-1 I believe.  Been meaning to switch to UTF-8 at some point, but last time I tried I just ended up breaking lots of things.   Greg   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Siegfried Puchbauer Sent: Thursday, March 23, 2006 4:21 AM To: rails-sp

Re: [Rails-spinoffs] Serialized form... problems with accents

2006-03-23 Thread Blaise Bernier
Sometimes I think I'm plain dumb... I'll try to add encoding to my page! --- I'm also using prototype to serialize forms with german umlauts ... I have no problems because I use UTF-8 as page-enconding What page encoding do you use? brgds sigi On 3/22/06, *

[Rails-spinoffs] XML parser fixed

2006-03-23 Thread Claudio Gamboa
Hi, I changed the XML parser who have been write by Greg (Gregory Hill) and changed some things. It did not work in IE and Safari and opera. I fixed some bugs. Now it works fine in IE, Safari, Firefox and Opera. /* --- */ XMLParser = Class.create(); Obje

[Rails-spinoffs] Re: Implementing nested drag and drop using scriptaculous

2006-03-23 Thread Martin Scheffler
> > > As shown in the figures above, I have Box1 and Box2 (whcih i will make > either div or list elements) and within each of them i have lines > (another list). I am trying to create these boxes and lines draggable. > Further, i am trying to create my lines i.e. list inside the

Re: [Rails-spinoffs] Serialized form... problems with accents

2006-03-23 Thread Siegfried Puchbauer
I'm also using prototype to serialize forms with german umlauts ... I have no problems because I use UTF-8 as page-enconding What page encoding do you use?brgdssigi On 3/22/06, Gregory Hill <[EMAIL PROTECTED]> wrote: I have run into the same problem.  It's the _javascript_ URIEncode function,

Re: [Rails-spinoffs] [ANN] Support for window scrolling fordraganddrop

2006-03-23 Thread Thomas Fuchs
Heya, I think something is wrong with the patch-- when moving outside the window on the top, when the window is completely scrolled up, the draggable somehow continues to move (tested on Safari and Firefox). I'll add the passing through of the scroll options for the time being. -Thomas Am