[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 cha

[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 causing

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

2009-12-14 Thread Dave L
roll bars > > -- 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 ha

[Proto-Scripty] DOM popup in IE

2008-11-22 Thread Dave L
I have been struggling to get the DOM popup kit, which uses prototype, to display popups and modal dialog boxes in Internet Explorer for a while now(it is working great in Firefox). Right now, the popup will only display above css elements that have no position value and only if the popup positio

[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. T

[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 false

[Proto-Scripty] Re: Submit a form using enter

2008-12-10 Thread Dave L
Im not sure I understand. login_form is the id of the form that I am trying to submit. and form_submit is the id of the actual submit button. I tried the following: document.form.login_form.onkeydown="if(event.keyCode==13) {this.form.submit();return false;};" and also $('login_form').form_sub

[Proto-Scripty] Re: Submit a form using enter

2008-12-11 Thread Dave L
exact same thing > by yourself? > > Gabriel Gilini > > www.usosim.com.br > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > On Wed, Dec 10, 2008 at 3:43 AM, Dave L <[EMAIL PROTECTED]> wrote: > > > I am having trouble writing a function that will allow users to submit >

[Proto-Scripty] Re: Submit a form using enter

2008-12-11 Thread Dave L
t all: <% form_remote_for :new_user, :url => {:controller => 'account', :action => 'authenticate'}, :html => {:id => 'login_form'} do |f| -%> <%= image_submit_tag "buttons/login.png", :id => 'form_submit' %> <%

[Proto-Scripty] Re: Submit a form using enter

2008-12-11 Thread Dave L
t; > On Thu, Dec 11, 2008 at 3:36 AM, Dave L wrote: > > > I tried all the above solutions but none seem to work.  This is in a > > modal popup, so its almost as if the javascript is not finding the > > form element or something.  Im using ruby on rails, so I defined the

[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 beca

[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: Open Div function showSelect() {

[Proto-Scripty] Re: Close Div when click outside

2009-01-21 Thread Dave L
Wow, this looks promising. I will take a look, thanks for helping me out. On Jan 21, 7:56 am, freshteapot wrote: > Hi Dave  L, > > copy and paste below the line, you might need to make adjustments for > google groups wrapping the posts. > > Otherwise download

[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 these

[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 an

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

2009-03-26 Thread Dave L
> the document. > > As for speed, I would imagine that event.element() is faster than > $('object_id') because even.element() is just accessing a property, instead > of searching the dom for a node. But I could be wrong on this :) > > -Hector > > On Thu, Mar 26, 200

[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({ init