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


see

my

meager effort here:
http://mod3.net:8888/jsrs22/test.htm

I noticed that even though I use

location.replace()


(where possible) it
still fills my browser history, the back

button


gets

a very long history
very quickly.. :) I noticed this on IE6

and


NN7 on

WinXP, others saw
similar behavior with browsers on MacOSX

and


Linux.

Question: does the dynapi SODA have this

problem,


and if not, how did you
avoid it?

Other than that, I'm happy to report that

I am


making slow progress
creating a Tcl equivalent of the server

side


for

SODA, using the PHP code
as a template.

--JYL







-------------------------------------------------------

This SF.net email is sponsored by: The

SF.net


Donation Program.
Do you like what SourceForge.net is doing

for


the

Open
Source Community?  Make a contribution,

and


help

us

add new
features and functionality. Click here:

http://sourceforge.net/donate/


_______________________________________________

Dynapi-Dev mailing list
[EMAIL PROTECTED]


http://www.mail-archive.com/[EMAIL PROTECTED]/


__________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears


http://launch.yahoo.com/promos/britneyspears/




-------------------------------------------------------

This SF.net email is sponsored by: SF.net

Giveback

=== 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]/





------------------------------------------------------- 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