Jump to content

How can i DIsable GO/BACK of IE in StandAloneServerMode with UNIGUI?


Guest

Recommended Posts

Message from: "UniGui"

 

Hi Farshad,

In WebApplication with UniGui StandAlone Server mode,user can input

something ,and update data to DB,

if these use go/back of IE will cause to show incorrect information , How

can I disable the function GO/BACK of IE?

 

.

 

Link to comment
Share on other sites

Message from: "Farshad Mohajeri"

 

"UniGui" wrote in message

news:uMkvEKE9LHA.1984@anaxagvs227...

> Hi Farshad,

> In WebApplication with UniGui StandAlone Server mode,user can input

> something ,and update data to DB,

> if these use go/back of IE will cause to show incorrect information , How

> can I disable the function GO/BACK of IE?

 

We will try to implement it in future releases, but I don't think we can

complelety disable it.

 

issue #593

 

You can also search internet for a solution in Javascript and add it to

MainForm's Script.

 

 

.

 

Link to comment
Share on other sites

Message from: "UniGui"

 

test fail....

I add these code to UniMAINForm.script :

//-------------------------------------------------------------

function KeyDown(){ //Disable the righr button of =

mouse\Ctrl+n\shift+F10\F5\backspace =20

//alert("ASCII code is=A3=BA"+event.keyCode); =20

if ( (window.event.altKey)&& =20

( (window.event.keyCode=3D=3D37)|| //disable Alt+=A1=FB =20

(window.event.keyCode=3D=3D39) ) ){ //disable Alt+ =A1=FA =20

alert("Can't use ALT+Arrow keys to forward or back web =

page=A3=A1"); =20

event.returnValue=3Dfalse; =20

} =20

if ((event.keyCode=3D=3D8) || //disable backspace =20

(event.keyCode=3D=3D116)|| //disable F5 refresh =20

(event.keyCode=3D=3D112)|| //disable F1 refresh =20

(event.ctrlKey && event.keyCode=3D=3D82)){ //Ctrl + R =20

event.keyCode=3D0; =20

event.returnValue=3Dfalse; =20

alert("can't to use Shortcuts=A3=A1"); =20

} =20

if ((event.ctrlKey)&&(event.keyCode=3D=3D78)) //disable Ctrl+n =20

{ =20

alert("ctrl + n"); =20

event.returnValue=3Dfalse; =20

} =20

if ((event.shiftKey)&&(event.keyCode=3D=3D121)) //disable shift+F10 =

=20

{ =20

alert(" shift+F10 "); =20

event.returnValue=3Dfalse; =20

} =20

if (window.event.srcElement.tagName =3D=3D "A" && =

window.event.shiftKey) =20

=A1=A1=A1=A1=A1=A1{ =20

window.event.returnValue =3D false; //disable shift+left button of =

mouse to open new webpage =20

=A1=A1=A1=A1=A1=A1} =20

=20

if ((window.event.altKey)&&(window.event.keyCode=3D=3D115)){ =

//disable Alt+F4 =20

=A1=A1=A1=A1=A1=A1=A1=A1alert('Alt+F4'); =20

=

//window.showModelessDialog("about:blank","","dialogWidth:1px;dialogheigh=

t:1px"); =20

return false; =20

} =20

} =20

document.onkeydown =3D KeyDown =20

=20

//------------------------------------------------------------------

 

runtime,open HTTP://127.0.0.1:8077 IN IE ,WEBPAGE STOP AT =20

 

Maybe you can help me........

 

"Farshad Mohajeri" =D0=B4=C8=EB=CF=FB=CF=A2 =

news:fbckBgI9LHA.3152@anaxagvs227...=20

 

 

"UniGui" wrote in message=20

news:uMkvEKE9LHA.1984@anaxagvs227...

> Hi Farshad,

> In WebApplication with UniGui StandAlone Server mode,user can input=20

> something ,and update data to DB,

> if these use go/back of IE will cause to show incorrect information , =

How=20

> can I disable the function GO/BACK of IE?

 

We will try to implement it in future releases, but I don't think we can =

 

complelety disable it.

 

issue #593

 

You can also search internet for a solution in Javascript and add it to=20

MainForm's Script.=20

 

 

Link to comment
Share on other sites

Message from: "UniGui"

 

Additional,The IE in My pc is enable JS......

 

"Farshad Mohajeri" дÈëÏûÏ¢ news:fbckBgI9LHA.3152@anaxagvs227...

 

 

"UniGui" wrote in message

news:uMkvEKE9LHA.1984@anaxagvs227...

> Hi Farshad,

> In WebApplication with UniGui StandAlone Server mode,user can input

> something ,and update data to DB,

> if these use go/back of IE will cause to show incorrect information , How

> can I disable the function GO/BACK of IE?

 

We will try to implement it in future releases, but I don't think we can

complelety disable it.

 

issue #593

 

You can also search internet for a solution in Javascript and add it to

MainForm's Script.

 

.

 

Link to comment
Share on other sites

Message from: "Farshad Mohajeri"

 

I don't think you need such a complex JS code here.=20

Google for it and I think there are more simple solutions to disable =

back button.

"UniGui" wrote in message =

news:L%23%235uAP9LHA.1980@anaxagvs227...

test fail....

I add these code to UniMAINForm.script :

//-------------------------------------------------------------

function KeyDown(){ //Disable the righr button of =

mouse\Ctrl+n\shift+F10\F5\backspace =20

//alert("ASCII code is=A3=BA"+event.keyCode); =20

if ( (window.event.altKey)&& =20

( (window.event.keyCode=3D=3D37)|| //disable Alt+=A1=FB =20

(window.event.keyCode=3D=3D39) ) ){ //disable Alt+ =A1=FA =20

alert("Can't use ALT+Arrow keys to forward or back web =

page=A3=A1"); =20

event.returnValue=3Dfalse; =20

} =20

if ((event.keyCode=3D=3D8) || //disable backspace =20

(event.keyCode=3D=3D116)|| //disable F5 refresh =20

(event.keyCode=3D=3D112)|| //disable F1 refresh =20

(event.ctrlKey && event.keyCode=3D=3D82)){ //Ctrl + R =20

event.keyCode=3D0; =20

event.returnValue=3Dfalse; =20

alert("can't to use Shortcuts=A3=A1"); =20

} =20

if ((event.ctrlKey)&&(event.keyCode=3D=3D78)) //disable Ctrl+n =20

{ =20

alert("ctrl + n"); =20

event.returnValue=3Dfalse; =20

} =20

if ((event.shiftKey)&&(event.keyCode=3D=3D121)) //disable =

shift+F10 =20

{ =20

alert(" shift+F10 "); =20

event.returnValue=3Dfalse; =20

} =20

if (window.event.srcElement.tagName =3D=3D "A" && =

window.event.shiftKey) =20

=A1=A1=A1=A1=A1=A1{ =20

window.event.returnValue =3D false; //disable shift+left button of =

mouse to open new webpage =20

=A1=A1=A1=A1=A1=A1} =20

=20

if ((window.event.altKey)&&(window.event.keyCode=3D=3D115)){ =

//disable Alt+F4 =20

=A1=A1=A1=A1=A1=A1=A1=A1alert('Alt+F4'); =20

=

//window.showModelessDialog("about:blank","","dialogWidth:1px;dialogheigh=

t:1px"); =20

return false; =20

} =20

} =20

document.onkeydown =3D KeyDown =20

=20

//------------------------------------------------------------------

 

runtime,open HTTP://127.0.0.1:8077 IN IE ,WEBPAGE STOP AT =20

 

Maybe you can help me........

 

"Farshad Mohajeri" =D0=B4=C8=EB=CF=FB=CF=A2 =

news:fbckBgI9LHA.3152@anaxagvs227...=20

 

 

"UniGui" wrote in message=20

news:uMkvEKE9LHA.1984@anaxagvs227...

> Hi Farshad,

> In WebApplication with UniGui StandAlone Server mode,user can input=20

> something ,and update data to DB,

> if these use go/back of IE will cause to show incorrect information =

, How=20

> can I disable the function GO/BACK of IE?

 

We will try to implement it in future releases, but I don't think we =

can=20

complelety disable it.

 

issue #593

 

You can also search internet for a solution in Javascript and add it =

to=20

MainForm's Script.=20

 

 

Link to comment
Share on other sites

Message from: "UniGui"

 

Ok. No such complicated way, I changed JS code in the same place =

replace as follows:=20

 

----------------------------------at the RunTime, in the IE =

document area full with check the error, the detail of error =

is:=CD=F8=D2=B3=B4=ED=CE=F3=CF=EA=CF=B8=D0=C5=CF=A2

 

=D3=C3=BB=A7=B4=FA=C0=ED: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT =

6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; =

..NET CLR 3.0.30729; MALN; InfoPath.2; BRI/2; Media Center PC 6.0; =

..NET4.0C)

=CA=B1=BC=E4=B4=C1: Fri, 8 Apr 2011 07:36:35 UTC

 

=CF=FB=CF=A2: '_S_ID' =CE=B4=B6=A8=D2=E5

=D0=D0: 8

=D7=D6=B7=FB: 1560

=B4=FA=C2=EB: 0

URI: http://127.0.0.1:8077/ext-3.3.0/ext-unigui-1.2.1-min.js

 

 

=CF=FB=CF=A2: '_S_ID' =CE=B4=B6=A8=D2=E5

=D0=D0: 8

=D7=D6=B7=FB: 1560

=B4=FA=C2=EB: 0

URI: http://127.0.0.1:8077/ext-3.3.0/ext-unigui-1.2.1-min.js

 

For this problem, what do you think?=20

 

The reason is FRAMEWORK? Or I caused the JS script?

 

 

Link to comment
Share on other sites

Message from: "Farshad Mohajeri"

 

I will check it. Currently I'm merging the framework and can not test =

any reported case.

 

 

"UniGui" wrote in message =

news:qVfdKBc9LHA.1984@anaxagvs227...

Ok. No such complicated way, I changed JS code in the same place =

replace as follows:=20

 

----------------------------------at the RunTime, in the IE =

document area full with check the error, the detail of error =

is:=CD=F8=D2=B3=B4=ED=CE=F3=CF=EA=CF=B8=D0=C5=CF=A2

 

=D3=C3=BB=A7=B4=FA=C0=ED: Mozilla/4.0 (compatible; MSIE 8.0; Windows =

NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR =

3.5.30729; .NET CLR 3.0.30729; MALN; InfoPath.2; BRI/2; Media Center PC =

6.0; .NET4.0C)

=CA=B1=BC=E4=B4=C1: Fri, 8 Apr 2011 07:36:35 UTC

 

=CF=FB=CF=A2: '_S_ID' =CE=B4=B6=A8=D2=E5

=D0=D0: 8

=D7=D6=B7=FB: 1560

=B4=FA=C2=EB: 0

URI: http://127.0.0.1:8077/ext-3.3.0/ext-unigui-1.2.1-min.js

 

 

=CF=FB=CF=A2: '_S_ID' =CE=B4=B6=A8=D2=E5

=D0=D0: 8

=D7=D6=B7=FB: 1560

=B4=FA=C2=EB: 0

URI: http://127.0.0.1:8077/ext-3.3.0/ext-unigui-1.2.1-min.js

 

For this problem, what do you think?=20

 

The reason is FRAMEWORK? Or I caused the JS script?

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...