----- Original Message -----
From: "Diane Schips" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 12:36 PM
Subject: RE: Prompts in ASP


> >(unless you want to go the client-side VBScript route)
>
> Huh?

I put that because judging by the question, I wasn't sure if he was
asking if he could do this in ASP. I wanted to distinguish the difference
between Client-side VBScript and Server-side VBScript.

Also, I tried steering him to JavaScript with my example...

Chris

P.S. I forgot one small thing in my example that no one chided me
for yet:

var strUserName = prompt("hi, I am a lonely machine and want to know your
username", "")
if((strUserName != null) && (strUserName != "")){
    location.href = "loginpage.asp?username=" + strUserName
}
// -->
</script>

Even that's not so great because username is getting passed through the
header freely. Not a good idea. I would throw those values into hidden form
fields and perform a submit() on 'em.



---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to