Displaying 20 results from an estimated 4000 matches similar to: "make a <tr>clickable"
2006 Jan 23
4
an image that is a clickable link?
Hi,
How do I make an image that is a clickable link the rails way? Is
there a view helper for this?
Thanks,
Peter
2012 Jan 01
2
Calling a function inside of (function($) {})(jQuery);
I have a .js file with the following function
function set_priceKind_global(priceKind)
{
switch(priceKind)
{
case "paid":
case "free":
break;
default:
var throw_msg = "Internal confusion in set_priceKind_global"
alert(throw_msg)
throw throw_msg
}
It is triggered by
%input{''type'' => ''button'',
2009 Apr 24
2
passing a value to a js function via button_to_function
I''ve got a table of what I call resources, want to show in a jQuery
dialog a particular record when user clicks button in a row.
in the table I''m doing:
<td><%=button_to_function ''Show'',''showresource1()'',:class =>"ui-button
ui-state-default ui-corner-all", :id => resource.id %></td>
js:
<script
2005 Mar 04
2
how to draw graphs within clickable hyperlink
Hi all
I want to draw a graph containing points and edges. Package graphics
could do this. However I want to make each those points and edges
clickable with a hyperlink on them.
Anybody know how to do this?
Thanks very much.
2007 Mar 19
3
jQuery Users...
Any jQuery users out there? I would like to learn more about
incorporating jQuery with Rails as the performance seems to be the
best of any library I''ve seen and it is great in separating the
JScript from the HTML. Any suggestions on where to get started? I''ve
read this (http://b.lesseverything.com/2006/12/31/making-jquery-and-
prototype-play-nice-in-rails) but was looking into
2013 Jan 23
2
Problem with Bootstrap-SASS
I''ve installed bootstrap-sass, and added an @import line in my css. Rails
won''t find or serve up the bootstrap files. One error msg on the Mozilla
console says:
The stylesheet http://localhost:3000/assets/bootstrap was not loaded
because its MIME type, "application/javascript", is not "text/css".
Hmm. If I change the @import to say
2008 Dec 19
14
Can duplicate "back" browser function in Rails?
In Rails I have a DB Table index.html.erb view. It has 100''s of items.
When I gen via scaffold I get index, show, edit, update, etc view.
But when I page down several pages, use the "show" link and then the
"back" link I do not go back to where I was on the index view.
Instead, I go back to the TOP of the index not the place where I clicked
on the "show"
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
2010 Feb 22
10
Error: "ActionController::InvalidAuthenticityToken"
Hi there,
I have my first Rails app running and I regularly get the following
"logged_exception" error message:
"ActionController::InvalidAuthenticityToken"
Has anybody an idea what might cause this problem? Could it somehow be a
"time out" error (like an "AuthenticityToken" which might expire after a
certain time, or something along those lines)?
Any
2010 Jun 21
4
javascript tabs not working in rails app
This is in application.html.erb:
<script type="text/javascript"
src="../javascripts/application.js"></script>
<script type="text/javascript"
src="../javascripts/jquery-1.4.2.js"></script>
<div id="content">
<%= yield :tabContent %>
</div>
2009 Feb 22
8
dynamically changing a form from POST/CREATE to PUT/UPDATE
For the life of me I can''t figure this one out, although I can''t find
anyone else who''s attempted to do this, and probably with good reason.
Context: blog using AJAX
What I''m trying to do: when the user initially saves a blog entry, or
when auto-saving, I want subsequent saves to not create a new blog
entry
Why I can''t just reload the partial:
-
2006 Mar 14
15
in_place_editor_field -- values not clickable
Hallo -- I''ve just installed the latest stable version of rails, and am
following the rails recipies book''s first recipie -- using
in_place_editor_field.
My problem is that the code throws no error, but the resulting fields
are not editable -- the values just come up as text, rather than
clickable-then-editable fields.
Can anyone help shed any light on why this might be the
2011 Dec 17
7
How to fire Ajax call from Form_for
I am learning Rails 3 and need some help on Ajax part.
I am trying to accomplish the following:
There is a textarea on the page which has a length of letters
constraint, say 100. Every time a symbol is typed there,a nearby label
tells you how many letters you have left.
I plan to use Ajax to do this.
I googled for a few hours and could not figure out how to do this.
So far what I have done is
2006 May 12
4
POST vs GET
I read in the Agile Rails book that I should avoid GETs for
destructive actions. I notice that on 37signals'' Backpack web site,
deleting an item in a list is accomplished with a simple click on a
picture of a trash can. Is this a violation of the POST/GET rule
noted above, or is there some way to make a clickable link send a
POST?
Ben
2011 Oct 21
20
How to transform my html form into a rails 3 form
Hi,
I have the following code working in a rails 3 view, but it is
unfortunately not pure rails code!
<% @filter1 = "tr.show1,tr.show2" %>
<% @filter2 = "tr.show1" %>
<% @filter3 = "tr.show2" %>
<form>
<p>
<input type="checkbox" value=<%=@filter1%> onclick="$
(this).is('':checked'')
2008 Jun 12
11
auto_complete with multiple params
I''m using the auto_complete plugin, and it works great, my problem is i
need to pass multiple parameters to the controller other that what is
typed in the text field.
<%= text_field_with_auto_complete :search, :contains, :size => 15,
:frequency => 0.1, :skip_style => true -%>
This is what i have as of now, but i also need to pass ":language =>
@default"
2009 Aug 07
2
calling a jQuery function from RJS/onclick
Hi,
I have the following jQuery function on the head of my page.
<script type="text/javascript">
jQuery.noConflict();
/* calling jNice on document ready */
jQuery(document).ready(function($)
{
$(''div.jNice'').jNice();
});
.....
</script>
On page load, this gets called correctly.
Now there''s a link on the page that lets me add more
2013 Feb 22
7
Newbie Question
What are some Great resources to get into Rails?
Keep in mind this is for someone that has little to no programming
experience.
So starting from scratch...
A little background is that I want to create a program for personal use
that uses Databases to store lots of information. They wopuld draw from
each other and work to help in large scale event planning and management.
Any help is
2006 Jan 16
11
Preventing bubble
I''m trying to prevent double ajax requests when I have nested onclick
handlers.
I have a table with clickable column headings (for sorting by that
column).
I have onclick handlers on both the <th> and the <a> link so that
clicking anywhere on the table heading should work.
<th onclick="window.location.href=''http://foo?sort=foo'';">
2008 Dec 28
7
2.2.2 simple_captcha upgrade error
So thanks to Craig, i got up and running on rails 2.2.2, though now i''m
dealing with a whole new can of worms. I''ve done a good bit o searching
and haven''t found any solid leads. I''m using the simple_captcha plugin
on my site, and all is well until i call that plugin.
http://www.pastie.org/347721
ActionView::TemplateError (undefined method