Re: [Proto-Scripty] Error: Support for eval(code, scopeObject) has been removed. Use |with (scopeObject) eval(code);| instead.

2013-08-27 Thread Walter Lee Davis
Once you find a way to duplicate the error, please do post the non-working 
example on a public Web server somewhere, so we can click a URL and watch it 
fail. A Zip attachment on a mailing list is sort of like a fart in church. 
Nobody is willing to acknowledge it.

Walter

On Aug 27, 2013, at 8:27 AM, javi68yt2 wrote:

> Hi
> You are right again!
> 
> I've attached an example like you suggested
> and I couldn't reproduce the error...
> 
> I'll do wider test...
> Thank you very, very much !!
> 
> El lunes, 26 de agosto de 2013 16:01:34 UTC+2, Walter Lee Davis escribió:
> 
> Please take a moment to create a cut-down example of this issue, and post it 
> on a server somewhere so we can see it in action. If your callback code has 
> to hit a server endpoint, provide a static HTML file at that address, so we 
> can be sure that nothing being sent by your server (CGI, PHP, etc.) is at 
> fault for not providing the correct headers. This should not take you too 
> long, because it's an extraction, not new code. 
> 
> There are two immediate benefits to this exercise: first, you may find (as I 
> often do) that while extracting the code, you find the true source of the 
> problem; and second, you will get the benefit of many eyes on the problem 
> should it choose this moment to become repeatable. 
> 
> Walter 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Prototype & script.aculo.us" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to prototype-scriptaculous+unsubscr...@googlegroups.com.
> To post to this group, send email to prototype-scriptaculous@googlegroups.com.
> Visit this group at http://groups.google.com/group/prototype-scriptaculous.
> For more options, visit https://groups.google.com/groups/opt_out.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Proto-Scripty] Error: Support for eval(code, scopeObject) has been removed. Use |with (scopeObject) eval(code);| instead.

2013-08-26 Thread Walter Lee Davis

On Aug 26, 2013, at 5:40 AM, javi68yt2 wrote:

> 
> Thanks for your kind reply. Maybe you're right.
> I've checked my code and I ascertained that only the first click fails, the 
> following are good.
> 
> Here is an example:
> 
> echo " class='Inventario2_fontBlueBold' colspan=2> src='/MODULOS/Inventario2/images/Gaplicacion.png' height=22px width=22px> 
> Mostrar Dependencias entre Aplicaciones";
> 
> I've always use this piece of code in several places without problem till now.
> And now, I always get an error on the first click after page is loaded. No 
> matter on what TD I click first.
> 
> For now, I'll accept my correction, until I can make a broader change in my 
> code...
> 
> PS:
> What is a fact is what FF says about the support for eval(code, scopeObject) 
> has been removed... 

Please take a moment to create a cut-down example of this issue, and post it on 
a server somewhere so we can see it in action. If your callback code has to hit 
a server endpoint, provide a static HTML file at that address, so we can be 
sure that nothing being sent by your server (CGI, PHP, etc.) is at fault for 
not providing the correct headers. This should not take you too long, because 
it's an extraction, not new code. 

There are two immediate benefits to this exercise: first, you may find (as I 
often do) that while extracting the code, you find the true source of the 
problem; and second, you will get the benefit of many eyes on the problem 
should it choose this moment to become repeatable.

Walter

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Proto-Scripty] Error: Support for eval(code, scopeObject) has been removed. Use |with (scopeObject) eval(code);| instead.

2013-08-26 Thread javi68yt2

Thanks for your kind reply. Maybe you're right.
I've checked my code and I ascertained that only the first click fails, the 
following are good.

Here is an example:

echo " 
Mostrar Dependencias entre Aplicaciones";

I've always use this piece of code in several places without problem till 
now.
And now, I always get an error on the first click after page is loaded. No 
matter on what TD I click first.

For now, I'll accept my correction, until I can make a broader change in my 
code...

PS:
What is a fact is what FF says about the support for eval(code, 
scopeObject) has been removed... 

El viernes, 23 de agosto de 2013 15:53:20 UTC+2, Walter Lee Davis escribió:
>
> Can you show an example where this fails? I just used this feature with 
> 1.7.1, and you had me scared, so I just double-checked on the latest 
> Firefox. I don't see any errors coming from evalScripts() there. Perhaps 
> the issue is the type of function you are evaluating? Perhaps there is 
> another level of indirection added outside the evalScripts method, and you 
> don't need to provide it yourself as you have done. 
>
> Walter 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Proto-Scripty] Error: Support for eval(code, scopeObject) has been removed. Use |with (scopeObject) eval(code);| instead.

2013-08-23 Thread Walter Lee Davis
Can you show an example where this fails? I just used this feature with 1.7.1, 
and you had me scared, so I just double-checked on the latest Firefox. I don't 
see any errors coming from evalScripts() there. Perhaps the issue is the type 
of function you are evaluating? Perhaps there is another level of indirection 
added outside the evalScripts method, and you don't need to provide it yourself 
as you have done.

Walter

On Aug 23, 2013, at 9:01 AM, javi68yt2 wrote:

> Hello all
> 
> Please, excuseme my very bad English.
> 
> I'm using a legacy version of prototype.js (1.4.0) and I cannot upgrade yet.
> 
> Since I've upgraded FF to the last version (23.0 beta), my scripts fail with 
> above message when I issue:
> 
> new Ajax.Updater(destiny, URL, {evalScripts: 'yes' });
> 
> After googling a lot, I've fixed :
> 
>   evalScripts: function() {
> return this.extractScripts().map(eval);
>   },
> 
> like this:
> 
>   evalScripts: function() {
> return this.extractScripts().map(function(script) { with(this){ return 
> eval(script);} }); // function(script) came from v1.5.0, the rest is 
> suggested by FF
>   },
> 
> 
> PS:
> Sorry for this naive solution or if it is fixed in some other place but in 
> last version of prototype.js (1.7.1) still remains:
> 
>   function evalScripts() {
> return this.extractScripts().map(function(script) { return eval(script); 
> });
>   }
> 
> Does this help someone else?
> Cheerio!


> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Prototype & script.aculo.us" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to prototype-scriptaculous+unsubscr...@googlegroups.com.
> To post to this group, send email to prototype-scriptaculous@googlegroups.com.
> Visit this group at http://groups.google.com/group/prototype-scriptaculous.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prototype-scriptaculous+unsubscr...@googlegroups.com.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
Visit this group at http://groups.google.com/group/prototype-scriptaculous.
For more options, visit https://groups.google.com/groups/opt_out.