[Rails] Re: Login modal using default rails ajax request not working with subdomains

2015-10-23 Thread Daniel Loureiro
your problem it's related with CORS. A little recipe to solve this: 1. install rack-cors gem. On your Gemfile: # Gemfile gem 'rack-cors', :require => 'rack/cors' 2. on shell: bundle install 3. on your application.rb: # application.rb ... config.middleware.insert_before 0, "Rack::Cors" do

[Rails] Re: Login modal using default rails ajax request not working with subdomains

2015-10-21 Thread Matt Jones
On Friday, 16 October 2015 03:37:03 UTC-4, Ruby-Forum.com User wrote: > > I am having a devise user model. > > To login I am using twitter-bootstrap modal.The modal is by default > hidden and shown only after an rails default ajax request is send to the > server. > > It works fine with localh

[Rails] Re: Login modal using default rails ajax request not working with subdomains

2015-10-20 Thread Chris Ward
Sorry to tell you, but this behavior is by design. You'll have to put it on the same subdomain as the accessed page or use a workaround like an API. This is actually a limitation of AJAX. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Go

[Rails] Login modal using default rails ajax request not working with subdomains

2015-10-16 Thread Akhil Sharma
I am having a devise user model. To login I am using twitter-bootstrap modal.The modal is by default hidden and shown only after an rails default ajax request is send to the server. It works fine with localhost and production. But when a user is on a subdomain(using acts_as_tenant) like business.

Re: [Rails] Ajax request

2011-05-10 Thread Frederick Cheung
On 10 May 2011, at 23:48, Mlle wrote: > Hi > > I'm trying to create an Ajax request that displays a list of inventory > items resulting from a search on a keyword. How can I insert the list > of inventory items using a partial or a string of html onto the page > following the ajax request? T

[Rails] Ajax request

2011-05-10 Thread Mlle
Hi I'm trying to create an Ajax request that displays a list of inventory items resulting from a search on a keyword. How can I insert the list of inventory items using a partial or a string of html onto the page following the ajax request? The following doesn't work because I can't use a conten

Re: [Rails] Ajax request not working in IE, Rails 3

2011-03-09 Thread Bryan Crossland
On Wed, Mar 9, 2011 at 8:27 AM, vikas rao wrote: > Hello > > I have a below code in rails 3 which works fine on all other browsers > except IE > > This sounds like an issue with IE. Google for you version of IE and AJAX issues. B. -- You received this message because you are subscribed to the

[Rails] Ajax request not working in IE, Rails 3

2011-03-09 Thread vikas rao
Hello I have a below code in rails 3 which works fine on all other browsers except IE There is a remote form, on creation it passes the XHR request in all other browsers but in IE it doesn't passes XHR request and searches for the HTML page, thus sometime gives "Missing template error" and somet

Re: [Rails] Ajax request not coming

2010-10-05 Thread Luke Cowell
If you click on the resources tab in the developer tools and scroll to the bottom, you should see an entry for the ajax request. If you don't, the request isn't firing. If you do, the response will give you some valuable troubleshooting information. Luke On 2010-10-05, at 5:08 AM, Hemant Bharg

[Rails] Ajax request not coming

2010-10-05 Thread Hemant Bhargava
Hello guys, I am sending an ajax request in javascript with some parameters. Ajax request is javascript is written as:- new Ajax.Request( '/controllername/actionname?employee_id=' + employee_id + '&employee_name=' + emp_name + some_more_parameters, { asynchronous:true, evalScripts:true, onF

[Rails] Ajax request render from RJS and handling Flash notices

2009-08-02 Thread Alpha Blue
I created an rjs file to handle an ajax request to update my index view for a particular view template I'm working with. I'm using.. In the index.js.rjs file: page.replace_html("headstart" , :partial => "headstart" , :object => @teamnames) page.replace_html("teamheaders" , :partial => "teamhead

[Rails] Ajax request and redirection

2009-07-04 Thread Bharat Ruparel
This is most likely my lack of understanding of Ajax concepts, but I cannot find an answer on the web for the following question: "Should an ajax request triggered by a specific page must come back to the same page?" Here is my jQuery handler in the jsTree that communicates with my server side R

[Rails] Ajax request executing well on localhost but not on server

2009-04-04 Thread Erwin
I have an Ajax request from a form it executes well in dev n locahost... (mongrel) and on local Apache server (http://aelmat.local) but it's not executing when running on remote host server what could be the issue ? where should I look for ? erwin --~--~-~--~~~---

[Rails] Ajax Request with Select Box

2009-03-05 Thread Geekyra
Hi All, sorry for my silly question How to make an Ajax Request when the item in Select Box change ? So when I change the item in select box I like to partial refresh some of my page with new item choosen in select box... but I want to do it without pressing any button at all so actually I wan

[Rails] ajax request and html response

2008-11-05 Thread znz
Hello, I wrote some action returns html response rendered with layout. It is default rendering behavior. When ajax request and rails 2.0.x, it returns html response rendered with layout. But rails 2.1.x, it returns html response without layout. When ajax request with format=html explicitly, it r