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
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
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
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.
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
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
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
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
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
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
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
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
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
--~--~-~--~~~---
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
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
15 matches
Mail list logo