Displaying 20 results from an estimated 200 matches similar to: "Dynamic url with javascript? - Help Please"
2006 Apr 09
12
Help With Dependent Drop-Down and @Params
Hello All:
I am trying to create a select box that is filled with options based on
the user''s selection in a related drop-down. I have had success with
this before using the examples provided by the following two sources:
One posted by Rory at Rory on Rails - http://www.roryhansen.ca/?p=9
the other posted by Adam at
2006 Nov 18
3
New Rails site: Smatchy.com
A newly released site developed entirely in Rails, known as Smatchy
(www.smatchy.com), presents an interesting
take on recommendations and could become the standard rather than the
exception. The recommendations were more useful than typical sites,
especially the ''Unique Recs.''
More info here...
2006 Jan 06
3
Countries -> Cities Select box
I am trying to play with a Countries -> Cities dynamically updating select
box.that is if someone selects a country then all the cities of that
country must be listed.Does anyone know of any data source for this?
I searched for it but couldnt find any good usable source.
Better still is there a module which I can mixin for this?
Thanks
Vivek
-------------- next part --------------
An HTML
2006 Nov 17
1
SQLite3 put a parse error in my schema.rb for timestamps
Railsers:
I switched from MySQL to Sqlite3 for Test-Driven Development. It meant
the difference between
(Long term, I want to understand the db:migrate system well enough
that I can run a long test, occassionally, that migrates everything to
MySQL and retests it there. That will prevent nasty surprises at
deployment time. But that''s not the current question!)
Because I don''t
2006 Jan 10
1
[AJAX] related drop-down list question
Hi all,
I followed the example on: http://www.roryhansen.ca/?p=9 for creating
related drop-down lists.
However, this code actually creates HTML in the controller component:
@albums = Album.find_all_by_artist_id(@params["artist_id"])
@html = "<select id=''album_id'' name=''album_id''>"
@html += "<option
2006 Mar 22
1
Ajax.Updater dropping first <OPTION> on IE?
I am attempting to use Ajax.Updater to update the innerHTML of a SELECT -
that is, to feed it a list of <option>..</option> sets generated from a
partial.
It works as expected on FF1.5, but in IE6 it renders as an empty select.
When I use the DOM viewer (or an alert()) to dump the value of innerHTML, it
appears intact EXCEPT that the first <option> is missing with no
2006 Jan 02
1
best way to detect drop down changes
So I want to have a form with a drop down that lists all our customers.
And when a user selects a customer, I want it to automatically list the
customer names emails below the drop down.
Anyone have any thoughts as the best approach to do this? I could just
write javascript, but it seems like there would be a rails tag for this.
thanks,
phil
--
Posted via http://www.ruby-forum.com/.
2005 Dec 15
3
Lonked Select Boxes
linked selects are critical to my application. for those who don''t know,
a linked select updates as the select box it is linked to is updated.
for example, if select 1 is "California", then select 2 will list all
the cities in California.
change select 1 to Washington and select 2 will automatically change to
list all the cities in Washington.
I use a php forms class to
2005 Dec 28
2
Getting (and displaying) REST data
This is probably more a Ruby question, but somebody
here probably knows ;). Is there some handy Ruby or
Rails library that can get data from other sites (like
Amazon and Flickr) via REST, then return it in nice
arrays, hashes, objects, etc.? I''ve searched quite a
bit and haven''t been able to really find anything.
There is a ruby-amazon library, but it''s for an older
2006 Jan 08
2
RoR AJAX select box update?
Hi,
I want to update a select box depending on another selected option thru
ajax.
Heres how I do it
# _form.rhtml
<select id="budget_coordinator_id" name="budget[coordinator_id]"
onchange="<%= remote_function(:update => "budget_project_number", :url
=> { :action => :get_projects }) %>">
<%=
2006 Jan 06
12
Auto refreshing a page based on select change
Hi all,
I have a select helper form on a web page which contains a list of dates. When
the user selects a date, one of the other forms on the page needs to be updated
based on the newly selected date.
Is there a way to catch this event in Rails? Are we talking Ajax here? Or is
there a simpler way?
Thanks,
Dan
2008 Jan 04
6
Ajax.Request: onFailure vs. onException
Hello All,
I''m trying to capture the exception message that my server application
is providing in response to my Ajax.Request. However, I''m confused as
to when onFailure is fired vs. onException. The onException handler has
access to the javascript exception object and I''d understood that it was
only called when the dispatch fails. Not sure what exactly that means
2006 Jun 23
5
create session only for logged-in
i was wondering how a blog db has grown by about 15 mb in a week or two. it turns out its the sessions table..
so ive tried this:
class ApplicationController..
session :off
end
class AccountController
session :only, :login
end
and now, its impossible to login, and nothing ever appears in the session table. is this the right approach? i dont want to weed out the sessions with cron, i just
2006 May 24
2
Gallery2 integration
Is anybody working already in a gallery2/rails integration?
I need to use it as part of my project, so, before start from scratch
with it I''d like to know if already is something out there.
Thanks.
2006 Jan 16
42
Linux Suggestions
I''m fairly new to Ruby & Rails and I come from a stricly M$ background. I''m
trying to move into the world of open source, but I don''t have a good roadmap.
I''m starting to develop a Rails-based product and I want to have the option to
distribute it to non-hosted customers. So I''ve said all that to say this... I
want to learn how to setup linux and
2006 Apr 28
4
Existing Tabs Helper?
Hi.
I''m going to start writting an ajax "tabs"" helper, but before starting to
reinvent the wheel (and in order to avoid DRO : don''t Repeat
Ourselves :-) ) I wish to know if there is any project for this already.
Thanks.
2006 Jul 14
9
DRY Javascript Degredation
Hi,
It seems there must be a better way to do this than what I am
currently doing.
I have a simple app that collects a users thoughts along with their
email address and their first an last name. On a page that lists all
the users thoughts they can click on a link to "add a thought" which
then displays a form with ajax. My current methodology for this is
not very dry. If js is
2024 Feb 17
2
Capturing Function Arguments
I'm wrapping a function in R and I want to record all the arguments
passed to it, including default values and missing values. I want to
be able to snoop on function calls in sourced scripts as part of a
unit testing framework.
I can capture the values fine, but I'm having trouble evaluating them
as if `force()` had been applied to each of them.
Here is a minimal example:
f0 <-
2006 Jan 12
7
user-defined columns
I am breaking ground on a new project and one of the issues I expect to encouter
is the ability of users to define their own columns. For example, one of the
features of this application will be the ability to store information about
people''s skills and then search for and schedule them based on this information.
Since every organization''s needs are different, it would be ideal
2010 Dec 07
2
mail.err
I keep getting this error, and I have no clue where it comes from. I
have no localhost in my fetchmailrc file, all I have in main.cf is:
mydestination = paulandcilla.homelinux.org, localhost
here is some of the entries in /var/log/mail.err:
Dec 7 16:00:38 paulandcilla fetchmail[16761]: connection to
localhost:smtp [::1/25] failed: Connection refused.
Dec 7 16:00:40 paulandcilla