[Proto-Scripty] Re: Hovering Div Shows a Hidden Div - Prototype

2010-05-06 Thread T.J. Crowder
Hi, If I'm understanding you, you want to hide the inner2 divs, but then show them if the outer-div divs are hovered. The `mouseenter` and `mouseleave` events can help you with that: $$('div.outer-div').each(function(div) { div.observe('mouseenter', function() {

[Proto-Scripty] Re: Ajax.Request works - form.request() does not - on IE 8.0

2010-05-06 Thread Jinsa
Hey, Can you put your code in order to have a better view of your problem? This kind of request works on IE so it should be a little mistake in your code. Just put it there and we will try to help you :) Bye, Jinsa. On May 5, 9:27 am, walther diechmann waltherdiechm...@gmail.com wrote: Anyone

[Proto-Scripty] Re: Ajax.Request works - form.request() does not - on IE 8.0

2010-05-06 Thread walther diechmann
Hey Jinsa, good of you! Hard pressed to come up with a solution, I ran the HTML (generated by Formtastic) through validator.w3.org - and turned out the input tag was not closed properly ( input / was missing the slash). Posted my observation to the Formtastic group here on Google - and they

[Proto-Scripty] Re: Keypress for html select

2010-05-06 Thread ColinFine
On May 5, 2:48 pm, Walter Lee Davis wa...@wdstudio.com wrote: Doesn't the change event fire as soon as the select loses focus and no   longer has the same value it started with? I thought that was the   basis for the event itself. Can you post an example that fails to fire   the change event

[Proto-Scripty] overflow:hidden DIV Scrolling

2010-05-06 Thread Hariz Soleminio
Hi Guys, I'm having hard time googling the DIV scrollto. its like a DIV that's scrolls when I click something. I did find some code snippets for prototype and scriptacolous. However the image and text flickers or distorts when I hit the event for sliding. Do you have any in mind that could

[Proto-Scripty] Re: hash serialization problems

2010-05-06 Thread chrysanthe m
Hi Can anyone help me understand this? I can recreate a properly formatted JSONArray server-side, but I really want to know why Object.toJSON() didnt format it client-side correctly. On Thu, Apr 29, 2010 at 4:36 PM, chrysanthe m chrysant...@gmail.com wrote: Hi I have created a hash, added to

Re: [Proto-Scripty] Re: hash serialization problems

2010-05-06 Thread Guillaume Lepicard
hi, The way an hash is serialized in json is the correct way i think, what you want is more an array than an hash... So you could either use an array var a = $A(); a.push({name00: value00}); a.push({name01: value01}); and then serialize this array : Object.toJSON(a); or if it is too much work,

[Proto-Scripty] Re: Hovering Div Shows a Hidden Div - Prototype

2010-05-06 Thread Pixelflips
Thanks so much for your great response and all the links. I have tried the solution but so far it doesn't seem to work. I will be reviewing everything on my end to make sure I didn't cause the problem myself. I will comment again with more info if I cant get it to work. Thanks again!! On May 6,

[Proto-Scripty] Canceling a custom effect using click or mousewheel

2010-05-06 Thread Joe Williams
Hi All, I'm a fairly new prototype and scriptaculous user with limited javascript experience. I have been developing with Ruby on Rails for some time, and found I needed to automatically scroll to the bottom of a div as part of a series of animated effects. Since Effect.ScrollTo only affects

[Proto-Scripty] how to toggle scriptaculous's move effect?

2010-05-06 Thread Lille
Hi, I'd like to use the move effect (in Rails) such that an an element moves between point A and B per toggle. My problem is I don't know how to encode state in the page so that my toggle function knows which of the coordinates -- A(x,y) or B(x,y) -- to move the element to. Simply put, is there

[Proto-Scripty] Re: Hovering Div Shows a Hidden Div - Prototype

2010-05-06 Thread T.J. Crowder
No worries, glad to help. Looking at it again, I did see a substantial inefficiency. This code: $$('div.outer-div').each(function(div) { div.observe('mouseenter', function() { this.down('div.inner2').show(); }); div.observe('mouseleave', function() {

[Proto-Scripty] Drag n Drop problem in Safari/Chrome and Opera

2010-05-06 Thread jmack159
Hello everyone, Im working on a project currently using Drag and Drop controls extensively. (http://dixonlab.rutgers.edu/tools/faFinder/design.php) I'm using Prototype 1.6.0.3 and Scriptaculous 1.8.2 In Safari and Chrome (on Windows [4.04 and 4.1.249 respectively] and OSX) the droppable

[Proto-Scripty] Re: Canceling a custom effect using click or mousewheel

2010-05-06 Thread Joe Williams
OK, so I solved the problem I think. I created a queue called 'dialogue' in the call to Effect.Scroll, and then put the following code in my Rails application.js file: Event.observe(window, 'load', function() { Event.observe($('dialogue_window'), 'click', function() {