Displaying 20 results from an estimated 1000 matches similar to: "using the evalScript option on Ajax.Updater"
2005 Aug 29
9
can a class find out it''s instance name?
Hi friends - a javascript question....
Does the prototype object add some way for a class to find out the
variable name of its instance variable?
Or does javascript have some built in way to do this?
This is confusing to describe - but if I define a variable as some
object:
var myVariable= new Widget(''fdfa'');
can some built-in method inside the Widget class be
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
2005 Sep 20
1
radio buttons and event obvsering
Hi,
I made a little utility class that turns on a particular div when a
radio button is clicked - a RadioButtonDivToggler. As the name
hopefully suggests, when a radio button from the same group is clicked,
a different div is made visible and the others are hidden. In essence,
it toggles on (makes visible) the div associated with the radio button
from a group that you clicked. However,
2005 Jul 18
13
in place text edit
I''ve written a pretty nice Flickr style in place text edit JavaScript
control based on the Script.aculo.us library.
API is like this:
<span id="editme">Edit me!</span>
<script>
new InPlaceEditor($(''editme''), ''url/to/action'');
</script>
Background changes to gray as mouse hovers over the text (like flickr)
and the
2006 Feb 28
5
browser-crash with Ajax.Updater
Hi,
on my page I start an ajax-request which returns rhtml-code (I use
Rails) looping over some objects. When I place the following code within
the loop my browser (FF) crashs:
<script>
var set_std_objekt = function (id) {
new Ajax.Updater(''divname'', ''/dosomestuff'', {
asynchronous:true,
evalScripts:true
})
}
</script>
<a
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 Oct 25
24
InPlaceEditor scrolls to top in Firefox?
When I click an InPlaceEditor field in Firefox 1.0.7, the page scrolls
up to the top. That''s disconcerting, and often ends up with the
editable field out of the viewable pane. I can duplicate this on both
Mac and PC. Is there a way to prevent this? Even the demo at
http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor does
this.
Jay Levitt
2006 Jan 27
2
Position.clone() duplicate
Haven''t seen anyone ask about this yet...
why are there 2 Position.clone() methods in Prototype.js? It seems that
the second would overwrite the first, and the second has lots more
options. Am I missing something?
Thanks,
rahul
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2005 Aug 01
2
function.prototype.bind return value?
Quick question - how come the function.prototype.bind doesn''t allow for
return values? Am I missing some basic understanding of how this works?
I searched and couldn''t find an answer.
Specifically, I''m binding an object method to an existing form''s
onSubmit, but it still actually submits the form, refreshing the page -
which is not what I want.
If change
2006 Mar 31
3
refreshing JS libraries on client?
Hi folks,
So I''ve got this app built on prototype, with a bunch of extra JS
classes to do what we want. Now the problem is, when I make a change to
one of those JS files (or an upgrade to prototype itself), how do I
ensure that the client browsers refresh their cache with the latest JS?
Clearly I want the browse to cache the large JS files, but I also want
that cache to expire at
2005 Oct 27
5
Problem passing event object
Hi all,
I''m having a problem with an Ajax.Request. I can''t figure out how I
can pass an event (an onclick on a checkbox) which causes the Ajax
Request, to be recognized in an onSuccess function. Here''s my
simplified code:
var RequiredField = Class.create();
RequiredField.prototype = {
initialize: function(chkbox) {
this.chkbox = chkbox;
this.chkbox.onclick =
2006 Mar 31
2
evalScript && onComplete
Howdy all,
I have an Ajax.Updater with evalScript = true and I would like to
execute some javascript *after* the scripts in the answer have been
eval''ed.
How can I do that ?
I''ve tried with onComplete, but onComplete seems to be fired before
the inner scripts.
Thanks,
Nicolas
2005 Oct 19
1
js not executed after ajax.updater -- evalScript:true not a solution
Hi.
I have a <div> on a page that I replace with a new one using
Ajax.Updater. Inside this newly placed div, I am using classes and
behavior.js to launch various Ajax things and scriptaculous effects.
None of them, however, get triggered after the update. They also
fire no javascript errors or anything of the kind.
I''ve seen the option evalScripts with Ajax stuff-- but
2006 Apr 14
6
character encoding in ajax submit
Hey all,
Anyone got some quick advice on international character submission via
Prototype''s Form.Serialize?
The base scenario:
I set the charset on my page to ISO-8859-1, which seems to be what
everyone uses. If I submit a regular form with a standard webpage, I
get international characters (like an accented "e", or and AE legature)
encoded as 1-byte ascii code
2005 Oct 18
4
responseText Vs responseXML
This is a newbie question.
If I have a xml file that I am opening using Ajax.Request, then the response is trapped using responseText.
Now this response is a set of xml tags, if I need to traverse through it using DOM, I am not able to use the getElementByTagName method?
If I write my own ajax function, then when I do t.responseXML.getElementByTagName(''items'') it works but
2005 Dec 28
6
Sudden Javascript Console noise in firefox
I have been using the latest version of Firefox and Scriptaculous for about
a week now, with no problems.
Now I get a lot of noise in the javascript console out of the blue:
http://img481.imageshack.us/img481/7913/screen4nt.jpg
--
============================
Brian Peiris
Brampton, Ontario, Canada
brianpeiris-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org or
2006 Feb 17
6
Ajax.Updater and loading new javascript functions.
I working on rebuilding my CMS software using AJAX, and have run into
a couple problems I cant seem to find the solution to.
I am loading up a new component of my system using the Ajax.Updater,
and it loads up the HTML fine but as the component I am loading up is
fairly complicated I want to load up its relevant javascript
functions as well at the same time.
I am using the
2007 Nov 18
0
evalScript usage for script with src attribute
Is there anyway to do
new Ajax.Request(''mailing-list-users.html'',
{
method: ''get'',
evalScripts: true,
onSuccess: function(transport){
var response = transport.responseText || "no response text";
$(''content'').innerHTML = response;
},
onFailure: function(){ alert(''Something went
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 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