similar to: calling a jQuery function from RJS/onclick

Displaying 20 results from an estimated 100 matches similar to: "calling a jQuery function from RJS/onclick"

2009 Feb 26
7
javascript using jQuery.js and prototype.js doesnt work 2get
Hi........ M hving javascript "scripts.js" which uses jQuery.js in rails application. bt when it is used along with prototype.js, one of the javascripts which hs been included first in my application.rhtml fails... Do some1 hv any solution how to make both the scripts work 2gether... I tried using <script> jQuery.noConflict(); </script> bt of no use. problem
2010 Jun 15
11
mysql gem install not happening on Mac OS Leopard - any inputs at all??
Hello all, Ive got Mac OS X Leopard (10.5.8), ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0] and mysql 5.0.67 installed and working fine with Rails 2.1.0. "which ruby" outputs /usr/bin/ruby. I can see the mysql symlink in / usr/local/mysql. I can also see the mysql-5.0.67-osx10.5-x86 folder in /usr/local . Im trying to upgrade my Rails apps to 2.3.5 but when i try to
2008 Oct 11
8
Observing few fields in a form - Best Practise?
Hi, im looking to build a page similar to a shopping cart page. When you change the ''price'' or ''quantity'' fields, the total is calculated and displayed. There are other fields in the form which have no relation to this action. So i guess observe_form is not required. Can someone tell me what the best practise is for this?
2009 Mar 17
4
Preventing a submitted hash from ActiveRecord DB store
Hi all, I have a multi model form (Project with many tasks) and I want to prevent a task from being saved to the DB if it is empty ie. if there is no i/p for that task from the user. I tried the following class Task < ActiveRecord::Base before_save :check_if_empty ... def check_if_empty self.destroy if description.blank? end but i get this TypeError in ProjectsController#create
2009 May 11
3
daemons load activesupport 2.2.2 instead of 2.1.0, causing failure
Hi, I have a couple of daemons that im trying to setup to be run for my app. The environment load is as follows.. ENV["RAILS_ENV"] ||= "development" require File.join(File.dirname(__FILE__), "/../../config/environment") And the error I get is #<LoadError: no such file to load -- active_support> #<Gem::Exception: can''t activate activesupport (=
2010 Oct 04
1
can you use rjs with jquery?
can rjs be used with jquery? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit
2011 Mar 17
1
generalized mixed linear models, glmmPQL and GLMER give very different results that both do not fit the data well...
Hi, I have the following type of data: 86 subjects in three independent groups (high power vs low power vs control). Each subject solves 8 reasoning problems of two kinds: conflict problems and noconflict problems. I measure accuracy in solving the reasoning problems. To summarize: binary response, 1 within subject var (TYPE), 1 between subject var (POWER). I wanted to fit the following model:
2010 Jun 02
1
Ajax with JQuery
I have used Ajax link and live validation in index.rhtml Ajax link requires JavaScript "prototype" and live validation requires "jquery". i got "element.dispatchEvent is not a function" on the firebug console when i used "prototype" and "jquery" in same page index.rhtml after i removed javascript "prototype" library, i got "Ajax is
2010 Mar 17
3
ActiveRecord::StatementInvalid: Mysql::Error: Lock wait timeout exceeded
Hi all, Ive been getting this error on one particular query repeatedly for the past few days. ActiveRecord::StatementInvalid: Mysql::Error: Lock wait timeout exceeded; try restarting transaction: UPDATE `posts` SET `updated_at` = ''2010-03-17 05:35:00'', `view_count` = 54 WHERE `id` = 158 Googling around, I found that this is basically because the transaction times out after
2009 Sep 14
2
RMagick Installation woes
Hi, I need to install Rmagick to get re-sizing working with Paperclip. My dev machine is on Mac OSX Leopard and the server is on Ubuntu Intrepid 8.1 I dint have Macports or wget at first. I was following this article - http://onrails.org/articles/2007/11/03/installing-rmagick-on-leopard-without-macports-or-fink. Ive done this before too. But some dependency always failed. I want to start with a
2008 Oct 25
2
Script/Server working but Script/Console not working
Hi all, I have been having a very weird problem for a few weeks. I am able to start up the server using "script/server" for my application and run it successfully but "script/console" is not working. I have been managing without it but somethings not right and i need to fix it. This is the error that it throws and the trace. Loading development environment (Rails 2.1.0)
2008 Oct 24
4
Railscast 75, Observe_field and Shopping Cart
Hi all, I have the shopping cart page where a user can add items dynamically through ajax as explained in Railscast episode 75. I am using observe_field to observe the ''quantity'' and ''cost'' fields to update the total field for each item. This does not work however, for records that are added through the Ajax. How can i name the fields and observe them as i have
2009 Jul 31
6
Background daemon
It''s sending e-mail every hour, but I changed to sleep for a day, but keep send the e-mail by hour. I don''t know what to do to send daily. Could somebody help me? thanks ############ # mailer.rb ############### #!/usr/bin/env ruby # You might want to change this ENV["RAILS_ENV"] ||= "production" require File.dirname(__FILE__) +
2009 May 08
1
filter_parameter_logging for multi model forms
Hi all, I have a multi model form setup in the classic Ryan Bates Complex forms style (railscasts.com/episodes/73) for my signup page. The two models in this are the Account model and the User model and this structure cannot be changed right now. The User model has password and password_conf attributes which are, unfortunately, taken alongwith the rest of the User''s attributes into an
2010 Apr 05
1
`test': wrong number of arguments (1 for 2) (ArgumentError)
Hi, Im trying to change the syntax of my tests to the test "some method" do ... end syntax from the existing def test_some_method ... end syntax. Im pasting my test code below. Im getting the error in the subject line if I try to run the test as a ruby script from the console. require File.dirname(__FILE__) + ''/../test_helper'' require
2007 Mar 19
3
jQuery Users...
Any jQuery users out there? I would like to learn more about incorporating jQuery with Rails as the performance seems to be the best of any library I''ve seen and it is great in separating the JScript from the HTML. Any suggestions on where to get started? I''ve read this (http://b.lesseverything.com/2006/12/31/making-jquery-and- prototype-play-nice-in-rails) but was looking into
2009 Feb 26
11
OpenSSL::Cipher decrypt returns 'wrong final block length'
I just want to encrypt a string submitted through a form before saving it to the DB. And then decrypt it again when I need to retrieve and use it. Im trying to use the OpenSSL::Cipher library. I have the following module for encryption/decryption [code] require ''openssl'' module AESCrypt # Decrypts a block of data (encrypted_data) given an encryption key # and an
2008 Dec 20
5
Calendar icon for date selection functionality
Hello. I would like to add date selection functionality using a calendar icon. Is there a tutorial anywhere I could use? Thanks in advance. Pepe --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2009 Jul 24
5
padawan seeks advice from jedi masters to create toggle box via ajax/rjs before slitting wrists with ruby powered light-saber.
I AM TRYING TO MAKE A DAMN TOGGLE BOX, BUT USING MY OWN GRAPHIC AND HAVING THE MOUSECLICK TRIGGER BOTH SWITCHING THE GRAPHIC (via AJAX) AND SAVING THE STATE IN THE DATABASE. I GOT IT ALL WORKING WITH NORMAL HTML GET CALLS TO THE SERVER, BUT I NEED IT TO BE AJAXIFIED SO THAT THE PAGE DOESN''T RELOAD. AND TO COMPLICATE MATTERS, IT HAS TO WORK IN A TABLE WITH AN ARBITRARY NUMBER OF ENTRIES,
2012 Jul 05
7
proper usage of global variables / node variables / +=
Hello puppet masters, I am cleaning up some puppet modules, using puppet-lint. The warning I am getting is: top-scope variable being used without an explicit namespace I can turn this particular check off, but in doing my research I''m finding all sorts of messages saying to avoid using +=, to avoid using variables in the node scope, and to switch to a parameterized class whenever