[Rails] Re: 2 button_to functions for file downloads

2009-02-13 Thread Me
Anyone have any ideas why the second button works but the first button is giving me the above error? On Feb 12, 10:27 pm, Me chabg...@gmail.com wrote: For some reason the first button is giving me this for a response: try { $(notification).update(h1 style='display: inline' class='mes'Site

[Rails] Re: 2 button_to functions for file downloads

2009-02-12 Thread Me
Anyone have any idea why one button does a submit and the other does a file download? On Feb 11, 9:36 pm, Me chabg...@gmail.com wrote: I have2button_tofunctionsthat download2different files.  the first one acts like a submit and the second on actually does downlaod thefile.  Does anyone know

[Rails] Re: 2 button_to functions for file downloads

2009-02-12 Thread bill walton
On Thu, 2009-02-12 at 17:29 -0800, Me wrote: Anyone have any idea why one button does a submit and the other does a file download? In general, element behavior in any page is a function of the browser parser's ability to make sense of the code we feed it. Post your code and we might be able

[Rails] Re: 2 button_to functions for file downloads

2009-02-12 Thread Chris Habgood
Application.rhtml: % form_tag( {:action = 'mltn6p'} ) do -% div id=page div id=header h1Wendia Site entry Program/h1 /div div id=menu fieldset legendSelect your Shelf/legend %= select(:node, :id, $shelves,{:prompt ='Select Equipment'},{

[Rails] Re: 2 button_to functions for file downloads

2009-02-12 Thread Me
For some reason the first button is giving me this for a response: try { $(notification).update(h1 style='display: inline' class='mes'Site 123 was built/h1); $(downloads).show(); } catch (e) { alert('RJS error:\n\n' + e.toString()); alert('$ (\notification\).update(\h1 style=\'display: inline\'