Hi, This query is a replica of the link http://railsforum.com/viewtopic.php?id=51231. As I was unable to get any replies from the rails forum, I am posting the same here. I have developed an app using Rails 3. I have a table made to look like a calendar. I wanted to know if there were any methods or gems to acheive right click(context menu) action on the dates WITHOUT javascripts or jQuery. Please note, I am developing this on Rails 3. -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Norbert Melzer
2012-Nov-14 07:35 UTC
Re: right click or Context Menu in ruby without javascript
That has nothing to do with rails. Also I dont believe it would be possible without Javascript in general. Am 14.11.2012 07:46 schrieb "nikhil rn" <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>:> Hi, > This query is a replica of the link > http://railsforum.com/viewtopic.php?id=51231. > > As I was unable to get any replies from the rails forum, I am posting > the same here. > > I have developed an app using Rails 3. I have a table made to look > like a calendar. I wanted to know if there were any methods or gems to > acheive right click(context menu) action on the dates WITHOUT > javascripts or jQuery. Please note, I am developing this on Rails 3. > > -- > Posted via http://www.ruby-forum.com/. > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Colin Law
2012-Nov-14 09:05 UTC
Re: right click or Context Menu in ruby without javascript
On 14 November 2012 07:35, Norbert Melzer <timmelzer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> That has nothing to do with rails. Also I dont believe it would be possible > without Javascript in general.It can also be done with html5 I believe, if the user is using an html5 compliant browser. http://davidwalsh.name/html5-context-menu Colin> > Am 14.11.2012 07:46 schrieb "nikhil rn" <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>: > >> Hi, >> This query is a replica of the link >> http://railsforum.com/viewtopic.php?id=51231. >> >> As I was unable to get any replies from the rails forum, I am posting >> the same here. >> >> I have developed an app using Rails 3. I have a table made to look >> like a calendar. I wanted to know if there were any methods or gems to >> acheive right click(context menu) action on the dates WITHOUT >> javascripts or jQuery. Please note, I am developing this on Rails 3. >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> -- >> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
nikhil rn
2012-Nov-14 09:34 UTC
Re: right click or Context Menu in ruby without javascript
Norbert Melzer wrote in post #1084375:> That has nothing to do with rails. Also I dont believe it would be > possible > without Javascript in general. > Am 14.11.2012 07:46 schrieb "nikhil rn" <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>:Thank you for your reply.. -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
nikhil rn
2012-Nov-14 09:39 UTC
Re: right click or Context Menu in ruby without javascript
Colin Law wrote in post #1084386:> On 14 November 2012 07:35, Norbert Melzer <timmelzer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> That has nothing to do with rails. Also I dont believe it would be possible >> without Javascript in general. > > It can also be done with html5 I believe, if the user is using an > html5 compliant browser. > http://davidwalsh.name/html5-context-menu > > ColinThank you Colin for your reply. HTML 5 is my last resort. I am afraid it may reduce the scope of number of users. I was wondering if I can get the right click handler of the browser. So that, it would solve my problem. -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Matt Jones
2012-Nov-14 12:32 UTC
Re: right click or Context Menu in ruby without javascript
On Wednesday, 14 November 2012 04:06:21 UTC-5, Colin Law wrote:> > On 14 November 2012 07:35, Norbert Melzer <timm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> > wrote: > > That has nothing to do with rails. Also I dont believe it would be > possible > > without Javascript in general. > > It can also be done with html5 I believe, if the user is using an > html5 compliant browser. > http://davidwalsh.name/html5-context-menu > > Colin > >Note that the HTML5 part of that only gets you the *menu* - actually doing anything when things are selected from the menu is only possible with JS. --Matt Jones -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/5rTnSewCfAUJ. For more options, visit https://groups.google.com/groups/opt_out.
Colin Law
2012-Nov-14 13:13 UTC
Re: right click or Context Menu in ruby without javascript
On 14 November 2012 12:32, Matt Jones <al2o3cr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Wednesday, 14 November 2012 04:06:21 UTC-5, Colin Law wrote: >> >> On 14 November 2012 07:35, Norbert Melzer <timm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > That has nothing to do with rails. Also I dont believe it would be >> > possible >> > without Javascript in general. >> >> It can also be done with html5 I believe, if the user is using an >> html5 compliant browser. >> http://davidwalsh.name/html5-context-menu >> >> Colin >> > > Note that the HTML5 part of that only gets you the *menu* - actually doing > anything when things are selected from the menu is only possible with JS.Good point. Colin -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
nikhil rn
2012-Nov-21 05:21 UTC
Re: right click or Context Menu in ruby without javascript
I finally decided to take up the right click using HTML5. Thank you all. I referred David Walsh website for the same(http://davidwalsh.name/html5-context-menu). Is there a way to remove the system generated right click options? -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Walter Lee Davis
2012-Nov-21 16:35 UTC
Re: right click or Context Menu in ruby without javascript
On Nov 21, 2012, at 12:21 AM, nikhil rn wrote:> I finally decided to take up the right click using HTML5. Thank you all. > I referred David Walsh website for the > same(http://davidwalsh.name/html5-context-menu). Is there a way to > remove the system generated right click options?You could trap them in JavaScript and return event.preventDefault() to stop the normal response from happening. Have a google for the right way to trap a right-click -- it''s very popular in anti-piracy scripts. Walter> > -- > Posted via http://www.ruby-forum.com/. > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.