Displaying 20 results from an estimated 5000 matches similar to: "link_to_remote() can do something like Yahoo! UI "argument"?"
2005 May 16
0
Form of \item{arg_i}{Description of arg_i.} in \arguments
Hello!
This really isn't so important, but it comes often in my mind, when
I write documentation for functions. Writing R Extensions manual says
that one should describe each element of the argument list (which is
afcourse OK) in a form:
\item{arg_i}{Description of arg_i.}
When I started with R it really helped me that some "man pages" used
\item{arg_i}{Mode. Description of
2008 Feb 11
1
Rich Text Editor and link_to_remote
Hi
How can I get link_to_remote to call a new page and respect the
javascript within that page.
I do have an edit page for datarecords, that have a textarea which is
enhanced with the YUI Rich Text Editor. If I call that edit page
through link_to_remote, the editor isn''t displayed. If i call it
without the AJAX, it works fine.
What can I do?
2006 Jul 03
1
help getting plugin to work
Hi,
I want to create a plugin that allows easy use of the Yahoo! UI
library similar to the prototype.js and scriptaculous helpers that
come packaged with rails.
just one line in plugins/yui/init.rb
require ''yui_helper''
a little more in plugins/yui/lib/yui_helper.rb
module ActionView
module Helpers
module YuiHelper
def yui_form_remote_tag(options = {})
link_to_remote, how to send "data" to another <div> when something system detects something wrong???
2006 Jul 10
0
link_to_remote, how to send "data" to another <div> when something system detects something wrong???
HI,
I try use link_to_remote to do a ajax update on my
page,
when eveything is OK, the syetem returns data to the
ajax zone, but when there is something wrong, like the
entry wasn''t correct, I want to send data(a message)
to another zone (the zone is defined in the layout
(message zone used flash[:notice]) I was never able
send data to the other zone, because it is on the
layout, and I
2006 Jun 15
10
RE: Yahoo!-like Event object emulation/abstractioninPrototype?
If that doesn''t work, then you''ve done something wrong somewhere.
''Cause it works for IE for me and everyone else.
The only advantage I see with the YUI toolkit is that it''ll defer
attaching events to elements that do not yet exist in the DOM. Big
whoop, only a sloppy programmer would try to attach an event to a
non-existant element. With Prototype, you can
2011 Jul 05
1
Circumventing code/documentation mismatches ('R CMD check')
Hello,
As prompted by B. Ripley (see below), I am transfering this over from R-User
...
For a package I am writing a function that looks like
test <- function(Argument1=NA){
# Prerequisite testing
if(!(is.na(Argument1))){
if(!(is.character(Argument1))){
stop("Wrong class.")
}
}
# Function Body
cat("Hello World\n")
}
Documentation of this is straight forward:
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 =>
2006 Jun 07
2
How to send post data with link_to_remote?
Hi,
I''m trying to send a post body with my link_to_remote call.
Prototype supports the ''postBody'' option, but I can''t seem to get
link_to_remote to set that.
Here''s what I''m trying:
link_to_remote ''move up'',
:url => { :controller => ''upload'', :action => ''position_ajax'', :id
2006 Feb 17
4
link_to_remote doubles border size
I have a div with a border around it. I use link_to_remote to change the
content, and the border size doubles. Example:
<div id="test" style="border:solid; border-width:5px">
<%= link_to_remote("Test", :update => "test", :url => { :controller =>
"tester", :action => "test" }) %>
</div>
Even stranger, if I
2006 Aug 03
0
link_to_remote() question from a newbie.
Hello,
I am trying to utilize link_to_remote() in the following manner:
<%= link_to_remote(exchange.name,
:update => ''mydiv'',
:url => { :controller => ''attributes'',
:action => :list_user_attributes,
:class_id => class.id,
:user_id => user.id
} ) %>
And
2006 Aug 17
2
link_to_remote question
I''m using link_to_remote to call a method that deletes an item
<%= link_to_remote " [delete]", :url => { :controller => ''user_admin'',
:action => ''employee_type_delete'',
:id => employee_type.id
}
2006 May 11
1
Yahoo Container Library
Just a note that Yahoo came out with some more widgets Check out
http://com1.devnet.scd.yahoo.com/yui/container/index.html.
Maybe we can adopt some of their ideas.
* I like the Module library and its subclasses
* you can do unobtrusive html and use this when you instantiate the
javascript objects
dom
_______________________________________________
Rails-spinoffs mailing list
2006 Jan 14
3
link_to_remote where the url contain a javascript variable
Ok, so I am basically trying to use ''link_to_remote'' and pass the value
of a javascript variable as an argument. Something like that:
link_to_remote "my_link",
:update => ''my_div'',
:url => { :action => "my_action", :var =>
''my_var'' }
Basically,
2010 Jul 13
1
will_paginate destroys link_to_remote?!
Hello,
I''ve got a list in a view and each of element of it has a link_to_remote
and everything worked like a charm. Now I added AJAX pagination and the
link_to_remote doesn''t work anymore.
This is the partial of the list:
<% for character in characters %>
<%= character.name %>
<%= link_to_remote t(''.add''), :url =>
2009 Jul 11
6
conditional link_to_remote not re-rendering
I have an int, ''floorfrozen,'' in my table, ''channels'' that can take a
value of 0 or 1.
When I render a page, an image in a link_to_remote is called
differently depending what the value of channel.floorfrozen is, in a
partial, as follows:
<% if @channel.floorfrozen %>
<%= link_to_remote image_tag("/images/icecube.gif"), {:url =>
2006 Jun 01
1
link_to_remote renders Ajax.Updater, sometimes Ajax.Request
I''m new to Rails, but am really enjoying working with it.
But i just hit a brick wall...
I have two link_to_remote tags in two seperate _whatever.rhtml files.
The targets of the updates are in edit.rhtml which does a render
:partial to include the links. here''s some code:
<%= link_to_remote ''Destroy'',
:update => "libtable",
2007 May 10
2
link_to_remote fix, should this be added to edge rails?
After looking at the link_to_remote tag for the first time, I found it
broke when javascript was disabled.
Below is one possible solution I found and would like to suggest that
this idea is promoted into rails.
#
# provide fix for link_to_remote tag when javascript is not enabled
def link_to_remote_fix(text, options)
link_to_remote text, options, :href => url_for(
2006 Mar 13
2
How to apply an effect to a link_to_remote :update without using evaluate_remote_response?
Hey all,
I''ve been trying to apply a slide-down (or highlight) effect to a "New
card" link on my application. Because the item is *new* and I''m simply
updating it at the top, I can''t know what the div id is before I make
the request. link_to_remote :complete => visual_effect(:slidedown)
doesn''t do what I want it to do. My current solution is:
2006 Jun 30
1
getting form values using link_to_remote
I have this as part of an .rhtml page:
<%= javascript_include_tag "prototype" %>
<%= form_tag :controller => ''reallist'', :action => ''addnewuser''%>
email:<br />
<%= text_field_tag :email, nil, :size => ''14'' %><br />
<div id=''nameStatus''>
</div>
<%=
2006 May 23
0
html "class" attribute for "link_to_remote"
Hi,
now this should be easy, but for some reason I was not able to generate
a link with a "class" attribute using "link_to_remote".
I tried several different ways, including the one that worked for
"link_to", but so far no luck.
I have to admit that I am not 100% sure how to read the rDoc
documentation. If it says:
link_to_remote(name, options = {},