Questions Recently Answered by vlambert /users/recently_answered/765 Questions Recently Answered by vlambert Mon, 01 Dec 2008 12:11:37 -0800 $5.00 - what are phobias? http://guruza.com/question/501/reward-5.00/929 what are phobias? Fri, 16 Mar 2007 22:17:05 -0700 $25.00 - I want to call a javascript function when a user closes a popup window (I'm n... http://guruza.com/question/497/reward-25.00/921 I want to call a javascript function when a user closes a popup window (I'm not doing anything evil. I just want to clear out some session stuff)... but NOT when that window is reloaded. In IE I can use onunload to do it. But in Firefox it runs whenever the window is reloaded. Any idea how to rig it? Thu, 08 Mar 2007 08:38:00 -0800 $25.00 - I want to have my Javascript inject some HTML on the fly but I hate to put HT... http://guruza.com/question/500/reward-25.00/920 I want to have my Javascript inject some HTML on the fly but I hate to put HTML in my js because it belongs in the view, not the public folder. I thought I could be slick and do something like this in a view to get the HTLM stored in a js variable: htmlVar = '<%= render :partial => "some/partial" %>'; Unfortunately this gets screwed up by the line-returns in the partial. Is there a way to make this work or achieve a similar result using RJS or the Minus-R plugin? Thu, 15 Mar 2007 12:29:55 -0700