Displaying 20 results from an estimated 200 matches similar to: "Calling a function inside of (function($) {})(jQuery);"
2012 Jan 05
6
assest pipeline how to exclude some css files?
In my assets I have
intranet
|_1.css.scss
|_2.css.scss
internet
|_1.css.csss
application.css
application_internet.css
application_intranet.css
1.css.scss
2.css.scss
3.css.scss
intranet and internet are directories.
In my layout I want to exclude the files under internet and intranet.
I have created
application_internet.css
/*
* application-internet.css
*
*= require_self
*=
2010 Jun 08
8
rails, ajax, json, and script
Could someone please demonstrate the code to send both json (or xml) AND
javascript (to be executed) in a single Ajax request?
Is this even possible?
--
Posted via http://www.ruby-forum.com/.
--
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
2011 May 04
0
using jquery datepicker within a jquery dialog
so I have datepicker working just fine in a normal window but I cannot
for the life of me get it to work within a dialog.
I have some javascript that opens a dialog in my application.js file
as well as the datepicker js
is as follows:
$(function() {
$("#version_release_date").datepicker({dateFormat: ''yy-mm-dd''});
});
$(document).ready(function() {
2011 Jul 07
2
Rails 3.1 + jQuery + jQuery UI = data is null
Trying to get jQuery UI to work with my rails 3.1 setup, but i keep
getting errors that i cant see posted anywhere, this is driving my
insane so please have a look =>
[application.js]
// This is a manifest file that''ll be compiled into including all the
files listed below.
// Add new JavaScript/Coffee code in separate files in this directory
and they''ll automatically
// be
2009 Dec 25
18
rescue_from ActionController::RoutingError II
OK ... so I''m not supposed to use it but ...
Why doesn''t rescue_from ActionController::RoutingError work witht he
code from
http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html
class ApplicationController < ActionController::Base
helper :all # include all helpers, all the time
# See ActionController::RequestForgeryProtection for details
2011 Dec 19
2
Jquery Modal Dialog with Jquery DatePicker field strange behavior
Hi people.
I need your help here, please.
I have a rails 3.0.9 app, and I''m using Ajax to save some records to
the database. To achieve this, I use a jquery modal form, but one of
the fields is a datepicker, and if I click on it to display the
calendar it doesn''t work.
The thing is, I press submit without fill all the fields, so, my
custom validations were shown, telling me
2010 Jul 28
6
FXTextField.connect(SEL_CHANGED)
When I do an assignment to the text in a FXTextField, SEL_CHANGED is not raised.
The text is changed on the screen.
How do I detect that the text has been changed and/or ... how do I raise SEL_CHANGED?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20100728/e0d169e5/attachment.html>
2010 Aug 17
2
SEL_UPDATE not responsive
I have read what I could about SEL_UPDATE and I understand that the block(s) that get called "from" SEL_UPDATE only get called when "there is no more work to do".
I took the splitter.rb example that comes with FXRuby. I put in a "puts" in one of the SEL_UPDATE blocks and I get about 4 a second. Not awful ... but ... why is it so slow?
In my code which is ... more
2007 Nov 15
1
jRails plugin: jQuery on Rails
Hey All,
I just built a new plugin that replaces most of the default
functionality for Prototype/scriptaculous with jQuery. I still have
some work to do completing the rest of the visual effects and writing
some plugins for autocomplete and in-place editing but this release is
pretty solid.
It includes support for basic AJAX calls (form_to_remote,
link_to_remote), RJS, observers (observe_form,
2010 Sep 09
0
Rails3: jquery-rails gem sets 'config.action_view.javascript_expansions' but cannot be overriden in 'config/application.rb'
Hello,
I''ve created a new Rails3 app and I''m using jQuery instead of prototype.
Gemfile:
gem ''jquery-rails''
in my config/application.rb I want do the following:
config/application.rb
if Rails.env.production?
config.action_view.javascript_expansions[:defaults] = %w(jquery.min
rails application)
else
2012 Sep 11
0
JQuery.js problem
Hello,
In my view, I am showing password strength. I had added jquery.js in
assets/javascripts. It worked. Then in the UI :- :confirm stopped working
in button_to. I was wondering why. But today I came to know that in rails
3.0 & above jquery.js is not required. So I deleted it. But something wrong
happened. now my password strength seems not to be working. & not
redirecting.
Any
2011 Nov 03
0
multiple render text in jquery rails
Hi,
For one action of user based on condition i want to render different
texts. So how do i achieve it through jquery?
For example:
A simple posting message application:
On post button i have a post method which has security checks and other
server side checks like :
===========================
if message_text.nil? or message_text.empty? or message_text.length > 140
2011 Oct 24
1
JQuery autocomplete example
I was trying to follow along on the github example
(https://github.com/crowdint/rails3-jquery-autocomplete) for building
an autocomplete and ran into a small set of problems. I''m not using
the exact names of models, but I suppose I could. It''s just a dummy
set. For me: Model is Package and attribute is Brand.
I don''t understand what the reference to class
2011 May 21
0
Jquery UI with rails nested forms
I am very beginner to ruby on rails and web-development.
I created my app that similar to Ryan Bates, episode 197 and 198, but
with use JQuery UI datepicker. But I dont really know how to do that.
I know that the problem is with element ID always same whatever I
generated new dynamic partial. For example, when I choose a day, it
works fine. but when I add new nested model (or record), only the
2009 Jan 13
1
jQuery & unobstrusive javascript
Anyone know how to unobtrusively turn a normal link <a> into an ajax
link using 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send
2012 Nov 08
0
After order a HTML with JQuery UI Drag and Drop, save ordered table to DB using Rails
Hi guys
I''m doing a form with fields like name, email, phone, address, city,
state, etc.
Each field has a table in db.
I will use state field as an example:
In db I had table states with columns: position, name and acronym
In my View I had a HTML table with name and acronym, ordered by position
(when page loads). I can order my table using select box (order by name
or acronym) or
2012 Nov 18
0
How mix jquery based ui packages and ruby on rails
I am trying to use jqx ui that is based on jquqery I have following
questions
1. How do I generate the right id and name for the element without setting
the element name and id in the format model name [attribute] ? Example
<%= f.text_field :country_id %> generates
sets the element id and name to bank[country_id]
2.how do i set the form element attributes like action ? Do i just use
2011 Mar 25
0
jquery/prototype. element.tagName undefined
Has anyone had this issue with using prototype and jquery doing a
page.replace_html ''element'' :partial ''blah''
RJS error:
element.tagName undefined
--
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
2008 Sep 10
1
jquery slider
a have a jquery slider a save the final values of the selection in
javascript variables rank_1, rank_2, rank_3
I need to give this values to a controller how can i do that??
some help please!!
thank you!
--
Felipe Vergara Contesse
Ingeniería Civil Industrial UC
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2011 Nov 18
0
Jquery dialog
Hi,
i had a index page with url as www.exa,com/users/jude.In that page i
want to submit a from which appears from popup dialog.The action of the
popup is going to send_message,Whenever i submits, via ajax the data
gets stored but not the page gets reflected.
My controller
def send_message
@message = current_user.messages.build(params[:message])
@message.receiver_id = @user.id