On Oct 24, 2010, at 1:51 AM, Amit Tomar wrote:
Walter Davis wrote in post #956547:
On Oct 23, 2010, at 1:48 AM, Amit Tomar wrote:
If you make that confirm statement return into a function that sends
an Ajax request, or simply a normal full-page request to a URL, then
sure. Here's the most basic example of what I mean:
<a href="/model/action/id" onclick="return confirm('Do you really
mean
it?');">Play Global Thermonuclear War</a>
If the confirm returns false, then the onclick event dies in place,
and your URL is not requested by the browser.
Walter
Thanks Walter for your response but is it possible to achieve what i
want
http://www.ruby-forum.com/topic/275695#new
In given code i would like to call javascript instead of that win32
messagebox and that js confirmbox response's in my ruby programme
Are you running this on a Web server? It sure doesn't look like it
from here. What is your environment, and why is this in Rails if it's
talking to a Windows filesystem directly?
Walter
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.