on 01-15-2006 1:03 PM
Hi all,
We have developed a stateless BSP application and everything is fine except one thing-
The user can access any page as "http://<host:port>.../BSP_APPname/page.htm".
So far what we have implemented is we are passing an arguement in querystring when navigating in BSP application, like :-
navigation->goto_page (
'http://<host:port>../BSPapplication/page1.htm?on=1' ).
Is there any other way to enforce that only start page is displayed.
Thanks,
KS
using javascript and document.referrer you can check from which page the user has come and if its balnk or not the default page you can redirect him to default page.
the code shoule be something like below.
<script language="javascript" type="text/javascript">
if (document.referrer != '<default page url>')
document.location.href = <deaful page url>;
</script>
REgards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.