2009/3/24 JT <cpac...@gmail.com>: > > I can't get it working. > > here's the code > > new Ajax.Updater('usersOnline','online.php', { method:'get', > asynchronous:true, evalScripts: true }); > > in online.php > return $usersList."<script>alert('javascript test');</script>"; > > it's not working, any ideas? > > >
Drop the evalJS stuff. Don't put <script> tags around the JS. DO use an appropriate header in PHP... header('Content-type: application/javascript'); -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---