Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Dudes! Great site. You've saved me hours and hours...and I have just started using your site. I've already passed your URL onto my entire company. Keep up the awesome work. Bingo-bango..."

Geography

Where in the world do Tek-Tips members come from?
Ghostrider (Programmer)
9 May 99 23:52
Your javascript keeps coming back with an error message saying Line16 Charr19 expected ';'. How do i fix it. if could help please email me at startrek87@hotmail.com.

Bye
robherc (Programmer)
10 May 99 14:02
Which JavaScript? I'm sorry, but I have posted several JavaScripts here & I am not quite sure which one you are currently referring to. It would also help if I know what platform (Wim 3.x or 95/98) you are using, along with which browser (IE3, IE4, IE5, Netscape 2.x, 3.x, or 4.x) you are using when you get this error. I'll get on this bug as soon as you can give me all of the necessary info.


-Robherc
Ghostrider (Programmer)
10 May 99 21:14
Well robherc i am using Navigator3 and the script you sent me looked like this


<script language=javascript>
<!--;

var checkpass=ask_entrance();

function ask_entrance()
{
var uid=prompt("Please identify yourself?",'');
var pass=prompt("Identify password?",'');

if(uid=="staff" && pass=="staff")
{
//Insert whatever you want to be password protected //between these
"{h:Gateway to multimedia/Staff lounge/Staff wenpages/stafflounge.html}"
document.writeln('Hello '+uid+' your name and password have been
verified!')
alert("Hello "+usr+" your login has been successful!");
//You can repeat the "}else{" and "if()" clauses for //however many
members/passwords you have.';'
}else{
if(usr=="ilackie" && pass=="startrek87")
{
//Same as for last, insert any password protected info //for user2 here
}else{
alert("I'm sorry, your username/password authentication failed, please
try again");
ask_entrance();
//Remember to add the appropriate # of end braces "}" for //the number
of begin braces "{", or your script won't //function properly.
}}}

//-->
</script>

I ahve put in my usernames and passwords and it doesn't work could you please help me get this script working.


(: Ghostrider
robherc (Programmer)
11 May 99 15:10
What is the line:

h:Gateway to multimedia/Staff lounge/Staff wenpages/stafflounge.html

supposed to do???
If you're wanting it to automatically forward someone to a website URL, please give me the exact URL & I will customize the script for you.

Other than that, I think I have all of the bugs worked out of this script.

P.S. the statement about where to enter the protected info meant to add it between the brackets that were surrounding about 4-5 lines with that comments INTERNAL to them.

-Robherc
Ghostrider (Programmer)
12 May 99 0:55
That's where the site is being kept untill it gets uploaded.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close