I believe we have a
dynapi.document.disableContextMenu() function that
should disable context menu. 

I for one prefer preventContextMenu() to
disableContextMenu() can we make that change in
keeping with things like preventBubble(), etc or
should we just leave it as is?

To create you're own context menus you'll have to
listen to onclick and check for the right mouse button
or should we go ahead and create a oncontextmenu
event?


--
Raymond Irving

--- Peter Romianowski <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> shouldn't that also be provided as a standard
> DynAPI-function?
> Like dynapi.preventHistory()? While at it a function
> dynapi.preventContextMenu() could be added too,
> which catches
> the oncontextmenu-events and the right-click (for
> older browsers)?
> That is *really* useful when working with with a
> custom ui made
> of dynlayers. Another idea could be to provide
> something like:
> 
> DynLayer lyr = new DynLayer();
> lyr.enableContextMenuClick();
> lyr.addEventListener ( {
>       oncontextmenu : ...
> });
> 
> I think that this would be very useful to a lot of
> users. If wanted
> I can provide the functionality since I already have
> it (partly) in
> my own libraries.
> 
> Regards,
> Peter
> 
> 
> 
> Raymond Irving wrote:
> 
> > Ok. We'll provide a new function from the
> server-side
> > libraries called wsPreventHistory(). When this
> > function is called it will prevent the client from
> > clicking the back button.
> > 
> > --
> > Raymond Irving
> > 
> > --- Jacob Levy <[EMAIL PROTECTED]> wrote:
> > 
> >>Ah, and have that sent to the server side as a
> >>hidden element, so that the
> >>server can generate the "history.go(1)"...
> >>Convoluted but works.
> >>
> >>--JYL
> >>
> >>
> >>>I don't believe this should be the default
> >>
> >>behaviour.
> >>
> >>>But we should make is an easy "switch", like
> >>>ioElement.PreventHistory(true) or some such
> >>>
> >>>----- Original Message -----
> >>>From: "Raymond Irving" <[EMAIL PROTECTED]>
> >>>To: <[EMAIL PROTECTED]>
> >>>Sent: Wednesday, October 29, 2003 12:42 PM
> >>>Subject: Re: [Dynapi-Dev] browser history and RPC
> >>>
> >>>
> >>>
> >>>>Ok.
> >>>>
> >>>>When using ioelmsrv.jscript.asp to send data to
> >>
> >>the
> >>
> >>>>client you can use the addJSCommand() function
> to
> >>
> >>have
> >>
> >>>>the "history.go(1);" command execute on the
> >>
> >>client.
> >>
> >>>>This will prevent the user from clicking the
> back
> >>>>button.
> >>>>
> >>>>Should we add this behavior ioelmsrv as the
> >>
> >>default?
> >>
> >>>>In this way users will not be able to click the
> >>
> >>back
> >>
> >>>>button.
> >>>>
> >>>>--
> >>>>Raymond Irving
> >>>>
> >>>>
> >>>>--- Doug Melvin <[EMAIL PROTECTED]>
> >>
> >>wrote:
> >>
> >>>>>Can you elaborate on this?
> >>>>>I am not clear as to how this snippet is being
> >>
> >>used.
> >>
> >>>>>
> >>>>>----- Original Message -----
> >>>>>From: "Raymond Irving" <[EMAIL PROTECTED]>
> >>>>>To: <[EMAIL PROTECTED]>
> >>>>>Sent: Wednesday, October 29, 2003 9:53 AM
> >>>>>Subject: RE: [Dynapi-Dev] browser history and
> >>
> >>RPC
> >>
> >>>>>
> >>>>>>when you send javascript down to the client
> >>
> >>use
> >>
> >>>>>><script>
> >>>>>>   history.go(1);
> >>>>>></script>
> >>>>>>
> >>>>>>--- Daniel Tiru <[EMAIL PROTECTED]> wrote:
> >>>>>>
> >>>>>>>Hi mate!
> >>>>>>>
> >>>>>>>How do you prevent using the backbutton?
> >>>>>>>
> >>>>>>>
> >>>>>>>/Daniel
> >>>>>>>
> >>>>>>>-----Original Message-----
> >>>>>>>From:
> >>
> >>[EMAIL PROTECTED]
> >>
> >>[mailto:[EMAIL PROTECTED]
> >>
> >>>>>On
> >>>>>
> >>>>>>>Behalf Of Raymond
> >>>>>>>Irving
> >>>>>>>Sent: den 29 oktober 2003 15:16
> >>>>>>>To: [EMAIL PROTECTED]
> >>>>>>>Subject: Re: [Dynapi-Dev] browser history
> >>
> >>and
> >>
> >>>>>RPC
> >>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>Yes SODA has the same problem.
> >>>>>>>
> >>>>>>>Normally when I'm writing dynamic apps I
> >>
> >>prevent
> >>
> >>>>>the
> >>>>>
> >>>>>>>users from using the browsers back button.
> >>
> >>IMO
> >>
> >>>>>it's
> >>>>>
> >>>>>>>not good to have the back button active
> >>
> >>when
> >>
> >>>>>you're
> >>>>>
> >>>>>>>doing dynamic stuff.
> >>>>>>>
> >>>>>>>
> >>>>>>>--
> >>>>>>>Raymond Irving
> >>>>>>>
> >>>>>>>
> >>>>>>>--- Jacob Levy <[EMAIL PROTECTED]> wrote:
> >>>>>>>
> >>>>>>>>I'm trying to learn how to write a SODA
> >>
> >>server
> >>
> >>>>>>>side
> >>>>>>>
> >>>>>>>>for Tcl, and in the
> >>>>>>>>process got JSRS up and running
> >>>>>>>>
> >>
> >>(http://www.ashleyit.com/rs/jsrs/test.htm)
> >>
> >>>>>>>>with tclhttpd as a smaller milestone. You
> >>
> >>can
> 
=== message truncated ===


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to