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
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
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
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
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
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
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
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
>
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'
%>
<%
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
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
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() {
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
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
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
> 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
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
17 matches
Mail list logo