[Proto-Scripty] Weird behaviooour in Ajax.Updater Ajax.Request

2009-04-01 Thread Jérémie
Hello eveyone, Today I have experimented a weird behaviour with Ajax stuff in prototype : Having the JS code above, I retrieve a UTF-8 HTML fragment with special chars like é, à , ù, etc : var cible = '/lib/ajax/chargementGrille' + ('S' == modeAffichage ? 'Secretaire' : '')

[Proto-Scripty] Re: Image magnifier script written in scriptaculous

2009-04-01 Thread khany
awesome. just what i was looking for. you will see it soon on http://travian.ivault.co.uk/geo/ On Mar 30, 2:20 pm, Diodeus diod...@gmail.com wrote: Hi Farhan, I wrote one here:http://www.mintomidtown.com/Penthouse/floorplans.asp?p=1 You can grab the code by viewing the source of the page.

[Proto-Scripty] Re: Weird behaviooour in Ajax.Updater Ajax.Request

2009-04-01 Thread Walter Lee Davis
Are you absolutely sure that your server is returning UTF-8 text to you? Look in Firebug at the actual response headers and see to be sure. If you're on Apache, there is a preference for auto-charset that you have to tweak or disable, and if you're using a PHP back-end, you often have to

[Proto-Scripty] Re: Problems getting checkbox values

2009-04-01 Thread Walter Lee Davis
A lot of this will depend on the server-side. If you're using PHP, it's a matter of naming the form elements correctly. There are two methods I'm aware of, probably more. input type=checkbox name=foo[1] value=1 / input type=checkbox name=foo[2] value=1 / input type=checkbox name=foo[3]

[Proto-Scripty] Re: having a default of no selection in drop down list

2009-04-01 Thread Jay
ugh... I've been reading through the scriptaculous code but having no real luck figuring it out. it would be nice if I could see the demos at script.aculo.us but everytime I try to go there the page times out. On Mar 30, 5:27 am, claus.k...@googlemail.com claus.k...@googlemail.com wrote: On

[Proto-Scripty] registering observers with classes using $$

2009-04-01 Thread BrentNicholas
Hello all, I found that the getElementsByClassName had been depricated so I'm trying to use $$ as was suggested. I'm a bit stuck though. The goal is to have clicking on any link with a class of 'classProjectsEditA' and have it trigger the function editProjectRecord. After that I'll get the id

[Proto-Scripty] Re: registering observers with classes using $$

2009-04-01 Thread Hector Virgen
$$() uses CSS selectors, so you must pass in a CSS rule. Try this: $$('a.classProjectsEditA').invoke('observe', 'click', editProjectRecord); -Hector On Wed, Apr 1, 2009 at 8:47 AM, BrentNicholas brentnicho...@gmail.comwrote: Hello all, I found that the getElementsByClassName had been

[Proto-Scripty] Misinterpretating Effect.morph()?

2009-04-01 Thread ferion
Hi everybody, i got another Problem wis prototype $(widget.widgetId).morph('left: 100px; top: 200px'); is working perfectly. But i do want to move the element instantly (with duration:0) so i try to reform the command to Effect.Morph(widget.widgetId,{style: 'left: 100px; top: 200px' }); This

[Proto-Scripty] Re: registering observers with classes using $$

2009-04-01 Thread BrentNicholas
Ah, that did it... thank you. BN On Apr 1, 11:59 am, Hector Virgen djvir...@gmail.com wrote: $$() uses CSS selectors, so you must pass in a CSS rule. Try this: $$('a.classProjectsEditA').invoke('observe', 'click', editProjectRecord); -Hector On Wed, Apr 1, 2009 at 8:47 AM, BrentNicholas

[Proto-Scripty] Take action after Ajax.Updater

2009-04-01 Thread Abel Figueiredo
Hi all. I've got two selects and an image. When I change the second one, the image updates and when i change the first one, the second is updated. The information contained in the second select is vital to choose witch image is loaded. My problem is when I change the first one, I want to

[Proto-Scripty] Select form elements by name

2009-04-01 Thread Diodeus
What's the Prototype equivalent of this jQuery code? I would like to select all of the radio button with a certain name. $('#billship input:radio[name=shipType]'); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Re: Select form elements by name

2009-04-01 Thread Walter Lee Davis
$$('#billship input[type=radio][name=shipType]') or $('billship').select('input[type=radio][name=shipType]'); The second one is probably faster, since it doesn't have to slog through the entire page. Pretty much anything that you can target with CSS3 selectors can be gotten at through $$

[Proto-Scripty] Re: Trying to develop something new

2009-04-01 Thread Richard Quadling
2009/4/1 kangax kan...@gmail.com: On Mar 31, 11:54 am, Richard Quadling rquadl...@googlemail.com wrote: [...] Including the browser resize ones? How did you get them to pass? Nope. Those still fail, of course. Those are not Prototype bugs after all - rather, browser limitation : ) --

[Proto-Scripty] Re: Select form elements by name

2009-04-01 Thread RobG
On Apr 2, 4:43 am, Diodeus diod...@gmail.com wrote: What's the Prototype equivalent of this jQuery code? I would like to select all of the radio button with a certain name. $('#billship input:radio[name=shipType]'); All of the following will return a live NodeList: