[Proto-Scripty] Accordion v2 and script.aculo.us

2009-09-24 Thread bob harry
Hi, Have one div Effect.toggle links to other divs. However I want to use the accordion effect on them so only one div is visible at once. How do I go about doing this still using the div ids rather than a header then content underneath. Because I want the headers to be in my navigation div. Any h

[Proto-Scripty] Autocompleter not working in IE. Stumped.

2009-09-24 Thread MastaBaba
Hi all, I've got autocompleter not working in IE, 6, 7 or 8. I'm not getting thrown a JS error, it simply doesn't load the underlying file, almost as if the library isn't even loaded, though it is. The script works in FF, Opera, Safari and Chrome. Any thoughts would be wildly appreciated. Here's

[Proto-Scripty] Json and prototype

2009-09-24 Thread Alex Mcauley
Good morning people. I am trying to develop a typewriter module for a website that takes the text from a json array returned by an ajax request. Can prototype handle looping the array that is returned and deal with outputting it to the browser one character at a time? The retrurned array from t

[Proto-Scripty] Re: Observe new elements

2009-09-24 Thread Alex McAuley
You need to stopObserving the old ones relative to your element (cleans up the observers) and add a new observer as normal HTH Alex Mcauley http://www.thevacancymarket.com - Original Message - From: Russell Keith To: prototype-scriptaculous@googlegroups.com Sent: Wednesday, Se

[Proto-Scripty] Re: Json and prototype

2009-09-24 Thread T.J. Crowder
Hi Alex, Enumerable#each will loop through the array, or of course just a boring old-fashioned for loop is fine. For splitting the strings into individual characters, you can use String#split with "" as the separator, that gives you back an array of one-character strings (which you could use Enum

[Proto-Scripty] Re: Json and prototype

2009-09-24 Thread Alex McAuley
Thanks TJ. Do you have an example on the loop .. Does it go somehing like items.each(function(item) { alert(item.title+ ' ' +item.content); }); ? Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "T.J. Crowder" To: "Prototype & script.aculo.us" Sent: Thurs

[Proto-Scripty] Extending Enumerable

2009-09-24 Thread Cédric Bertolini
Hi there, I want to add a method to all my Enumerables, past, present and future. How can I do that? Thanks for your time! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To pos

[Proto-Scripty] Re: Extending Enumerable

2009-09-24 Thread david
Hi Cédric, For futur enumerables, the Element.addMethods is what you need. See : http://prototypejs.org/api/element/addMethods For past, you should use the same function but extend manually each object created, because the object are already created with the vision of extension defined at its cr

[Proto-Scripty] Re: Autocompleter not working in IE. Stumped.

2009-09-24 Thread david
Hi MastaBaba, Loading... new Ajax.Autocompleter("tags","hint1","../s/backend/tags.php", {paramName: "value",minChars: 2, tokens: ',', indicator: 'indicator1'}); Try this, it could work :\\ I change the span element to receive the autocompleter response to a div, and change the paramName

[Proto-Scripty] Re: Event.pointerX() Different Between IE and FF?

2009-09-24 Thread KammylandSoftware
Does it perhaps have anything to do with whether the measurements are taken relative to the Page or Viewport? I'm not quite clear on the difference between the Page and Viewport. Does anyone know if there is a difference? Thanks. --~--~-~--~~~---~--~~ You received

[Proto-Scripty] Ajax accept headers in google chrome frame

2009-09-24 Thread Alex
hi everyone, just trying out our site at work with chrome frame, and found an odd effect: the HTTP_ACCEPT header from an ajax request only reports (according to rails) as "*/*". This is with prototype 1.6.0.2. This is not the case for standalone chrome. that works as expected. I realise it's st

[Proto-Scripty] Re: Json and prototype

2009-09-24 Thread T.J. Crowder
Hi Alex, Yup, that's it exactly. The API docs[1] have an example (although it's pretty minimal) and more importantly, further information about the parameters. [1] http://api.prototypejs.org/language/enumerable.html#each-instance_method -- T.J. On Sep 24, 11:23 am, "Alex McAuley" wrote: > Th

[Proto-Scripty] Re: Ajax accept headers in google chrome frame

2009-09-24 Thread T.J. Crowder
Hi, > This is with prototype 1.6.0.2. Any chance of trying it with something more recent? 1.6.0.3 was released a year ago, and 1.6.1 was released last month. -- T.J. On Sep 24, 1:07 pm, Alex wrote: > hi everyone, > > just trying out our site at work with chrome frame, and found an odd > effe

[Proto-Scripty] Re: Event.pointerX() Different Between IE and FF?

2009-09-24 Thread DJ Mangus
Not sure about the major browsers but just read about iPhone optimiation of pages and viewport is certainly odd in mobile Safari. Sent from my phone so pardon the spelling errors. On Sep 24, 2009, at 6:34 AM, KammylandSoftware wrote: > > Does it perhaps have anything to do with whether the mea

[Proto-Scripty] www.ccshoe.cn

2009-09-24 Thread 77
www.ccshoe.cn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send ema

[Proto-Scripty] Re: Ajax accept headers in google chrome frame

2009-09-24 Thread Alex
fair point... yeah, with 1.6.1, rails still reports "*/*" On Sep 24, 3:01 pm, "T.J. Crowder" wrote: > Hi, > > > This is with prototype 1.6.0.2. > > Any chance of trying it with something more recent?  1.6.0.3 was > released a year ago, and 1.6.1 was released last month. > > -- T.J. > > On Sep

[Proto-Scripty] appendTo

2009-09-24 Thread Владимир Хомич
Hi everybody! could someone please help to rewrite this function to prototype? $('#comment-form') .hide() .appendTo('#comment-10 .form-placeholder') .fadeToggle(600); $('#comment_parent_id').val(1); Neverhood (September 23, 2009 at 11:44 PM) ye --~--~-~--~~~

[Proto-Scripty] Prototype Logo as PNG file

2009-09-24 Thread William
Hi there, I've been looking for a Prototype Logo in .png format for awhile and haven't been able to grab one anywhere. I'd like to place it on a credits page for the service we're launching next month. Any idea where I'd find one? Obvously there's the .gif in the files section, but I'd prefer no

[Proto-Scripty] Remove onFocus borders from buttons in IE

2009-09-24 Thread clicforw...@googlemail.com
Hello, i tried to remove this Borders around links and form buttons in IE document.observe("dom:loaded", function() { $$('button').onclick = function() { (this).blur(); } }); But this is no

[Proto-Scripty] Re: Ajax accept headers in google chrome frame

2009-09-24 Thread T.J. Crowder
Hi, That's strange. It sounds like something to report to the Google Frame team, though, since it doesn't happen normally. Google Frame is "early-stage"[1] after all... [1] http://code.google.com/chrome/chromeframe/ -- T.J. :-) On Sep 24, 3:53 pm, Alex wrote: > fair point... > > yeah, with

[Proto-Scripty] Re: appendTo

2009-09-24 Thread Matt Foster
I'm going to give the disclaimer that i can't make much sense out of the example you've posted. You're referencing 'comment-form' and 'comment_parent_id' which are nowhere to be found in the actual HTML. The facts that I am going to assume are... A) That you're inserting a form element inside of

[Proto-Scripty] Range utility increment

2009-09-24 Thread JoJo
http://www.prototypejs.org/api/utility/dollar-r >From the documentation of the Range utility, it seems like it can only increment by 1's. For example, $A($R(1,10,true)) gives you: [1,2,3,4,5,6,7,8,9,10]. I'm looking for a way to specify that I want to increment by any value. Let's say count up b

[Proto-Scripty] Re: IE 8 Matter with Prototype 1.6.1 and Scriptaculous 1.8.2

2009-09-24 Thread RobG
On Sep 23, 11:11 pm, Mona Remlawi wrote: > this must be the comma after the last item in your array below > > [ >   new Effect.Appear(this.el_id_photoAlbumsSelectorDisplayMatte, > {sync:true, "to":0.76 }), >   new Effect.Appear(this.el_id_photoAlbumsSelectorDisplayBtn, > {sync:

[Proto-Scripty] Re: Range utility increment

2009-09-24 Thread Alex McAuley
if you want an array then i wluld use push var twos=new Array(); for(i=0;i<=10;++i) { if(i%2) { twos[]=i; } } . Untested but i cant see why it wouldnt work Alex Mcauley http://www.thevacancymarket.com - Original Message - From: "JoJo" To: "Prototype & script.aculo.us" Sent: