Forum Moderators: open

Message Too Old, No Replies

need a two part url - help!

         

KarinaGW

3:35 pm on Jul 15, 2003 (gmt 0)

10+ Year Member



Actually, what I actually want is a plain old DOS batch file equivalent. What I need is a two step process. The first step logs the person in via a url, the second step sends them to the second url that they need to be logged in to view.
The >can< got to a page that says
1. Click here (sends them to the guest access page)
2. at the next page, click your browser's back button then
3. Click here (sends them to the page they need to be logged in as guest to view)

What I want to do is automate this entire process into a single "click here"

golly. what a morning this has been.

thanx in advance

tedster

5:04 pm on Jul 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm having trouble wrapping my head around your question, Karina. It sounds like a server side scripting question, and not an HTML question.

But then I noticed that you started a thread in our scripting forum [webmasterworld.com] two hours ago that sounds quite related, so maybe you are looking for some HTML help in addition to the scripting.

At any rate, please clarify.

KarinaGW

5:40 pm on Jul 15, 2003 (gmt 0)

10+ Year Member



Okay. Here is the exact situation. There is an educational product called Blackboard. It's used for distance supplementing of course materials. I have no way of doing anything to its code to do what I need to do.

I can get a user in (bypassing the log-in screen) with direct guest access using

<a href="http://blackboard.xxx.edu/webapps/login?access="guest_login">Log in</a>

Then they need to get to the class which allows guest access. The problem with this is navigating through BB on guest access to find a class ain't exactly intuitive.

I can get right to the class with the following (or approximate) link:
<a href="blackboard.xxx.edu/portal/blahblahblah/classX>Class X</a>.

It's annoying that you cannot use the second link (assuming that guest access for the class is turned on) without first opening a session with the first link. But you do. Hence my dilemma in trying to make this a one-step process.

USMerch

2:03 am on Jul 16, 2003 (gmt 0)

10+ Year Member



will a meta refresh work for you?

<head>

<meta http-equiv="refresh" content="1;url=http://blackboard.xxx.edu/webapps/login?access="guest_login">

</head>

couldn't really follow your question, but it might stand a chance of working for you......

IanKelley

8:42 am on Jul 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I see your problem and what you need is a simple perl or php script. Anyone with even vague knowledge of either should be able to do it for you.

I'd offer to do it myself but I'm on my way out of town.

If that isn't an option somehow, you could do it using HTML frames and meta refresh. Load the login in the bottom frame with 'please wait' instructions in the top one. Have the top frame meta redirect to the target content page in 5-10 seconds, loading it frameless using target="_top".

KarinaGW

1:43 pm on Jul 16, 2003 (gmt 0)

10+ Year Member



Thank you. Actually the frames and refresh worked brilliantly. It was definitely one of those cases where I really should have seen it, but had my mind in a rut.

I still miss batch files though.