Displaying 20 results from an estimated 1300 matches similar to: "Beauty in Page Layout"
2005 Dec 31
9
RJS Templates not conducting callbacks
I''ve run across a weird problem with RJS that I''m trying to figure out:
I have an application that was running 0.13.1 that I recently upgraded
to Rails 1.0. I wanted to use RJS templates, so I installed the plugin
and updated my prototype javascript file via ''rake update_prototype.''
I attempted to test the templates out via the following code, but the
AJAX
2010 Nov 16
3
Can't do a nested define. What are my options?
I''m trying to create a directory structure from 2 arrays. First array
is the "outter", second is the "inner". For each "outter", I''d like to
loop through each "inner".
Below is sort of what I''m trying to do. In the real world, the
$sys_name and $mounts vars will be parsed from yaml and will be
dynamic. In the example I''ve
2006 Feb 28
7
multi-page printing moving on
I have some nice forms done using stylesheets. I currently have them
displaying on screen and the user could simply just print.
This works when there is only one form (facility) to be viewed/printed.
I have created the looping code necessary to print for all facilities
but that doesn''t work for me because each page uses stylesheets with
<div> that do absolute positioning and thus
2006 Jan 24
2
DOCTYPE declaration:
I am playing around with the Agile Rails development book again and
thought to see what effect, if any, placing a doctype declaration
at the top of an rhtml file would have. When I insert any of the
three standard forms of such declaration at the top of
app/views/store.rhtml the product image disappears when the web
page is redisplayed. The error logged in log/development.log is:
>
2006 Jun 09
1
Change stylesheets asynchronously
I have my default "scaffold.css" that loads when the page loads, however
I would like to be able to dynamically change the CSS sheet by clicking
a link. I tried wrapping the stylesheet like below:
<head>
<div id="css-theme">
<link rel="stylesheet" href="/stylesheets/scaffold.css"
type="text/css" media="screen"
2006 Jun 19
13
PNG and Alpha-Transparency
Is there a prototype / extension which will assist in cross-browser support
of PNG images?
http://www.alistapart.com/articles/pngopacity/
It seems to me that a class could be developed which would zip through the
DOM and make changes where needed for IE 5.5 / IE 6.0 to handle PNG images.
I don''t want to write one if it''s been done before.
Sam
2007 Jan 11
1
Nice UI Tabs - based on a click
Hi:
I have a piece of UI, basically tabs. The number of tabs will be
variable. the tab itself will contain fields that will change
depending on the tab (pretty standard). The UI could be Ajax-like, or
just nice scriptaculous, or whatever works. Can someone point me in
the right direction? Also, I''m a newbie, so simple is better, although
of course I''m willing to figure
2007 Feb 27
14
Stop browser from "form filling" fields.
Hi all,
I have a user login form which the browser keeps populating because of
its form fill feature. So when anyone goes to log in it shows the
previous login''s username and password. How can I stop the browser
from populating a text field?
Thanks in advance.
Cheers,
Diego
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to
2006 Jul 26
3
adding class or id tags to tags like linkto and form
I''m trying to figure out things like this by myself so I don''t bother my
developer and slow him down. How do I add class or id css attributes to
tags like this:
<%= form_remote_tag :url => { :action => "send_url" } %>
<%= link_to_remote "My Profile URL", :url => { :action =>
"send_profile_url", :id => @user.id } %>
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 =>
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 09
5
link_to_remote id or class
Can anyone out there tell me how to add a class or id property to a
link using link_to_remote? I''ve been banging my head on this for far
too long.
Thanks
Clint
2006 Mar 01
4
link_to_remote, doesn''t receives params?????
Hi,
I''m using link_to_remote to trigger an ajax zone, but
depends on a varaible, the new zone has different
features. before I has a button inside a form. so when
I click on the button, I get the value of the variable
inside "params". but since I use link_to_remote now, I
don''t get any value from params anymore.... Is there
some way I can get the data inside a form
2006 Jun 28
2
Assign CSS class to Link to Remote
I''m trying to get link_to_remote to assign a CSS class to the link it
generates. My code is as follows:
<%=
link_to_remote "Show Full Info",
:update => "fullcontact" + reparray.last.to_s,
:url => "/cm/full_contact/" + reparray.last.to_s,
:classname => "contactlink"
%>
Which produces this HTML:
<a href="#"
2008 Oct 03
7
form_remote_tag and :with
I am trying to pass the result from a javascript function along with
the result from a text_field with form_remote_tag. This is what I
have so far, but no go:
<% form_remote_tag(:url => {:controller => ''requests'', :action =>
''create''}, :with => "''data=''+request()", :update => ''request_sent'' )
2007 Dec 24
5
output link_remote_to in helper
Hi all,
I have a complex link_remote_to link I need to generate often. I want
to DRY up my view and create a helper that generates this
link_remote_to for me.
Is there a way my helper can output the link_remote_to javascript?
Thanks
STijn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Apr 02
1
Greetings, first remarks about trying to do customizable drop-shadows
Hello there everybody!
Terrific... a mailing-list for compiz with David on board! Ok, I
started off with writing some functions using cairo to draw me the
needed elements for drop-shadows (atm stand-alone to focus on the proper
generation of the shadow-parts) and currently still fiddle with the
tweakable parameters. Right now I have...
shadow-radius (e.g. 20 pixels)
2D-offset vector (e.g. 10
2006 Mar 18
2
Additional link tag attributes with link_to_function...
Hi,
I''m having a bit of a struggle with link_to_remote. Everything works
exactly as I want it, but the problem is that I want to add another
attribute to the <a>-tag, namely class="". Long story short, I want
specific links to look differently from others, but all of them being
link_to_function. Normally, I''d do this with adding a class="foo" to
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 Apr 16
11
RJS templates not found
I am running Rails 1.10 and wanted to check out the RJS templates.
Rails doesn''t seem to find them.
I did issue the rake comment update_javascripts and that did not correct
the problem. RJS is part of 1.1 right?
Any ideas?
Thanks.
--
Posted via http://www.ruby-forum.com/.