Hello, all. Have one a question. When i, for example, on "page 1" page, i have js in html:
<% if session[:download_link_for_pricing] %> Event.observe(window, 'load', function() { if (confirm("Download new Pricing?")) { location.href = "<%= session[:download_link_for_pricing] %>"; } }); <% end %>
If i have current session link, i must download file from session. But when i say "ok", file download started, but i'm resolved to different page, not stay at "page 1". Apologize for my english.