Displaying 20 results from an estimated 5000 matches similar to: "Re: jQuery.post gets some code but the code isn't evaluated"
2008 Jul 30
0
Re: jQuery.post gets some code but the code isn't evaluated
> jQuery.post("/plans/<%= @plan.id %>/add_learning_objective?name=" +
> objective_name)
You need to specify the type option as "script" to have it executed.
(See the docs for jQuery.ajax(), where it is the dataType option. The
"type" option in $.post is passed to $.ajax as the dataType option)
Rein
--~--~---------~--~----~------------~-------~--~----~
2008 Sep 25
2
jquery, format.js and IE
I''m trying to use jQuery to write all my js unobtrusively, and running
into a bit of a problem when triggering the format.js block in IE6 (and
possibly IE7). It returns the JSON string no problem, but instead of
parsing it, IE6 asks to download the resource as a .js file.
So if my url is ''/pictures/1.js'', IE6 will ask to save or run ''1.js''
I did do
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
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
2012 Nov 02
2
jquery error in production precompiled
In my rails project, for production precompile
I do : rake assets:precompile RAILS_ENV=production
But it not work for jquery.
In my firegub console, I got the error
“ReferenceError: JQuery is not defined “
at production.rb
# Disable Rails''s static asset server (Apache or nginx will already do this)
config.serve_static_assets = true
# Compress JavaScripts and CSS
2012 May 10
1
getting started with jQuery rails 3.2
Hi all,
I''m trying to work out how to get started using some jQuery in my rails
app.
rails -v = 3.2.2
ruby -v = 1.9.3-p194
I''m only sporadically a web-developer, and still quite inexperienced
with jQuery especially, so I may be making an obvious mistake.
Essentially, I''ve done very little after creating a new app, I''ve learnt
that jQuery is included by
2010 Apr 09
2
dynamically linking to ajax.googleapis jquery
Hi
I am using jquery and jqueryui in my application And in layout I use
<%= javascript_include_tag
"http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"%>
<%= javascript_include_tag
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" %>
<%= stylesheet_link_tag
2013 Jan 23
1
Need to change jquery version in my rails project
Hello everyone,
Currently my rails 3.2.8 project loading jquery 1.9.0
In this jquery 1.9.0 live() method not working.
How can i change loading jquery version?
Please help.
--
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
2013 Feb 12
2
Rails parameters get lost because of jQuery link
(Original
post: http://stackoverflow.com/questions/14569721/rails-parameters-get-lost-because-of-jquery-link,
unfortunately no response)
I saw this Railscast (
http://railscasts.com/episodes/240-search-sort-paginate-with-ajax) the
other day and wanted to use the techniques for an application of mine. I
have a page with elements on it and I want to sort them by values and
select them by tags.
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
2011 May 25
1
trouble using jQuery in Rails 3.0.7
I''ve tried to install JQuery a couple of times now, and I''ve followed
the steps for Rails UJS mentioned here:
https://github.com/rails/jquery-ujs
The last time I went ahead and added jQuery UI as well:
$ rails generate jquery:install --ui
remove public/javascripts/prototype.js
remove public/javascripts/effects.js
remove public/javascripts/dragdrop.js
2009 Aug 07
2
calling a jQuery function from RJS/onclick
Hi,
I have the following jQuery function on the head of my page.
<script type="text/javascript">
jQuery.noConflict();
/* calling jNice on document ready */
jQuery(document).ready(function($)
{
$(''div.jNice'').jNice();
});
.....
</script>
On page load, this gets called correctly.
Now there''s a link on the page that lets me add more
2013 Jan 23
3
footnote:id, colons and jquery
I just received a [bug report] for Python-Markdown complaining that
colons are used in the ids of footnotes. For reference, we [output]
the same format at PHP Markdown Extra. The general complaint is that
the colon in the id attribute (`id="fnref:1"`) causes jquery to choke
when referencing that id from javascript because jquery uses colons to
indicate pseudo elements (as does CSS). As
2012 Jan 11
4
Observe field with jquery in Rails 3.1
I tries to observe a change in a field with jquery in Rails 3.1 in
order to be able to implement two cascading select boxes.
A a first step I just try to observe a click in a div using jquery
I have the following function in a .js file that is loadedin the head
section (fieldset is the id of a div) and is displaying a view with
the div fieldset
$(document).ready(function() {
2010 Jun 28
2
jquery ajax.submit() help
Hi all,
I need some quick help in jquery.
While using jquery ajax.Submit(), we can specify the target div to be
modified with the template rendered by the corresponding action.
Is there way using which we can update multiple divs ( using render update)
from the called action in ajax.submit()
I am stuck and for now i am populating a complete page again but its
incorrect.
I need to update
2011 Jul 28
1
Help install jquery ui
I tryed rails generate jquery:install --ui but my draggable method still
does nothing.
Can anyone help me ?
What is the proper way to install jquery ui (specially for dragging
elements)?
Thank you,
Rodrigo
--
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 Aug 22
1
Rails params-hash. jQuery have this?
Hello,
Rails has a hash named "params" which contains information from my
current URL.
Does jQuery have something like params?
Related question:
What is the jQuery-way of getting data out of the current URL?
-Audrey
2010 Jun 16
4
firebug jQuery undefined message in rails app
In rails app, I add the following line of code in application.js and I
get jQuery is not defined in firebug console.
In application.html.erb, I have the following:
<script type="text/javascript"
src="../javascripts/application.js"></script>
<script type="text/javascript"
src="../javascripts/jquery-1.4.2.js"></script>
and I installed
2012 Apr 15
5
JQuery-rails gem spec removal
Hi there,
I don''t know if this is the right place to discuss such a topic. I''ve suggested to remove jquery-rails spec folder, since it hasn''t got any tests, they are not adapted to RSpec2 and not even to latest rails. They are one year old and it contains only one empty test.
I have an application that runs all tests on all engines, being jquery-rails one of them. I
2012 Jan 01
2
Calling a function inside of (function($) {})(jQuery);
I have a .js file with the following function
function set_priceKind_global(priceKind)
{
switch(priceKind)
{
case "paid":
case "free":
break;
default:
var throw_msg = "Internal confusion in set_priceKind_global"
alert(throw_msg)
throw throw_msg
}
It is triggered by
%input{''type'' => ''button'',