similar to: using components

Displaying 20 results from an estimated 6000 matches similar to: "using components"

2006 Mar 14
0
problem with components
Hi I''m trying make a sidebar, and the view of the sidebar are components, ala Typo but with a variant. I made a Distributors components that render a select width a list of states(province in my country) and onchange of the select I fire a search of the distributors for that state. The things is I want use the find method in the component but I can''t from an url. can this be
2006 Oct 28
2
onchange="document.forms[0].submit()" - how to CANCEL
Goal: I want to auto-send a form whenever any field changes. The page will be updated "via Ajax", so standard submission is cancelled. Idea: Add onchange="document.forms[0].submit();" to every field Problem: Can not cancel form submission. Browser redirects to "results" page, which is of course JavaScript meant to dynamically update the page. RHTML snippet:
2006 Feb 19
2
instance variables in components not read by component view?
Hi, I''m trying to write a sidebar menu with dynamic menus, and to do so I would like to define a list of menus to display within my sidebar component controller code and pass that list to the component display view, like so: # menu_controller.rb class Sidebar::MenuController < ActionController::Base uses_component_template_root @menus = %w{admin user help} def display
2006 Mar 08
1
Components calling components...
Hi, I''m relatively new to ruby and rails. I would like to have a sidebar component call one of several other constituent components. I''ve run into some problems, and so I''ve pruned things back to a relatively simple case. I have a sidebar component. Renders great. In it''s layout, I call render_component for another component I would like in the sidebar.
2006 Aug 16
1
how to update a collection_select from another
I have two collection_select in my list.rhtml: <%= collection_select (:region, :id, @regionall, :id, :title,html_options={:onChange => "new Ajax.Updater(''related_provinces'',''/categories/related_provinces/" + "?id=''+this[this.selectedIndex].value, {asynchronous:true, evalScripts:true});"}) %><br> <%= render :partial =>
2006 Jan 14
0
testing template components
Hi, I''m plowing through the template section of "Agile Rails", specifically the stuff starting on P. 364. What is a good strategy for testing components? My initial thought is to mimic the Rails application "test" directory. No problem. Next copy the setup method, and set it up like so - class SidebarControllerTest < Test::Unit::TestCase def setup
2005 Jun 10
1
Submitting an ajax form via a select
I''m trying to submit an ajax form via an onchange method in a select menu, but I can''t seem to do it. The problem holding me up, is that I can''t figure out how to set the ID of the form when using a form_remote_tag (I need to use the ID of the form as the forms on the page are variable, so I can''t reference it in the form array). Setting :id =>
2005 Aug 22
1
Hello & Help
Hello, my name is Hern?n. I write this mail to you because of some failures I'm seeing with the implementation of rsync. I'm trying to implement a solution based on rsync on a Tru64 based server, so I downloaded the source and compiled it on this server. When I try to rsync one file, it works great, clear and quickly. But when trying to rsync a long list of little files, it fails. The
2006 Apr 04
13
Myowndb: a web database built with rails
Hi all, I wanted to announce on this list that I have launched http://myowndb.com which is a web database built with Ruby on Rails. The application lets the administrator users define the data structure through a web interface like in a normal database, with: - tables - enhanced datatypes like emaili, web URL, and a choice in list - relations (one to many, one to one) between tables Once the
2008 Aug 27
3
Calculating total observations based on combinations of variable values
Hello: As someone making the move from STATA to R, I'm finding it difficult at times to perform basic tasks in R, so forgive me if I've missed an obvious and easily obtained solution to my problem. I've searched the help guides and the archives and have not been able to find a solution that works. I have a data frame with thousands of observations that looks something like this:
2002 Jul 24
1
Unable to join W2K Active Directory Domain
Hello all ... I'm trying to join a W2K domain and I'm getting the following error message: sun220:root# smbpasswd -j hern cli_net_req_chal: Error NT_STATUS_INVALID_COMPUTER_NAME cli_nt_setup_creds: request challenge failed modify_trust_password: unable to setup the PDC credentials to machine xxx.xxx.xxx.xxx(IP ommitted). Error was : NT_STATUS_UNSUCCESSFUL. 2002/07/24 09:44:18 :
2012 Jan 13
1
Change state names to abbreviations in an irregular list of names, abbreviations, null values, and foreign provinces
I'm trying to create maps of reptile abundance in different states & counties using data from Herp.net, which provides lists of specimens with the places that they were found. First I would like to parse the list by state using 2-letter abbreviations, since I'm focusing on certain regions. To do this, I've been trying to create a vector (state2) that gives all state names as
2006 Sep 12
1
samba/PAM/winbind/ssh
I have the winbind login working on FC5 but now logins to local accounts cannot authenticate. My config files are here: http://www.pigeonnier.org/nsswitch.conf http://www.pigeonnier.org/pam.d/ http://www.pigeonnier.org/krb.conf Again, if I try to ssh in as a user that exists only as a local account on the remote host, I am rejected. User msh is -not- a AD account and only exists on the FC5
2011 Apr 14
0
Automatic splitting/combining nested categorical variable in glm
I have a categorical variable with a nested structure. For example, region: a country is split into parts, which in turn contain provinces, which contain municipalities: Part -> Province -> Municipality North Province A Municipality 1 Municipality 2 Municipality 3 ... Province B Municipality 1 ... ... West Province A ...
2009 Jan 03
2
Some questions from a new webgen user
Hi everyone. Sorry if it is not the place to post questions about webgen. I use webgen5, i know it is not the stable version but i couldn''t understand how webgen4 worked, it''s easier with webgen5, and i won''t have to change my pages when it becomes mainstream ;) I try to build my homepage using webgen, and there are some things i don''t know how to do (i am sure
2005 Sep 09
2
shapefiles manipulations ??
cheers , I need help in shapefile manipulations. I have two shapefiles of my country Cameroon. The first contain 10 provinces and each province contains a certain number of administratives units. I dont have ESRI Arc view. I want to add a admistrative unit of the center province to the map with 10 province. Is it possible to to take a peace of shapefile and combining it to another ? Thanks !
2006 Jul 27
1
Routes not working when submitting a form
Hi, I have the following code, a very basic textfield with a submit button: <%= form_tag({:controller => "job", :action => "index"}, :method => ''get'') %> <%= text_field_tag ''province'', @province %> <%= submit_tag "search" %> <%= end_form_tag %> In my routes.rb file I have: map.connect
2006 Mar 28
1
Simple Sidebar Solutions: How does yours work?
I''m working on a simple photo gallery app for personal use and I want to generalize the sidebar such that in any page (controller or view, I''m not sure which) I can dynamically add either 1. links to a given sidebar 2. or an entire sidebar. I know that typo does this, and I''ve looked the code. I think it''s too complex a solution for my simple site.
2007 Nov 07
5
Unexplainable failure...at least for me
I have an address model with country_id and province_id fields There is also a full_address method that returns an address that is in a format that the google maps api will be able to return a long-lat coords. Within the full_address method there is a call to obtain the province/state and country name. --------- def full_address ... full_address = [city, self.province.name,
2006 Feb 18
0
slider component inside a table not working
Hello, I''m trying to use the slider inside a table and am having problems. I''m wondering if anybody can help or, if it just isn''t possible for some reason. The following 2 entries are the exact same code (1 inside <div></div> and 1 inside <table><tr><td></td></tr></table>). The div one works fine but the table one