similar to: Disable ajax post temporarily

Displaying 20 results from an estimated 60000 matches similar to: "Disable ajax post temporarily"

2010 Jun 04
0
Ajax post from a mobile app
Hi, I''m a trying to create a user using Ajax from a mobile app with javascript and I''m struggling!!! Here is what I''m trying: user = {username:''plop'', password:''plip'', password_confirmation:''plip''}; new Ajax.Updater(''all'', HOST + ''users/create'',{ method: ''POST'',
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({
2012 Nov 30
1
q@ request.request_method=='OPTIONS', ajax, post json
hi im reading through the topic above and trying to apply it to my app. as reference i found:http://leopard.in.ua/2012/07/08/using-cors-with-rails/ my prob is that i dont see the ''preflight'', meaning the first request prior the actual post, which should(?) deliver this: request.request_method==''OPTIONS'' the js code look like this: $.ajax ({ type:
2013 Sep 19
0
CRUD model in a bootstrap modal with jquery, ajax - best practice
Hi, i have an model, which i want to show edit and update in a dialog via ajax. What i do at the moment: To open the Modal and render the partial, i send an ajax request to controller#show with ujs this is the link: <a class="person-dialog" data-remote="true" data-type="script" href="/en/people/32" onclick="return false">Fidel
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
2012 Dec 05
1
Ajax response in a modal box
Hello guys, I was wondering if I could display the ajax response in a modal box. I could not find anything satisfying on the web. I am new to ajax. This is what I was trying. $(document).ready(function() { var clicked1; $(".inline").click(function(e) { clicked1 = $(this).text(); $.ajax({ type: ''GET'', url:''/controller_path'', async: false,
2014 Mar 01
0
Rails AJAX slow compared to Node.js and websockets complex to implement in rails ?
I have heard alot about Node.js and watched a few tutorials and read some stuff. I get the impression that in certain situations AJAX calls with node.js is alot faster than with rails. I also have somewhat of an impression that with Rails web sockets are complicated to implement but with node.js web sockets might be alot easier. I am trying to figure out if I should learn some node.js or
2010 Mar 02
1
request.remote_ip with AJAX
Hello everyone. I have a problem with "request.remote_ip" I made an array: 1 ip = request.remote_ip 2 $ address [ip] = (: test => "OK") ... ... ... 11 ip = request.remote_ip # (along with a lot of AJAX calls) 12 response = $ address [ip] [: test] It often works, but sometimes it gives me this error: NoMethodError (undefined method `[] ''for nil:
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
2012 Mar 07
1
link_to with :remote=>true works when bound to "click" but not "ajax:beforeSend"
Hi. I am trying to do an ajax link in Rails 3.2.1 and jQuery. I am loading jquery.js and jquery_ujs.js. In my document ready, if I bind to the event "click," clicking the link fires an event, but if I click to ajax:beforeSend, it doesn''t. Nothing happens when you click the link in JQuery. The event does go to the controller, though. Works: $(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 Jun 03
0
valums ajax file upload + paperclip in Rails 2.x Options
Hello all, I am trying to setup ajax file upload + ajax display in Rails 2.0.2 for project specific purposes. I am using valums ajax file upload plugin(https://github.com/valums/file-uploader). Using this plugin, I have been able to upload these files working in my javascript and I am able to pass them as params. I have found a blog in which they have shown how to combine this plugin with
2010 Oct 02
0
Ajax observe_field not vorking on Rails
down vote favorite I am trying to create some kind of search in my ruby on rails application and I want to add ajax support. I want when a user types in a search box a word, ajax automatically generates the results. And I have searched almost all internet and I couldn''t find answer to following question: When I type into my text area nothing happens. It is like ajax is not working at
2011 Aug 28
1
Page Caching, CSRF, and Loading a form via Ajax
Hi all, I would like to use page caching on my homepage, but also want to enable people to sign in via a modal dialog sign in form. I could have a setup in which when a user lands on the cached homepage, an Ajax GET request pulls in the whole login form so that there is a fresh authenticity token. That said, besides the additional hit to the server, the CSRF token in the head area of the page
2011 Mar 22
0
Error on ajax forms/links in jQuery UI tabs
I''ve implemented jQuery UI tabs, and I get an error: When i submit a ajax form or link, it gets submitted multiple times. As seen in this Doom console output: DELETE http://localhost:3000/innmeldings/101 404 (Not Found) DELETE http://localhost:3000/innmeldings/101 404 (Not Found) DELETE http://localhost:3000/innmeldings/101 404 (Not Found) DELETE http://localhost:3000/innmeldings/101
2012 Jan 23
0
Ajax confusion
I''m a bit confused about ajax. If I have a link, do I add the href, data-remote="true" and data-method in there? Or do I make the actual call in a separate script with $.ajax({})? Or both? The same thing with a form. Is that suppose to have an action path and an jquery axaj url: "..." path at the same time? -- Posted via http://www.ruby-forum.com/. -- You received
2010 Nov 06
0
Rails and JQuery and Ajax/Json question
Hi, I am using JQuery in my rails app. I''ve taken the approach outlined in Ryan Bates''s Railscast on jquery to do the following: jQuery.ajaxSetup({ ''beforeSend'' : function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")} }); to set my ajax call request Headers to text/javascript so that my respond to block for javascript is
2011 Sep 25
0
ajax problem when switching from prototype to jquery
I have an old Rails application that I''d previously upgraded to Rails 3.1 with a lot of legacy features left on; now I want to switch to using jQuery instead of Prototype, and switch to using the asset pipeline. I''m trying to tackle the first of those; no idea if that''s wise, maybe I should start with the asset pipeline instead? To switch to jQuery, I added gem
2011 Mar 02
2
Rails3 Uploading a File over AJAX
What is the Rails Way of uploading a file over AJAX with Rails 3? In previous versions of Rails, I''ve posted to a targeted iframe and used responds_to_parent to render the response. This doesn''t appear to be working with Rails 3. Anyone know a better solution? Thanks! Tom -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2013 Jun 26
2
having isues with creating a ajax call in my simple rails application ,
hi all , having isues with creating a ajax call in my simple rails application , can any body be available for some time to help on mail or chat ?? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to