Loading new page in different frame

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Tassell
Forum Newbie
Posts: 2
Joined: Fri Mar 26, 2004 5:58 am

Loading new page in different frame

Post by Tassell »

Hello, (first post, newbie)

I'm trying to modify aMember which will manage the membership on our site.

When one logs in successfully the login.php page does a redirect to page1.html if the user was not trying to access a protected page, or the protected page if he was.

Code: Select all

if ($_POSTї'amember_redirect_url']) {
        $redirect = $_POSTї'amember_redirect_url'];
} elseif (count(array_unique($urls)) == 1){
    if (in_array('htpasswd_secure', $pluginsї'protect'])){
        $member_login_pw = 
        htpasswd_secure_get_login($HTTP_SESSION_VARSї'_amember_user']ї'login']).
        ':'.
        htpasswd_secure_get_passwd($HTTP_SESSION_VARSї'_amember_user']ї'pass']);
        $redirect = add_password_to_url($urlsї0], $member_login_pw);
    } else {
        if ($configї'display_member_pw_urls']) {
             $member_login_pw = 
             $HTTP_SESSION_VARSї'_amember_user']ї'login'].
             ':'.
             $HTTP_SESSION_VARSї'_amember_user']ї'pass'];
             $redirect = add_password_to_url($urlsї0], $member_login_pw);
        } else {
            $redirect = add_password_to_url($urlsї0]);
        }
    }
} else {
    $redirect = $configї'root_url'] . "/../page1.html";
}
#print_r($urls);
html_redirect("$redirect", 0, 'Redirect', "Logging in...");
?>
I'd like it also to load a new page (page-x.html) at the same time into the upper frame (UpperFrame) of the site (I know, I'm sorry... I inherited this frames site). From what I've been reading I need some javascript here. Can anybody show me how to do this? Please bear in mind that this is all double-dutch to me.

Thanks, thanks, thanks.

Tassell[/i]
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Tassell
Forum Newbie
Posts: 2
Joined: Fri Mar 26, 2004 5:58 am

Post by Tassell »

Thanks, yeah.
I'd read through those postings but (frankly) got lost pretty quickly. Also it seems that the answer is probably: 'No'.

More out of ignorance of coding than laziness, I guess I'm just looking for a bit of code I can just drop into an indicated point.

Tassell
Post Reply