similar to: jQuery post function

Displaying 20 results from an estimated 100000 matches similar to: "jQuery post function"

2008 Dec 06
9
jQuery Rails Functions
Hi, I was wondering if anybody who used jQuery with rails could help me out. I have a droppable that fires a simple function, shown below: $("#list").droppable({ accept: ".item", hoverClass: ''droppable-hover'', drop: function(ev, ui) { $(this).append("<br>Dropped!"); } }); But how could I get this to fire a Rails funciton in the
2008 Jul 30
1
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 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 Dec 19
3
Delete All action
Hi, What is the best way to delete all members of a model? For example I have a tasks model and want to put a link in that will delete all tasks at once. Something like, @tasks = Task.all @tasks.each { |task| task.destroy } Do I need another action for this, and what should the link to it be? cheers, DAZ --~--~---------~--~----~------------~-------~--~----~ You received this message because
2010 Sep 04
0
CSRF protection not working with jquery ajax post request
Hallo, I want to test the csrf protection of my application but forgery protection is not working with jquery ajax request. I have used Unobtrusive Javascript with jquery I have removed the <%= csrf_meta_tag %> so that my application do not include authenticity token. In my view I have the following code $(function () { $(''#alert'').click(function () { $.ajax({
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
2007 Sep 21
0
Rails plugin: jQuery Helper for Rails (jq4r)
Hi all, I''ve just written a Rails plugin: jQuery Helper for Rails (jq4r) and it works as ActionView::Helper::PrototypeHelper and ActionView::Helper::Scriptaculous but jq4r generates the jQuery code instead. I''ve already put the project on Google Code and RubyForge: http://jq4r.googlecode.com/ http://rubyforge.org/projects/jq4r/ If somebodies are interested in this project,
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
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
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
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,
2009 Mar 30
0
Trying to bind an appended partial that has REST_in_place attached to it with jquery?
In my create.js.erb view I am creating a new model in the view. On creation I want to have the appended partial in the dom and selectable so I can click it''s name and run the plugin REST in place with Jquery. #create.js.erb $("#new_show").before(''<div id="flash_notice"><%= escape_javascript (flash.delete(:notice)) %></div>'');
2008 Dec 03
0
event target bug or jquery.validation bug in IE?
I''m using jquery.validation.js plugin. It works fine in firefox. However, in IE, I have problem if there is errorred fields (which shows an error sentence). If it happens, the plugin keep onfocusin the first errored field (i use the event object to find out the problem). It should be logically wrong. But it creates big problem when I then trigger e.g. an autocomplete, or rating section.
2009 Sep 25
0
Rails tiny plugin using jquery, paerclip with image upload and media upload support
Rails tiny plugin using jquery, paerclip with image upload and media upload support http://github.com/sandipransing/rails_tiny_mce Sandip -- Ruby on Rails Developer http://funonrails.wordpress.com www.joshsoftware.com http://brandpotion.com (Latest project released) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
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
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 May 11
0
Jquery-Datatable-Rails Gem: Error on Update. PUT request automatically converting to a POST request.
Please checkout this link and help me out here. I guess the Gem has a Bug. It is working perfectly for Creating a User but while Editing User information it is giving a routing error: No route matches [POST] "/users/2" Here is the link: http://stackoverflow.com/questions/16501440/jquery-datatables-rails-gem-not-working-for-update-call-converting-put-request -- You received this
2011 Sep 14
5
rjs error TypeError: element.getElementsByTagName is not a function in rails 3+jquery
hi, i am using rails 3.0.10 i am trying with sample application for searching data from table and updating my search.html.erb file is <%= form_for (@employee) do |s|% <div id ="search_details"> <%= s.text_field :name%> <%= s.text_field :emp_id, :onfocus => ''sal(document.getElementById(''employee_name'').value);''%>
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'',
2010 Sep 27
6
Rails 3 + jQuery ; How to show error messages
Hi guys, can anyone explain how to show error_messages_on (like back in Rails 2 , without Ajax) fields that didnt'' pass the validation the jquery way. I googled for about 2 hours now and found nothing. Jquery works fine and adds the content to my table, but im totally stuck with the whole error/validation thing. My form looks like this: <%= form_for Translation.new , :remote =>