[Proto-Scripty] Firefox 3/Safari Modal Popup Choppiness

2008-11-26 Thread Dave L
I am using prototype to build modal popups and am now having trouble with the timing of the fade-in effect in Firefox 3 and Safari. It gets super choppy when loading the fade, and sometimes I can see the element behind the popup flashes on top of the popup before it is stationed on the screen.

[Proto-Scripty] Submit a form using enter

2008-12-09 Thread Dave L
I am having trouble writing a function that will allow users to submit a form that is in a modal popup using the enter key in IE6. It works in all other browsers. I was thinking something along the lines of this: $('form_submit').onkeydown=if(event.keyCode==13){this.form.submit ();return

[Proto-Scripty] select menu with scrolling

2009-01-05 Thread Dave L
Im looking for ideas on how to implement a pull down menu that uses a scroll bar. There are about 30 items in a list and I only want to show 5 of them at a time. Anyone have any advice on how I would start this? --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Close Div when click outside

2009-01-21 Thread Dave L
I am trying to build my own select pull down menu that will close when a click is observed outside of the pull down div, but I am having trouble stopping the click event from triggering when the link to show the pull down is clicked. This is the relevant code: a onclick=showSelect();

[Proto-Scripty] Disabling mouseover during an effect

2009-02-13 Thread Dave L
I am using the ScrollTo() effect to scroll down to an element on the page, but there are some links in between that have a mouseover event that highlights them and it looks rather odd when they flicker during the ScrollTo() transition. Im wondering if anyone has any suggestions for avoiding

[Proto-Scripty] event.element vs. $('element_id')

2009-03-26 Thread Dave L
Im wondering, what is the difference between the following: $('object_id').observe('click', function(event){ element = event.element() } VERSUS $('object_id').observe('click', function(event){ element = $('object_id) } Is there a difference in speed? Is one better than the other in

[Proto-Scripty] Problem with this binding in class function

2009-05-19 Thread Dave L
I am trying to use pre-existing functions in a new prototype class but am having some trouble with binding. When I call a function within a function it says that one of my class variables is undefined. I have defined the class variable correctly I think: var DropDown = Class.create({

[Proto-Scripty] replace_html with javascript or rjs after ajax call

2009-10-13 Thread Dave L
I'm not sure what is best practice in this situation. I have a quiz add icon that, when clicked, adds an element to a quiz list. Right now it is using a link_to_remote with an image_tag (in ruby rails) and when clicked it hits the server, saves the quiz add/remove toggle and then uses rjs to

[Proto-Scripty] When Ajax Insert Expands Page Downward...

2009-12-07 Thread Dave L
I am having an issue: when inserting a number of elements that end up push the page downward so that the scroll bar has to be adjusted, all of the css shifts to the left. I am using firefox 3.0 and have noticed this occurance before. Has anyone else come across this or know what might be

[Proto-Scripty] Re: When Ajax Insert Expands Page Downward...

2009-12-14 Thread Dave L
-- Sent from my Palm Prē Dave L wrote: I am having an issue:  when inserting a number of elements that end up push the page downward so that the scroll bar has to be adjusted, all of the css shifts to the left.  I am using firefox 3.0 and have noticed this occurance before.  Has anyone else