ajax updated element not processing controls but will process effects

29 views
Skip to first unread message

Lochinvar

unread,
Jul 4, 2012, 4:42:14 AM7/4/12
to Prototype & script.aculo.us
Can someone perhaps explain why the following happens:
When loading a page I use php to print the body tag depending on login
status. if logged in I use an ajax.updater in the onload event to
update an element - not elegant I know, but anyway.

The file that updates the element content has both an InPlaceEditor
and an Effect.BlindDown. The blind works but the inPlaceEditor
doesn't. If I copy the code directly into the main page, both work
perfectly.

it seems that a "new InPlaceEditor" (controls) instance needs to be
instatiated on the initial page load... but Blind (effects) don't need
to be. Why is this and is there a workaround that does not require a
full main-page reload?

thnx
Lochinvar

Lochinvar

unread,
Jul 4, 2012, 10:36:35 AM7/4/12
to prototype-s...@googlegroups.com

Apologies - I did not check the Prototype reference properly.
FYI:  Prototype's  Ajax.Updater has an option called evalScripts that defaults to false (i/e it does not evaluate inline <script> tags) - and my controls where instantiated in script tags.
Here's the relevant Prototype ref page for further info: http://api.prototypejs.org/ajax/Ajax/Updater/

Reply all
Reply to author
Forward
0 new messages