Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I'm trying to populate a hidden <div> with an AJAX call, and then show that <div> with a scriptaculous effect. The AJAX works, but the <div> appears suddenly without the slide effect. Thanks for any help.
- Here's the relevant HTML:
- <div id="admin_populated_user_form" style="display: none">
- <div>
- </div>
- </div>
- And the Javascript:
- var sel = $('user_sel');
- sel.onchange = function () {
- var val = $F('user_sel');
- if( val != 0 ) {
- var ajax = new Ajax.Updater(
- 'admin_populated_user_form',
- '/admin/users/fetch_user',
- { method: 'get',
- parameters: 'user=' + val
- }
- );
- Effect.toggle( 'admin_populated_user_form', 'slide' );
- }
- }
- Thanks for any help.
Add Comment
Please, Sign In to add comment