Displaying 20 results from an estimated 20000 matches similar to: "Rails + AJAX + mootools"
2009 Jun 14
3
Basic AJAX Response (Mootools)
Hi,
I''ve done AJAX calls to Rails'' Controllers before yet never required to
generate a response back to the view. In this respect, I have tried to
keep it moronically simple and just add a node to see that it works, yet
the response doesn''t come through / isn''t interpreted as it should. Long
story short, code :
// Have to use Mootools to integrate a
2008 Jan 23
0
MooTools javascript integration for Merb
Hey all,
Just to say after some discussion on the IRC the other day there
seemed to be some support for creating a mootools plugin for Merb. So,
I have started a merb-mootools project on rubyforge to bring mootools
integration to Merb in the form of some nice easy helpers (think rails
style prototype helpers). We are literally just starting this project,
and would welcome anyone who
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
2008 May 07
2
Inserting authenticity token into AJAX request params
Hi all. I am trying to find a way to insert an authenticity_token
into the params of an Ajax request before it gets sent.
I''ve got this much:
Ajax.Responders.register({
onLoading: function(req){
if ((req.options.method == ''post'') && !
Object.keys(req.options.parameters).include(''authenticity_token'')){
---->
2008 Jun 20
3
problems using effects.morph && effect.appear
Hi,
i wrote a sliding navigation using effect.morph and effect.appear. I
don''t know why but there are a couple of problems:
1. effect.appear seems not to work in IE6
2. The effects aren''t really "smooth".
3. When using effect appear. The new element triggers onmouseover the
onmouseout function....
It''s a small script:
www.rhizom.nl/volkan/scriptalicous
2007 Nov 07
5
Prototype error - iterator is not a function
I''m starting to learn to use Prototype (v1.5.1.1) along with Mootools.
However I keep bumping into the same problem:
All of the inserts result in the error "iterator is not a function" at
line 542 of Prototype
memo = iterator(memo, value, index);
Am I missing something obvious here? I''m wondering if there''s an
incompatibility between Prototype and Domino
2007 May 11
15
Simulating onmouseleave and onmouseenter with Prototype
Hello.
I spent an hour or three chasing down a desired effect that mootools
implements, namely the simulation of onmouseleave and onmouseenter
events.
Why?
Lets say you have a Menu. A ul element that contains many li elements.
If you want to have a function (maybe an effect) fire when the mouse
moves outside of the ul, you are out of luck. Observe the mouseout
function like so:
2006 Feb 21
2
Ajax reqest and http status
Hi all. I ''m using Ajax request on my site and i need to show some message wneh AJAX call is running, (sometimes it happen so slow). I find that object AJAX.RESPOND is very usefull here, but sometimes when i need to do AJAX CALL my ajax call is redirect and i want to when it happen, is there way to find status of ajax call? i don''t know where I can find this property in
2006 Feb 26
3
Ajax training in Austria: "Ajax richtig verwenden"
Heya all,
I?m doing a one-day training on everything Ajax mainly focusing on
script.aculo.us, but naturally including Prototype and a look on Ruby
on Rails Ajax capabilities as well, plus a look on our product
fluxiom - on March 17, here in Vienna, Austria (for german speaking
audiences).
Here are the (in-german) details:
In diesem eint?gigen Seminar zeigt Ihnen Thomas Fuchs wie Sie die
2006 Mar 20
1
AJAX in conjunction with partials
All,
Trying to clear up some confusion on my part.
If I make an Ajax call using Ajax.Request and in the controller method
that I call, I do a render (:partial => ''whatever.rhtml''), should I
expect that ''whatever.rhtml'' will be rendered in the browser or not?
Put another way, is it in any way reasonable for me to think that
Ajax.Request + partial render
2006 Apr 25
5
to ajax or not to ajax
before I started building my latest rails app, I made the decision to make
good use of ajax. My reasonsing was that users would benefit from the
quicker page updates - the application provides various different types of
insurance quotes, and has several multi-page forms and reports that can be
drilled down 5 or 6 levels deep in some cases - so it seemed like a good
candidate for ajax
Now
2006 Apr 01
3
Gracefully degrading Ajax AND Drying up actions
Still a semi-newbie, but so far I''ve managed to solve most things with a
bit of help from the Agile book, some googling around, and a bit of
trial-and-error, but I''m really stuck with this one (very much an Ajax
newbie):
I know how to gracefully degrade an AJAX newpost type call so it can
appear inline or (for those without JS support) go to a new page (put an
":href
2006 Apr 10
1
RE: Prototype Ajax - How to pass my own params toonComplete ?
You need a closure.
onComplete: function (response) { NamedActionResponseHandler(theElement,
response); }
Is that what you mean?
Greg
> -----Original Message-----
> From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-
> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Erin Brewer
> Sent: Monday, April 10, 2006
2006 Mar 03
1
Dynamic JS updating / data-preloading using ajax
Hi all,
I''m building an application which uses mostly ajax to update the
sections of the page. Now I''ve come to some thoughts on how to make the
ajax-handling more efficient / less buggy.
Currently, when the page loads up, I start some "new Ajax.Updater"-stuff
to fill some sections with content from the db. I also registered
watchers which also start nearly the same
2006 Aug 16
2
Q on AJAX with respect to DRY
I have a shopping cart function, and I''d like to set it up to update the
cart with AJAX. My AJAX call will return a view that displays the cart
items.
My question is with regards to keeping things DRY. When the user goes to
"view cart", that page needs to display the cart, then the cart display
needs to update with AJAX calls when items are added from that page. It
would
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
2006 Feb 13
2
[PATCH] Allow generic autocompleter (Ajax.Watcher)
Hey. Below is a patch to allow generic Ajax.Autocompleters. Basically
it''s for people who wanna be able to watch an input for changes, but
don''t want it to pop up an autocompleter box below. Useful for live
previews, that kind of thing.
Someone''s gonna have to fix the tabstops. I couldn''t be arse to work out
how to make vim do the softtabs properly. Spaces for
2006 Apr 19
2
How to use multiple buttons on the same form with AJAX?
Hi,
We are trying to use multiple submit buttons in the same form to tie to
different actions on the server side.
For example:
<input name="commit" type="submit" value="edit">
<input name="commit" type="submit" value="cancel">
<input name="commit" type="submit" value="test
2006 Jan 29
1
Works with iframe, but not ajax... ?!?
Hello all,
I''ve run into trouble attempting to replicate something in ajax that
worked when done with an iframe...
In both cases I have a table inside a div that is being periodically
refreshed every few seconds... The 1st column of each row in the table
contains a link to a DHTML popup menu. I have the popup menu working in
the ajax version.
The problem is that in the ajax version
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