Displaying 20 results from an estimated 1000 matches similar to: "browser-crash with Ajax.Updater"
2006 Aug 25
3
RJS Error: Element.update is not a function
Hi,
I have implemented some RJS code and I have the same exact code in 2
different places. In one place I get the error "Element.update is not
a function" and the other place works fine. Any idea why this error is
coming? Breaking my head.
-Vinod
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
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 Mar 21
16
Javascript Code inside an Ajax response
Hi, i wish to run a function that came inside my Ajax response. I read
that i have to use the evalScripts to make this, but still i couldn''t
make it work. The error said that my function isn''t declared. I look
at the Sergio Pereira tutorial about use the var xxx = function() but
still doesn''t work.
Someone could help me?
In the response this is the code:
for (var i =
2006 Apr 18
7
[Prototype] evalScripts not working for me
I think I am experiencing the variable scope problem with evalScripts.
I have this block of code being returned from an Ajax.Updater call,
as shown by FireBug or one of those other Firefox plugins. I have
tried to boil it down to the minimum code.
<script type="text/javascript">
test = function() { alert("test"); };
</script>
<table
2006 Mar 10
3
[Prototype] understanding evalScripts
Hi,
I have a misunderstanding of what I though evalScripts would do vs
what it actually does. I''m wondering if there''s a way that I can make
it do what I want.
my initial page:
<html>
<head>
<script...
var page = ''initial'';
...
<body>
<div id="replaceMe"
<script...
page = ''in
2007 Nov 19
1
Running a script after evalScripts has completed
Hello,
(I originally posted this on the Prototype-Core group by mistake,
sorry)
I am running a request via Ajax.Updater with evalScripts = true and an
onComplete function.
I find that my onComplete function executes before the script content
has been evaluated. Looking through prototype.js (v. 1.5.1) this seems
to be caused by the scripts being executed as part of this line
(1352):
2006 Jun 28
2
Assign CSS class to Link to Remote
I''m trying to get link_to_remote to assign a CSS class to the link it
generates. My code is as follows:
<%=
link_to_remote "Show Full Info",
:update => "fullcontact" + reparray.last.to_s,
:url => "/cm/full_contact/" + reparray.last.to_s,
:classname => "contactlink"
%>
Which produces this HTML:
<a href="#"
2006 Mar 01
9
ajax doesn''t show at the right place
Hi,
I use link_to_remote to create a link to trigger an
ajax, things work fine, a new rhtml is created,
however, the newly created rhtml doesn''t replace my
old zone, it shows instead on top of my old
zone...Does someone know why???
my code is like
<table>
<tr><td colspan="2"><a href="#" onclick="new
Ajax.Updater(''zone1'',
2006 Apr 12
11
innerHTML and scripts not running
Hello,
I''m having an issue with getting embedded javascript code to actually
run when loaded via an Ajax.Request() call and the callback function
inserts the generated HTML and js code to my current page. It seems
that the javascript code is not properly parsing.
For example, I''m using the following function showinfo() to return
some html code.
function showInfo(go_url){
2006 Apr 15
11
evalScripts in IE
My Ajax.Updater is set for evalScripts and it receives this:
<script language="JavaScript">complete();</script>
It works in FF but not IE. Is the above code the proper way to return
scripts?
Thanks!
2007 Oct 12
5
Evalscripts
Hey all,
I''m just checking my understanding. Would someone be so kind as to
comment on the following?
Event.observe(''this_link'', ''click'', function() {
AJAX.Updater(''that_div'', ''my.php'', { evalscripts: true}) });
<div that_div>
</div>
///////
my.php
2006 Mar 04
29
Getting RJS / EgdeRails working
Hi,
using Rails 1.0 on windows (without svn yet) I just wrote "rake
freeze_edge". Are the RJS-templates already included then ? When I write
"rake update_javascripts" I receive this error:
svn: ''.'' is not a working copy
Any tipps for a newbie on how to get the update done (if neccessary) ?
thx
Jan
2005 Oct 16
13
More than one parameter with link_to_remote
Hi all,
I''m trying to pass more than one parameters using link_to_remote, but I''m
getting a behaviour that seems quite strange to me. Here''s the code:
link_to_remote ''some text'',
:update => ''form'',
:method => ''get'',
:url => { :action =>
2007 Oct 24
3
addClassName and removeClassName
Hi, and sorry for the noob question!
I have an unordered list of 4 links where the links use Ajax.Updater
in the onclick:
onclick="new Ajax.Updater(''ajaxarea'', ''link1.php'', {asynchronous:true,
evalScripts:true }); return false;"
How would I go about using addClassName and removeClassName to show
the current link?
Thanks for any help with this.
2006 Aug 09
2
Can :before and :success move from view file into .rjs file?
Within the RJS template is there a way to specify when the visual_effect
should occur?
I''m trying not to repeat the :before and :success blind_down
visual_effect statements throughout my views.
It seems like the rjs templates can only take visual effects statements
in the form of
page.visual_effect :blind_up, ''divname''. I can''t figure out how to add
2008 Mar 22
4
Ajax.Updater not fully work in IE7
My code snapshot: correct work in FF , Opera and Safari, but in IE7 -
isn''t return result
<form action="test.php" method="POST">
<div id="country" style="border: 1px solid #ccc; width: auto"></div>
<br/>
<a href="javascript:getTest()">test</a>
</form>
<script
2006 Mar 22
2
problem with Ajax.Updater evalscript and firefox
Hello there people, im having a problem with the Ajax.Updater evalscripts, i
fill and div with a form that i get with the Ajax.Updater, that form had a
javascript validation, i put evalScripts true but when i get the form i had
an unexpected close in the firefox, i had a long time looking the answer but
nothing yet, somebody with the same problem? or the answer?
greets
--
//
// Ing. Francisco
2005 Dec 12
7
possible opera+prototype bug in evalscripts?
Hi all,
I use the ajax updater with evalscripts=true.
When I load HTML with included <script> tags, I get this error in Opera 8.51:
------------------- snip -----------------------------
http://ccml.uni-weimar.de/
Timeout thread: delay 10 ms
Error:
name: EvalError
message: Statement on line 258: Illegal use of eval
Backtrace:
Line 258 of linked script
2006 Jun 24
6
Ajax fade effect
I have a list of categories, when I delete one of them, I want that item
to fade and then get removed. So I do the following:
1. home_controller:
def delete
@category = Category.find_by_name(params[:name])
@element_id = @category.name
Category.delete_all(["name = ?", @category.name])
end
2. delete.rjs:
if @element_id
page.visual_effect :fade, @element_id
2005 Dec 31
9
RJS Templates not conducting callbacks
I''ve run across a weird problem with RJS that I''m trying to figure out:
I have an application that was running 0.13.1 that I recently upgraded
to Rails 1.0. I wanted to use RJS templates, so I installed the plugin
and updated my prototype javascript file via ''rake update_prototype.''
I attempted to test the templates out via the following code, but the
AJAX