montymoose
Posts: 85
|
| Posted: 11/05/2004, 3:22 AM |
|
Hello,
Just wondering whether anyone can help me with a quick problem. I have a normal CodeCharge login system redirecting to another page when the login is successful.
Nothing strange there….
However I want the return page to appear in a different frame, not the frame that the login box is in.
The code for the redirect is:
----------------------
$Redirect = "sec338_index.php";
if($this->Validate()) {
if($this->PressedButton == "Button_DoLogin") {
if(!CCGetEvent($this->Button_DoLogin->CCSEvents, "OnClick")) {
$Redirect = "";
---------------------
Is there any way that I can add the ‘Target = _parent’ tag or something like that to redirect to a frame?
Any thoughts?
Cheers
John.
|
 |
 |
greg
|
| Posted: 11/05/2004, 8:33 AM |
|
You can't do it directly. I'd advise you create a html page with a
javascript to change the content of the other, based, for example, on a
parameter.
Greg
montymoose wrote:
> Hello,
>
> Just wondering whether anyone can help me with a quick problem. I have a normal
> CodeCharge login system redirecting to another page when the login is
> successful.
>
> Nothing strange there….
>
> However I want the return page to appear in a different frame, not the frame
> that the login box is in.
>
> The code for the redirect is:
>
> ----------------------
>
> $Redirect = "sec338_index.php";
> if($this->Validate()) {
> if($this->PressedButton == "Button_DoLogin") {
> if(!CCGetEvent($this->Button_DoLogin->CCSEvents, "OnClick")) {
> $Redirect = "";
>
> ---------------------
>
> Is there any way that I can add the ‘Target = _parent’ tag or something like
> that to redirect to a frame?
>
> Any thoughts?
>
> Cheers
>
> John.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|