# XMLHttpRequest and render :js not working

**URL:** <https://www.ruby-forum.com/t/xmlhttprequest-and-render-js-not-working/189741>\
**Category:** Rails\
**Created:** [June 6, 2010, 10:17pm UTC](https://www.ruby-forum.com/t/xmlhttprequest-and-render-js-not-working/189741 "2010-06-06T22:17:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fipa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fipa](https://www.ruby-forum.com/u/fipa)\
**Post date:** [June 6, 2010, 10:17pm UTC](https://www.ruby-forum.com/t/xmlhttprequest-and-render-js-not-working/189741/1 "2010-06-06T22:17:28Z")

</div>

Hi,

So I uploaded a file to my server using an XMLHttpRequest and I wanted  
to notify the client of the url of the uploaded file.

So in my app on the server side, I use for testing purposes:

render :js =\> “alert(‘File URL: blabla’);”

but even though the client receives the successful response (traced in  
Firebug), the alert doesn’t show up. What could prevent that?

Thanks in advance for your insights,
