Displaying 20 results from an estimated 60000 matches similar to: "AJAX call fails on production"
2007 Dec 29
2
Simply Rich Authenticator Released
Hi,
I have developed a mini Rails app using Rails 2.0.2, RESTful authentication
and Acts as State Machine. It has the following features:
1. Login
2. Logout
3. User Activation
4. Forgot Password
5. Reset Password
You can check out the code from:
svn checkout *http*://simply-rich-authenticator.googlecode.com/svn/trunk/simply-rich-authenticator-read-only
Happy New Year!
--
2008 Feb 05
9
ActiveResource / Creating an API
Hi,
I am currently looking at creating an api for a new RESTful app built
using rails 2.0. The two solutions I have come across seems to be
ActiveResource and ActionWebServices.
Although there seems to be plenty of documentation for the older
ActionWebServices (both online and in books), this does not seem to be
the case for ActiveResource.
Does anyone know of any decent articles / screencasts
2010 Jul 08
4
testing authentication with basic_auth
hi, I''ve got an api which is using
authenticate_or_request_with_http_basic
What are you guys using to test this? I''m using rspec, and before I
was using rspec-rails, I was using authorize from Rack::Test to do the
authentication. However, authorize clearly doesn''t work when using
rspec-rails, so I''m wondering what everyone else is doing?
--
You received this
2008 Jun 12
2
SslRequirement Problem
Hello everyone,
I''m pretty new to the RoR''s thing and am having a problem setting up
SslRequirement plugin.
I have installed the SslRequirement plugin and added it to my
application_controller.rb with include SslRequirement
However, when I try and do "ssl_required :process_payment"
I get the following error:
undefined method `ssl_required'' for
2008 Apr 29
1
Making new Ajax.Updater within a previous Ajax.Updater call
I have a button which calls a form via Ajax.Updater:
<a href="javascript:void()" onclick="createMessage()">Create Message</
a>
<script>
function createMessage() {
new Ajax.Updater( ''content'', ''message.php'', { method: ''post'' } );
}
</script>
This is the message.php file:
<html>
<head>
2007 Jun 19
2
Session Problem with Ajax Call
Hai,,
I am totally new to Ajax. I am trying to use ajax in my project. Its
working fine, I am getting problem while session time expires. If
session expires means i am redirecting to login page.Onclick i am
calling on ajax function. It will goto controller and it will check the
session if session expires then it has to goto login page.
On ajax call i am updating the div. If session
2007 Dec 26
7
Which is faster: searching in a file or in a database
Hello,
I have ten CVS file with about 20000 rows in each.
If I want to search in these files for example get every row that has
the word "apple" i a column, which is faster:
If I read all these ten files into the database and then making search
in the database
or
If I search directly in the files for this inforamtion?
Thank you! Please motivate your answer and include a code to make
2006 Mar 05
2
AJAX call chain and DRY questions
Hey
I have a page with a drop list. When the user selects an option in the
drop I call an action in the controller with ajax. Now, in the
controller, I gather some data from the db, but how do I present these
data in a nice way? I really need to make use of the html helpers, but
these clearly are not available in the controller. How do I output the
array that I have gathered?
My view page
2007 Oct 23
0
AJAX call and data return through JSON in ROR
Hello all,
This could be a tootally boonie question. i am trying to do this very
simple app.
I have a simple form where user enters data,once entered, i add that
data in a div ''data'' . which works fine but i want to save that data
perodically(all the data in DIV ''data'') or if user hits a save button
with each data row.
Now one thing i am not sure about that
2006 Oct 25
7
rest nested resources - Help please
I can''t believe I''m back again with another rest question. I did go through
the peepcode podcast.
I thought though you can have multiple nested resources, is that not true ?
I have this set up
map.resources :candidates do |candidate|
candidate.resources :canbackgrounds
candidate.resources :canpositions
end
I just coded up teh canpositions and now all
2006 Aug 29
1
Scope problem with form_remote_tag, ajax?
Hi all,
I have tracked an odd behavior down to what I think is an issue of
scope. In short, when I use form_remote_tag to establish an AJAX form,
my database fields don''t get populated when performing an edit on the
record. Those same fields will get populated using start_form_tag and
no AJAX. I think that Ruby can''t find the local object that represents
the database
2007 Jul 08
2
problems using ajax call inside a json object.
Hi all im new at this list, i have a problem when i make an ajax call
inside a json object.
Whe i test using IE works but when i use firefox nothing happend.
you can see the problem at:
http://mandela.no-ip.info/prototypeproblem/index.html
I appreciate any kind of help / suggestion
thanx in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2009 Nov 01
0
Ajax calls in application.js (authenticity_token problem?)
Hi,
I have a long list (~50) of items which should each be clickable and
will send an Ajax request to the server. Now, each item will be calling
the same action, just with a different id.
Ideally this looks like a clear case of putting the Ajax javascript in
application.js. It''s in one place, just call a single function onclick
and pass through the id.
However there are 2 issues:
1. I
2006 Oct 16
4
has many :through, accessing join model attribute (newbie)
from the rails recipes i have a has_many through "working".
I can list a user and what magazines he subscribes to. but I can''t
seem to figure out how to get the other attributes from subscriptions.
(like last_renewed_on)
reader_controller.rb
def list_reader
@readers = Reader.find(1)
end
----------
list_readers.rhtml
<dl>
<dt><%= readers.name %> </dt>
2006 Feb 01
1
Combine Ajax call with an effect.
Hello list.
I am a newbie with prototype, scriptaculous and with JS.
Right now, I have a successful ajax call that appears in my div
(thedescription) when I mouse over the link, and disappears when I
click on the link. What I would like to have happen is to combine
this with an effect (ie, onclick="new
2007 Jul 19
0
ASP.NET AJAX Web Services and Prototype Version 1.5.1.1
I wanted to use a web service published with ASP.NET AJAX from
Prototype Version 1.5.1.1
It''s easier to call an ASP.NET AJAX web service by using an ASP.NET
AJAX page with a proxy class, but I have an application which still
has many Classic ASP pages and using Prototype seemed like a better
idea than hand coding the the interactions, or figuring out how to
include all the right ASP.NET
2006 May 23
0
after Ajax.Call
Hi all. I have situation that I sent AJAX.call and after getting
answer i execute javascript code from that answer. The problem
is that code has calls to variables from global namespace
(library that I inlude in my header of my page -e.g. prototype,
scriptaculo.us) and this made wrong, on FF i see that variable
does''n exist - name error. e.g javascript code from Ajax Call
2007 Jun 27
1
Prototype 151; Ajax.Updater vs Ajax.Request and evalScripts=true
Why does Ajax.Updater() and Ajax.Request() differ in how evalScripts
is handled? Or doesn''t it, and I just got it wrong?
I have a module that generates an Ajax request to insert dynamic
content into a div. The dynamic content is plain vanilla HTML with
some inline javascript *functions*
I cannot get the browser to honor/execute/see those javascript
functions when I use .Request()
If I
2006 Mar 17
0
Returning from Ajax call - "redirect_to error"
I have Ajax commenting on my site, well, I''m trying to get it working.
It worked fine locally, but when I posted to the server, I''m getting an
"Application Error (Rails)", and I checked the logs, and it has:
(stack trace too deep)
/usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:447:in
`url_for''
2007 Feb 19
0
Ajax.Update nested within Ajax.Request
Hi everyone,
I have a script below that submits a form using Ajax.Request which is
working fine. onComplete or onSuccess though, I''d like it to refresh
the div form (formCapture), but so far I can''t get it to work. The
script runs to into the onComplete stage, but the div isn''t refreshed.
Can anyone help with this?
Regards,
Robert Hofmeyr
function subForm() {
new