kklou
|
| Posted: 08/14/2005, 3:43 AM |
|
Hi,
pls advise how to do this in CCS for the following requirements.
when the user click a button, there are two pages, "A & B", can be displayed, and it is determined by whether another specific web page "C" (actually is an URL) has been opened or not?
How to do this in CCS
thanks
|
|
|
 |
Jim
|
| Posted: 08/16/2005, 11:55 AM |
|
Just guessing at what you are trying to do, but
1. You could declare a variable on Page "C." Make Pages "A" and "B" two forms on a single page.
If the variable from Page "C" exist, then show Page "A" form, if not, then show "Page "B" form.
2. Declare a variable on Page "C." Make a redirect page (add on initialize, redirect based off of variable present or not present.
|
|
|
 |
kklou
|
| Posted: 08/17/2005, 12:30 AM |
|
Hi, Jim, thanks for your reply.
It is useful.
But the page "C" is not mine.
Is there any alternate way to achieve?
Can i search a certain keyword in the page "C",
or check the OS whether there is a window opened for that URL?
thanks
Best Regards
k.k. lou
|
|
|
 |
Jim
|
| Posted: 08/18/2005, 4:36 AM |
|
If Page "C" is not your's, you may try some javascript.
From http://hotscripts.com
DenyAccess Hits: 3996
This script will deny web page access to all referrers except one pre-designated URL. The visitor attempting unauthorised access can be redirected to another page, returned to the referring page or the browser window can be closed according to script configuration. No script editing is required. All configuration is performed through an easy-to-use web form. The custom-made script can then be added to the page to be protected, and the page uploaded to the server without further amendment.
Free Version: 1.0 Platform(s): linux, windows, freebsd Updated: Sat Apr 16 2005
I have no recommendations on using this script or results if you do.
just did a search on http:/hotscripts.com "get referring page"
|
|
|
 |
|