Displaying 20 results from an estimated 200 matches similar to: "krjs plugin: a different way of doing RJS"
2006 Jul 17
1
FF1.0 + Prototype Ajax not working in 0.3.13.x
Hi guys,
I have a funny problem that only occurs in FF1.0.x but works fine and dandy
in FF1.5. I''d thought its me screwing up with the JS... but even this " What
time is it <http://www.onlamp.com/pub/a/onlamp/2005/06/09/rails_ajax.html>"
doesn''t work with until I downgrade to Mongrel 0.3.12.4. I don''t like/use
FF1.0 too.. but too bad for me
2006 May 18
1
mime yaml
First off, apologies if this is addressed.. I didn''t find anyone
having the same problem (which usually means the problem is me!)
I''m running the standard command to start a Rails server, with
additional custom mime YAML:
mongrel_rails start -m /etc/mongrel_mime.yml
Content of the /etc/mongrel_mime.yml is only a single line:
.xml: text/xml
However, the custom mime
2006 May 30
3
extra attributes in habtm
Hi,
Posting here since issue tracking isn''t the best place to discuss.
I can understand habtm is moving towards deprecating support for extra
attributes in join_table, and to use :through for those cases instead.
To clarify, patch<http://dev.rubyonrails.org/attachment/ticket/5216/habtm_join_table_test.patch1.diff>for
#5216 <http://dev.rubyonrails.org/ticket/5216>
2006 Jun 14
1
reset_session when Ruby goes down
Hi,
In my web application we have implemented the session and it works fine.
ie. it prompts for the userid/password when ever we give the URL by
opening a new IE window. i.e it goes through the session and see if the
:user_id is present in the session if not it prompts to log-in again.
But my problem is say if we "kill" the WebRICK abruptly by pressing ^C
and say my browser window
2006 Aug 10
3
Radio buttons refusing to load checked...
Hi,
Having big problems with radio buttons that just don''t make sense:
<%= radio_button "events", "impact_type", true %> Positive
<%= radio_button "events", "impact_type", false %> Negative
This should create two radio buttons with the first one checked by
default, right? Cos it doesn''t :(
Any ideas would be great,
Thanks,
2007 Oct 05
7
Trouble with text_field_tag
I am trying to implement a basic login page:
login.rhtml
1 <fieldset>
2 <% form_tag do %>
3 <label for="name">Name:</label>
4 <%= text_field_tag :name, params[:name] %>
5 <label for="password">Password:</label>
6 <%= password_field_tag :password, params[:password] %>
7 <%= submit_tag
2006 Jun 13
0
remote_form_tag
I''m using the remote_form_tag to submit my form data to a controller
method call. I would like to forward if everything checks out and display
the model errors is there is a mistake. Right now my method call returns
a string and it''s being displayed in a div, but I can''t force a redirect
or display errors is they exist.
Any ideas?
Thanks,
David
2006 Jun 22
1
remote content
Hi,
I''ve looked through the api and I can''t seem to find the functionality
that I''m looking for. I want a link that, when clicked, will replace the
content of a div with the rendered content of another action. Something
like what you can accomplish when you use remote_form_tag and then have
the reply replace the content of a div in the page. I''m sure this
2006 Jan 16
1
redirect_to is not working with ajax forms
I''m having trouble using redirect_to in an action called by a
remote_form_tag.
The log shows the redirect, and rendering of the redirected page, but the
browser
won''t redirect. If I set :update in the form_remote_tag, the page that was
supposed
to be redirected to will replace the :update elements content, and crash
FF1.5
Running edge rails, and utf8 encoding
joshua
2006 Jun 30
0
Fwd: Mongrel-users Digest, Vol 5, Issue 22
It''s gotta be Rascal. There''s no fixing Victoria - that''s a re-write from
the ground up.
And Jake a recipe for disaster;
Class Jake < Bat
include Pig
attr_accessor :one_eye
.
.
end
That pig ''ll never fly.
---------- Forwarded message ----------
From: mongrel-users-request at rubyforge.org <
mongrel-users-request at rubyforge.org>
Date:
2006 Aug 09
7
changing find method
Hi,
i was wondering if there was a nice clean way(after all, it is ruby) to
change the find method of a certain model/class (Page) so that if i
wanted to use a find method on a @page instance it would return only
specific rows from the table(if the page.published == true/false:
the pages table looked like
SQL:
...
id int not null auto_increment,
published tinyint(1) not null,
something
2007 Mar 06
1
Smart forms in Rails?
I am working on a project that needs a "Smart Form" type of system.
That is, we need to have a Form Template system that chooses what
elements of the form are displayed based on how the user answers other
elements of the form. Does that make sense? Can anyone point me in the
right direction?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 04
0
[SUMMARY] Rails Core Weekly May 29 - June 4
Rails Core Weekly May 29 - June 4
Dear List,
Another week has passed, here''s RCW, the McCartney Edition:
This weeks kicks of with Josh Susser fixing has_and_belongs_to_many
#create method to properly populate joins with new records
:http://www.ruby-forum.com/topic/67478#new. Check out his test:
def test_create_by_new_record
devel = Developer.new(:name => "Marcel",
2006 May 15
0
AJAX and Smooth Paging
Apologies on the subject heading, I couldn''t really think of a concise
way to describe the problem I''m trying to solve. Here''s the idea:
I have an application that shows a bunch of text in a div (through a
partial) and currently has a next button (submit_form_tag) at the end
of that text to fetch the next bit of text which it grabs via the AJAX
helpers. However,
2009 Mar 18
1
Ajax file upload with remote_form_tag
when I tried below, it worked
<form
target="upload_iframe"
action="/profile/validate_charts_file"
id="upload_charts"
method="post"
enctype="multipart/form-data">
<input type="file" name="charts_file" id="filename" />
<input type="button" name="submit"
2006 Jul 07
3
dynamically updating a listbox from another listbox
Hi,
I would like to be able to dynamically (without reloading the page)
change the values from one listbox when a user select items from another
listbox. I have a model ''Sector'' which has_many ''levels'' (and of cours,
''Level'' beyong_to ''sector''). I want to show the user two listboxes with
the sectors and levels. But
2006 Jul 17
3
Best practices - field initialization based on display rules
All,
I have a form with the following field interaction rules.
Given checkbox A,
text field B
text field C
If checkbox A is checked then make text field C equal to the value of
text field B and disable field C.
If checkbox A is unchecked then enable field C.
In order to display a form where I''m manipulating an already existing
object, I have something like this in my RHTML template
2006 Jun 20
1
Extending RJS
Is it possible to extend RJS and create another object, like ''page''?
I''m trying to create a customized RJS for my own javascript library.
Thanks in advance
--
Posted via http://www.ruby-forum.com/.
2006 Jun 15
0
CentOS-announce Digest, Vol 16, Issue 5
Send CentOS-announce mailing list submissions to
centos-announce at centos.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-request at centos.org
You can reach the person managing the list at
centos-announce-owner at centos.org
When
2006 Jun 14
4
Asterisk server
Hi,
I have to build Asterisk server for about 30 user (30 concurrent calls). I
decided to buy this box:
-- motherboard Intel E7210 + Hence Rapids
-- processor P4 3.0 GHz
-- RAM 2x512 MB DDR ECC
-- network interface Intel 82541 GI
Is this configuration enough to handle 30 users at the same time. I am not
planning to use any transcoding (everything will be alaw).
Cheers
Andrew
--------------