similar to: Visited Link Style and link_to_remote

Displaying 20 results from an estimated 10000 matches similar to: "Visited Link Style and link_to_remote"

2006 Jan 11
0
RE: Event.observer - unordered list problems
Hi Marco (I forwarded this also to the mailing list and removed the picture as it wasn''t necessary to include to the mailing list so everyone can hear the general techniques), I recently had a very similar problem with my project. The problem arises because whenever you move the mouse to ANY element, the previous element that the mouse was over gets a mouseout event, even if it
2006 Jan 11
0
RE: RE: Event.observer - unordered list problems
I just realized I made a mistake... in the first numbered solution, the != should be == ________________________________ From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ryan Gahl Sent: Wednesday, January 11, 2006 2:28 PM To:
2008 May 24
1
link_to_remote, image_tag, mouseover is this possible?
Hi guys, I was wondering if you are able to have a link_to_remote, having an image_tag and the link_to_remote has a mouseover event that updates a div. Does the image_tag need the mouseover event? I currently have: <%= link_to_remote(image_tag(@p_image.public_filename(:thumb)), :update => "big_pic", :onmouseover => {:action => :color_change, :id => @p_image.id})%>
2006 Mar 04
1
RE: Question about event listener highlighting withchild elements
1. Create a separate class that has your highlight/unhighlight behavior in it, and extend just the element you want to highlight with that class... like this (also allows you to easily apply this behavior elsewhere when you need it in the future): Object.extend(this.el, HighlightBehaviorClass.prototype) 2. When defining your event handlers, assign them to variables so you have a
2006 Mar 04
0
Question about event listener highlighting with child elements
I have created a JavaScript object which is initialized for some input fields, fieldsets, and divs on the page. With each object i attach a mouseover and mouseout event that highlights and un-highlights. Also on mouseout i am trying to display the id of the object to a console. The highlighting works except for cases when an object is the child of another object. In this case both are highlighted
2005 Aug 31
0
Event listener problems
I''ve been using the bindAsEventListener function and registering various events I want to monitor and have had some problems which might be of interest. First I have been having a crash on Safari 2.0 and 2.0.1. The logical place to call Event.stopObserving to de-register the listener is actually within the listener once it has finished its task. eg register a mouseup listener
2006 May 12
1
the "#" in code generated by "link_to_remote"
Currently, helper "link_to_remote" generates html code like ''<a href="#"....'' "#" is used for the link of "next" page. So there comes a problem. "#" stands of the the starting point of current page. which means, if the ajax link is at the bottom part of the page, where scroll bar needs to be moved to see it, when the ajax
2008 Apr 16
3
non-bubbling mouseover/mouseout
First, I have only played with Prototype for about a month, so I don''t know it well. Second, I am more of a server-side programmer than a client-side programmer. In my page, I have a div that appears as a result of a link mouseover event. This div is nested within another div that houses everything (id = ''menuContainer''). I want the resulting div (which is a submenu)
2007 Mar 09
0
link_to_remote with onmouseover event
Anyone have a better method for having the onmouseover event (or any other mouse event) instead of onclick when using link_to_remote: This is what I did, but I''d i have to create one for every mouse event, can''t figure out how to call a mouse event via an argument . anyone else run into this problem. Thanks def link_to_remote_mover(name, options = {}, html_options
2005 Dec 08
6
Bug in Effect.Highlight ?
Hi All, I''ve just discover scriptaculous and it is a really good library. Even if I have some difficulties with short syntax in javascript code :/ I have a strange behaviour with Effect.Highlight, and as it''s said on bug report page : "It''s also a good idea to discuss this on the Mailing List beforehand, maybe it''s already known and in the works, or it
2006 Feb 03
2
Scriptaculous: Newbie question - Effect.fade
Hi there, Is it possible to do an effect.fade without removing the hidden document from the flow when in becomes invisible? I have a line of images (initially all invisible) [] [] [] [] [] And a list of links - link 1 - link 2 - link 3 - link 4 - link 5 And what I want to happen is to have the images appear on link mouseover and disappear on mouseout but for the images to maintain their
2007 Nov 20
4
link_to_remote style
I am trying to use link_to_remote to update a div tag with some content. This part works fine. The thing I am having an issue with is that I am trying to format this link with a ''class'' tag and it is being ignored. Can anyone shed some light on this? I have tried brackets in different places with different options and tried other variations with no luck. I am guessing my
2006 Jan 18
2
Event.stopObserving and anonymous functions
Hi all, I'm using behaviour(.js) to add event handlers to all the table cells in a table (mouseover, mouseout, clickk). However, I'm also ditching the table and replacing it with an Ajax.Updater so I want to remove all the observers before I lose them. Unfortunately, the Event.observe calls were written as inline anonymous functions so, when calling Event.stopObserving, I'm supposed
2007 Sep 26
1
Is there a Rails helper similar to link_to_remote but for a form check box instead of a link?
I''m working on a couple of user input forms -- one data entry, one search -- where I''d like to start off by displaying only top-level categories. Then, if a user checked one of the top-level categories, all the child categories would show for that top-level one. (Displaying all the child categories for every parent would be a bit overwhelming, it''s a large list.) I can
2006 Feb 07
0
Link_to_remote with dynamic textbox
I''m trying to build a custom spell-checker. When an incorrect word is found, a select list is populated with suggestions, and when a suggestion is clicked, a "replacement_text" textbox is populated with the value. I''d like to be able to use a link_to_remote item to update the item. However, I can''t figure out how to pass the parameter to my
2006 Jun 27
0
dropdown menu based on unordered list
Hello, I have an unordered list with 1 or two sub-lists - I like to convert it to a drop down list using prototype/scriptaculous. Does anybody have an example or some code to share - I''m specifically interested in the event observers (clicks, mouseover and mouseout events). Thank you in advance for your input. _______________________________________________
2006 Jan 18
0
Behaviour & Effect.Highlight?
I''m having a problem with Effect.Highlight and a simple Behaviour rule. In brief, I have a Sortable list. Using Behaviour, I add a hover effect (apply a style on mouseover, remove style on mouseout). The styles contain a border color and background color. var myrules = { ''.sortable li'' : function(element){ element.onmouseover = function(){
2006 Apr 26
8
Newbie: Hide div I''ve just show using link_to_remote?
I''m using link_to_remote to show details for an item that''s clicked. I''d like to hide the div with the next click, or alternatively have a "Hide" link within my div. What is the best way to accomplish this? Here''s my existing code: <% for task in @mytasks %> <div class="rowFormat"> <%= link_to_remote(
2006 Jul 21
10
Using an image button for "link_to_remote"
All, I want to do an AJAX request using a custom image button. I currently have this as a standard button action using "button_to". What I need is the button equivalent of "link_to_remote". Is there a helper that I can use, or do I need to build it by hand? I see button_to_function(), but that sets me up to call a Javascript function, not post to a Rails action. Or can
2008 Jul 23
0
Link_to_remote object missing
Hello, I''m in troubles trying to use ''link_to_remote'' on Rails 2.1. Having this page: <h4>Editing project</h4> <% form_for(:project, :url => project_path(@project), :html => { :method => :put }) do |f| %> <p> Name <%= f.text_field :name %> Date <%= calendar_date_select :project, :target_date, :time =>