Displaying 20 results from an estimated 4000 matches similar to: "Ajax.Updater with evalScripts: true strips curly braces"
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
2007 Nov 13
0
Ajax.Updater evalScripts:true
Hello,
i habe a problem to include <script> code in div container.
function ajaxUriDivJava(url, z)
{
try{$(z).innerHTML="<centrer><img src=''http://
static.mymir.org/wait30trans.gif''></centrer>";}catch(e){}
var pars = '''';
var myAjax = new Ajax.Updater( {success: z}, url,
{ method:
2006 Jan 29
0
BUG in PROTOTYPE when set evalScripts: true - Firefox crashes
Hi all.
I''m using Ajax Updater with evalScripts set to true and there must be a bug in prototype because when I call function firefox crashes and exit. I can''t even see Firefox javascript console. So I try it under Opera and Opera javascript Console show me this:
http://localhost:8090/mysite/processSearch?pQuery=a
Timeout thread: delay 10 ms
Error:
name: EvalError
message:
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
2007 May 30
0
Ajax.Updater : About evalScripts and defining functions
I have a problem using ajax.updater, I''ve already read the article
available here http://prototypejs.org/api/ajax/updater but I cannot
implement the recommanded solution.
I''m using "big" script with loads of functions and classes and it
doesn''t work in the loaded page (with ajax.updater).
The script I''m trying to include is available here :
2003 Nov 05
1
objects inside curly braces
Hello,
I am running a program in r that calls a function, which calls another
function, which calls another etc. These functions are of the form:
example<- function(x,y,z)
{x, y, and z are defined within curly braces like this}
Here's my question. To start the main function, I input as an initial
parameter a matrix of regressors of the form:
MyMatrix<-cbind(this.one,that.one)
2008 Jan 07
3
Problem with passwords surrounded by curly braces
Hello,
one of my users set his password to something surrounded by curly braces,
and promptly all access to his mailbox was refused. After looking through
the logs I found an entry "Unknown password scheme xxxx", where "xxxx"
is the user's password, but without the curly braces.
I then browsed through the documentation and there was explained that it
is possible to prefix
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):
2005 Aug 23
2
using the evalScript option on Ajax.Updater
Hi all,
I''m having trouble with the evalScript option on the Ajax.Updater. I''ve
removed everything except for the ajax call and a simple alert to try
and debug it. It doesn''t appear that the regex is finding my JS in the
response...
I''m doing an update request and the response is coming back correctly to
the updateConent function as this string:
<script
2016 Jul 26
2
[PATCH] Add support for the 'unless' matcher in the dynamic layer.
Even if it still did add overhead, it seems perfectly reasonable, from a
user's perspective (namely mine), that if I introduce unnecessary narrowing
matchers to my chain that there may be a performance penalty.
The ability to do the following easily outweighs any performance issues for
me:
anyOf (
/* hasName("..."), */
hasName("...")
)
though C++ not allowing
2006 Feb 22
3
[OT] Curly Quotes on a Mac
There''s such a Mac-friendly group here, I thought I might get some
guidance. I''m happily developing everything on my PowerBook, and loving
it. Yeah, TextMate is way cool. But all my clients keep sending me copy
in Microsoft Word format and the curly quotes, ellipses, dashes, etc.
turn into question marks.
This might be overreaching, but is there some way to open the Word
2016 Jul 26
2
[PATCH] Add support for the 'unless' matcher in the dynamic layer.
I was wondering if there is any objection to removing the 2-element minimum
on the eachOf, anyOf and allOf matchers.
It is frustrating when playing with matchers to have to edit significant
amounts of code to be able to temporarily go from 2 to 1 matcher inside an
any- or allOf matcher.
And overall it feels very "un-set-theory"-like.
The change was made here:
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 Aug 11
2
Seeking Assistance
My company is currently evaluating the Prototype javascript library for
possible use in a new project. I discovered what may or may not be a
problem with both the 1.3.0 and 1.4.0_pre2 versions of the library,
centered around the ScriptFragment regex.
The question: is this an appropriate forum for seeking help with this?
Or is there another to which someone might direct me to?
Thanks in
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 Jul 02
6
remote form w/ evalScripts:true
Hello. I want to select an item from a select list and have that
result in an ajax call that updates two sections on the page. Here is
the code in the controller
def create
...
render :update do |page|
page.replace_html ''list_items'', :partial => ''lists/list_items''
page.replace_html ''add_item'', :partial =>
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
2008 Apr 21
4
Does String.evalScripts() work on well-formed script tags?
Does String.evalScripts() work when the opening SCRIPT tag of a SCRIPT
block contains common attributes? I''ve tried and it does not appear
to be working. Here''s an example:
<script type="text/javascript" charset="ISO-8859-1"
language="JavaScript">
//<![CDATA[
<!--
alert(''look! it works!'');
//-->
//]]>
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
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