#38 doc
broberts80

String.evalScripts to have same scope warning as Ajax.Updater

Reported by broberts80 | April 22nd, 2008 @ 04:28 PM | in Inline documentation

I was recently working on an issue arising from my use of the String.evalScripts() method, and had some difficulty until I stumbled upon the documentation for Ajax.Updater. The Ajax.Updater documentation makes mention of a common scoping issue with the use of Ajax.Updater which is related to the the use of String.evalScripts.

I think it would be a great benefit to the users of the Prototype API and its documentation (many folks, I'm sure) to include a similar explanation (or a link to it) in the documentation for String.evalScripts. If not for this reason, then for reason of decreasing support of concerns related to the API (i.e. save the support team & developers some time).

More specifically, it would be really helpful if the Ajax.Updater section titled "About evalScripts and defining functions" was included (or linked to) in the documentation on String.evalScripts, since it appears that the exact

same concern applies in both cases.

Here are the related links in the current documentation:

Ajax.Updater: http://prototypejs.org/api/ajax/...

String.evalScripts: http://www.prototypejs.org/api/s...

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket