Displaying 20 results from an estimated 5000 matches similar to: "Problems with RJS & Ajax"
2006 Mar 08
4
Event.Observer - (was: Ajax.Autompleter not working on IE)
See if I can stir up a little life with a demo. I can''t believe that
Ajax.Autocomplete doesn''t work on IE, so I *must* be doing something
wrong.
Trying to figure this out I added some alerts to control.js and it
seems that IE is not getting the onkeypress events.
So, here''s a demo:
http://hank.org/demos/form.html
That contains two fields with onkeypress events:
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
2007 Jul 16
4
Problem with keypress event handling
Hi all,
we are writing a cross browser Javascript control that enhances the
HTML text input element in order to accept only digits (more or less).
Supposing that ''domText'' is the DOM element corresponding to the HTML
text input, we wrote the following:
Event.observe(domText, "keypress",
this.onKeyPress.bindAsEventListener(this));
where
this.onKeyPress =
2006 Jan 09
2
Using RJS templates with observe_form
Hi there,
I''ve been checking out RJS templates, and have been trying to use them
with the observe_form helper.
However, the form values are no longer being passed in the params (as
soon as I point the action to the non-rjs and add the ''update'' clause
everything is working again). Is this expected?
Cheers,
Dave
-------------- next part --------------
An
2006 Jun 19
2
Autocompleter enhancement feature request
Hello,
I have created a ticket for an enhancement of the autocompleter to show the
options immediately when the field gets focus. Right now at least one
character must be typed for autocomplete to kick in.
http://dev.rubyonrails.org/ticket/5435
I have also made some code changes directly in the script
Event.observe(this.element, "blur", this.onBlur.bindAsEventListener(this));
2006 Aug 31
2
Event.observe problem
Hi everyone!
I came across and interesting problem with prototype Event.observe.
Take this code for example:
<script type="text/javascript" src="cropper/lib/prototype.js"></script>
<script language="JavaScript"><!--
function handler(e) {
if (document.all) { e = window.event; }
var key;
if (document.layers) key = e.which;
if
2006 Mar 22
2
observe_form without ajax?
This betrays my lack of javascript knowledge, but is it possible to
watch a whole form for changes and activate some javascript when those
changes occur without any remote request?
That is, I want to do exactly what observe_form does, but without the
ajax call actually happening. I realize I could use the form_tag
:onchange parameter, but that seems to be incapable of doing things like
2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
host static anyterm content locally,
url parameterize anyterm rows/cols/general param
update spec/makefile
Ideally I wanted and tried hard to put all this into a
seperate ovirt-server--anyterm subpackage, but we cannot
'reopen' the ovirt server virtual host defined in
ovirt-server.conf to add the neccessary rewrite rules. it would
be nice to figure out a way to do this
---
2006 May 13
2
Using RJS in views without ajax
Hi!
I can use RJS in views like this (without using ajax):
<%=link_to_function("switch fields",
update_page do |page|
page.insert_html :before, ''date'', date_select(''exhibition'', ''date'')
page.remove ''date''
end) %>
Is there a way to move this RJS code into a function to separate file?
.js files are not parsed
2006 Jul 08
1
Ajax, RJS, and Standard Form Errors
Hi all,
I''m trying to take the standard scaffold and add a bit for ajax to it. I
have a two column page with the list on the left and the right side is
reserved for the create/edit actions. On a successful save my rjs executes
and updates the list view on the left and returns the right side to a "home"
page. However, if one of the model validations fail I use rjs ro
2006 Apr 21
3
rjs in multiple ajax page
Sorry for the long explanation but I''m having trouble integrating rjs into my
form page. Here''s my page:
<div id="posts">
<ul id="post_list"><%= render :partial => ''list_results'', :collection =>
@posts %></ul>
<p><%= link_to_remote(''+'',
:url => {:action =>
2007 Jan 17
1
AJAX GET requests returning "uninitialized constant Mime::RJS"
Hey all, I thought this was working until recently. I''m using
link_to_remote:
link_to_remote("More info", :url => user_path(user),
:update =>
"show_#{user.id}",
:method => :get) #
NOTE: "GET" request
This then updates a hidden div ("show_123"
2006 Nov 30
12
Disable autocomplete (Ajax.Autocompleter) on the fly.
I''m sure there is an easy way to do this, but it is one of those things
that is incredibly difficult to search for.
How can I disable an ''Ajax.Autocompleter'' element from working ''on the
fly''? I have a page where I''m using two (I know it''s crazy)
Ajax.Autocompleter elements and once one of them has got a result I
want the other field
2006 Mar 16
2
question about ajax/rjs and redirection
i don''t even know if this is possible, so I''ll just ask.
say I have a remote form. the form data gets submitted to the backend via
AJAX. if there is a validation error in the form, i handle that on the AJAX
side. however, if the form validates, I''d like to redirect the browser to a
different page. Will a redirect_to work with an AJAX call or do I have to
handle that
2006 Jun 02
1
Is AJAX/RJS secure enough for enterprise data hanling?
Sure, AJAX and RJS provide snappier performance by reducing the hits on the
server. But, is it easily hacked in a RoR application? Can it be made as
secure as a non-ajax web -app?
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory alternative."
--- E.Taft Benson
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 02
0
Where do AJAX Callbacks go into RJS templates...
I''ve successfully created a super long link_to_remote() in my view
template that has lots of AJAX call backs to update my page. I want
to put these into RJS templates, but I can not figure out how to do
so. Are things like :loading, :success, :failure, :complete moot when
using RJS because this is the logic you put into the action from the
link_to_remote?
- TIA, Ken
2008 Nov 07
1
RJS show as 'try...' in AJAX update
Hi guys,
I am trying to display Javascript code after an Ajax call. It is
executing the JS code, but it''s also displaying it. It shows as:
try {
alert(...);
} catch ..
...
my controller code:
render :update do |page|
page.alert message_var
end
my Javascript code:
new Ajax.Updater("div_id", my_controller_url,
{ asynchronous: true,
evalScripts: true,
2006 May 25
2
Newbie AJAX rjs syntax question
I''m brand new to Ruby and to Rails, and I''m running through Pragmatic''s
"Agile Development" V.2 book and am having problems with the rjs files
in their tutorial.
First problem:
page[:cart].replace_html :partial => ''cart'', :object => @cart
This line stopped the AJAX request. The action completed without
trouble, but when it hit
2006 Jul 03
0
AJAX modal dialog using RJS
Fellow railsers
I spent some time in the past week trying to figure out a way to
create a modal dialog that can submit a form and not perform a full
page refresh. I solved my problem but I''m wondering if others out
there have had need for this and how they solved it? I''m not
completely happy with having to hack for IE6 but what else is new. I
blogged about it here:
2007 Feb 07
0
Ajax rjs - escape single quote in returned string ?
I replace an outer html as following :
page.insert_html(:after, ''hidden_values'', "<INPUT TYPE=HIDDEN
id=''new_title'' NAME=''new_title'' VALUE=''#{params[:new_title]}'' />")
but if params[:new_title] string has a single quote like "can''t get
all the string"
the html is shorten..
what''s