similar to: Ajax.Updater : About evalScripts and defining functions

Displaying 20 results from an estimated 2000 matches similar to: "Ajax.Updater : About evalScripts and defining functions"

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 Mar 03
1
Ajax.Updater with evalScripts: true strips curly braces
When I return an html fragment to Ajax.Updater with evalScripts: true set, and there is a script fragment with curly braces in it (a function declaration or an object literal), the curly braces are getting stripped out somehow, and leaving me with invalid JS. I think this is the case because I put an alert in the evalScripts method right before the "return eval(script)" and it had no
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:
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!''); //--> //]]>
2007 May 25
1
form_remote_tag :condition
I am using the following validation prototype-based js library: http://tetlaw.id.au/view/javascript/really-easy-field-validation What I am trying to do is upon submitting a form via AJAX, I want it to meet the conditions of the validation of the function validateMe() If it passes, go ahead and continue and push the form information via an AJAX call. This is what I have: <% form_remote_tag
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 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 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 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
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 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 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
2008 Feb 13
8
comparing ajax.updater div in js
This is really bugging me no matter what I''m trying. In javascript, I''m using the ajax.updater, and it (obviously) writes back out to a div. I want to then compare what was echoed out into this div (which came from the php file I listed in ajax.updater) with a string. test should equal "SomeString" because that is what is being echoed out to
2006 Jul 05
1
Prototype Based Validation with form_remote_tag
Hello, I am attempting to use validation.js from http://tetlaw.id.au/view/blog/really-easy-field-validation-with-prototyp e/ with form_remote_tag. The rails form helper binds the needed Ajax.Updater to the onSubmit action of the form. The validation.js also attempts to bind to the onSubmit of the form. The logic that is needed is if( valid.validate() ) { ...Ajax.Updater... } where valid
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!
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 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
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
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 Feb 16
2
javascript node with Ajax.Updater
Hi there, im having a problem with the Ajax.Updater, im using the Ajax.Updater to get an divider, inside the div i have a javascript node that i use to do javascript stuff, the problem is when i get the divider i get whole the html but not the javascript node, thats a bug? *anybody know what''s happening?* -- // // Ing. Francisco J. Calderón S. //