Remote function and returning value

Hi,

I am making a call to remote_function, which updates a variable that I
need to use in my current view. Call is happening, but the variable is
not getting updated?

PS: And to avoid missing template error , in my remote function I am
doing this: render :nothing => true, :layout => false.

Please Suggest.
Regards,
Sandeep G