similar to: ajax redirection

Displaying 20 results from an estimated 1000 matches similar to: "ajax redirection"

2006 Mar 23
2
ajax replace div
Hi, Using form_remote_tag methode, is there a clean way to directly replace the content of a given div instead of just update it ? If I destroy the content of the div using this code: :success => ''$(\''mydiv'').innerHTML = \''\'''', It works. But it''s not really a clean way... Any suggestions are very welcome.. Thanks. Seb
2006 Feb 17
4
Best practice for showing errors AND updating list
Morning/Afternoon/Evening All, This is my first post to the ruby message board so if my request is better suited to another location just let me know, The problem I keep coming up against is with a listing of objects and updating that list via AJAX (for arguments we are talking about a list of users). As it stands I can currently submit a form, and update the list (using :update
2007 Aug 21
7
Signin to LinkedIn
Hi, Does anyone have the formula for getting logged into LinkedIn? Here''s my current attempt: require ''rubygems'' require ''mechanize'' agent = WWW::Mechanize.new home_page = agent.get(''http://www.linkedin.com'') signin_page = agent.click home_page.links.text(''Sign in'') puts "\nSIGNIN PAGE"
2006 Feb 04
22
What''s the best way to embed a form?
I would like to embed my login form on my app''s home page. What''s the best way to render the login action of member controller from another action? Thanks Frank --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Apr 07
3
RJS removing content of div, but not div itself
Hi, I''m creating a list of ingredients on a page. When the user clicks the ''Add Ingredient'' button a record gets added to the db and the ingredient gets added to the page. On the page, each record is represented by a <div> with three <span>s inside. One of the <span>s has a link_to_remote to ''delete'' the ingredient. When the link
2006 May 25
5
Setting a global before_filter action in application.rb
Can you set a global before_filter action in application.rb? So, for example, you could control authentication for all of the controllers in an app.? Obviously, you would need a way to reference actions by controller within this "global before-filter". Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Apr 27
5
mysql lost connection
Hi, I''m lost and my mysql connection as well... I got this error in my production.log: ActiveRecord::StatementInvalid (Mysql::Error: Lost connection to MySQL server during query: SET NAMES ''utf8''): Config: Debian Sarge (last updated), Rails 1.1.2, Webrick, mysqld Ver 4.1.11-Debian_4sarge2 for pc-linux-gnu on i386 apache2 with mod_rewrite and webrick as proxy on 8080.
2006 Aug 10
4
1.1.5 Upgrade and config.load_path not working
Hey, I am trying to upgrade to 1.1.5 and rails no longer finds my controllers the live outside app/controllers. I was on 1.1.2 previously and here is my setup In environment.rb config.load_paths += [File.join(File.expand_path(RAILS_ROOT), "rails_shared/controllers") ] config.load_paths += [File.join(File.expand_path(RAILS_ROOT), "rails_shared/helpers") ]
2018 Mar 20
6
[Bug 105629] New: WebGL shader regular update crashes nouveau driver 17.3.3
https://bugs.freedesktop.org/show_bug.cgi?id=105629 Bug ID: 105629 Summary: WebGL shader regular update crashes nouveau driver 17.3.3 Product: Mesa Version: 17.3 Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component:
2002 Apr 22
2
skipping non-regular file
Hello, When using rsync 2.4.6 on a linux machine to copy a complete web directory (rescursively) on an other linux machine on my local network. For one file I got : skipping non-regular file www/svg_mysql/mysql.sock This file got the "s" flag set (and I suppose that is the problem). Anybody can tell me which option should I use to also in the syntax of the rsync command to copy this
2002 Oct 23
3
Samba + Winbind + Squid
Hi. I'm looking for samba 2.2.5 or 2.2.6 binary package to use with squid. So I need a version compile with option --with-winbind-auth-challenge and the one provide with red hat 8 doesn't have it. I tried to compile it but it doesn't work. Can someone help me? Thanks in advance, Hugues
2006 Apr 21
1
Catch authentication result from a model in a controller
Im still following the authorization recipe from the book, now all works fine but im getting trouble in how handle the model authorization result, if the user and pass are correct, it goes to a welcome screen(admin.rhtml) but if wrong the model prints a message in an ugly exception like page "usr and pass not correct", i want to redirect the user to the login
2018 Jul 06
4
Windows 10 and logon script execution
Hello guys, We recently added Windows 10 machines on our domain on samba 4.1.2. So we have now a part of our machines who are in Window 7, and another part in Windows 10. Everything seems to be fine, except one thing : the windows 10 machines don't execute the logon script (common.bat) specified in the smb.conf by logon script = commun.bat, while the windows 7 machines do. Any idea on how
2011 Apr 15
2
Corrupted index cache file
Hello I got this error message yesterday evening for a user I've checked LDA error log it happened 6 times in 3 days for 5 differents users, not much but I wonder what's going on as actually the server is moderately loaded ( Easter holidays ) we have currently 250/300 IMAP processes , in "normal" production time we have approx 1000 IMAP processes running. Apr 14 19:24:37
2006 Jun 27
5
Can''t call public application.rb method from ERb template
All, I have a left navigation partial that I want to dynamically generate CSS classes for based on the current controller action. In my ERb template, I have <DIV class="<%= get_menu_display_style(''login_form'') %>"> In application.rb, I have the method get_menu_display_style defined as: public def get_menu_display_style(action_requested)
2006 Sep 16
4
nfs shared and ferret segfault
Hi, I use ferret 0.10.4 whith shared index over NFS directory. There are 2 applications servers. The web server is Mongrel 0.3.13.3 and mongrel_cluster 0.2.0. There are 20 Mongrel processes on each server. Each time my application update a model, Mongrel process stops running with this errro in its log: /usr/lib/ruby/gems/1.8/gems/ferret-0.10.4/lib/ferret/index.rb:663: [BUG] Segmentation fault
2005 Aug 04
2
prediction from glm
Hello r-help, I try to fit birds counts over years using glm. I have done (with Estate and year as factors): Model1 <- glm(Females~Estate+Year+offset = log(area)), family = quasipoisson(link = log), na.action = "na.exclude") After I have calculated the prediction using: Pred1 <- predict(Model1, type = "response", na.action = "na.exclude") My question
2010 Feb 01
6
Import fixed-format ascii file with mixed record types
I need to import several ascii files in fixed format with two different record types. The data comes from European Labor Force Surveys, wich is a household survey. The first record type is for people over 16 years, and the second much sorter is for people aged 15 or less (this record has a filler with several blanks to get the same record length). The files tipically have 160000 records, with 176
2005 Sep 13
6
form_tag & form_remote_tag html id attribute
Hello, Is there a way to set the html element id for the form_tag and form_remote_tag on the server side? I want to have this resultant html... <form id=''something'' ... ... </form> Thank you, Brian Takita
2006 Mar 15
2
link_to_remote issue after upgrading to rails 1.0
Hi I''ve only recently noticed my notebook was using an old version of rails (0.13), and so upgraded it to 1.0 (this is on gentoo linux). The upgrade has broken some previously working code, and I''ve not been able to find a work-around. Previously the following call: <%= link_to_remote("some string", :update =>