Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Login question for private space on website

Status
Not open for further replies.

marvin1019

Technical User
Joined
Feb 2, 2006
Messages
4
Location
US
Hi,

I am new to all this and have been requested to look into this for my company's site. Want to place a panel on the page, when the user enters a keyword it will complete the remaining part of the webpage. for this I mean, user enter meeting12 and hit enter it then will fill in the and take them to the webpage to review meeting minutes. If the keyword does not match then an error message displays. Sound like a lot but, just asking. Thanks.

Marvin
 
Where does the lookup data come from? Is the completed data always going to be a URL? Do you want to do this with a form submission (maybe for DDA compliancy / non-JavaScript reasons)? Or using something like AJAX, ignoring people without JavaScript?

Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Dan,

The lookup data will be always be coming from a URL. It will always be a custom URL, like It will not need to be DDA/non java type, in fact I was told that this could be completed in a java script. Thanks.

Marvin
 
It can be done in Javascript - no problem.

You can create an array (which you could deliver from the server-side if it was dynamic) to the page that contains all the keywords.

When the user enters the keyword, javascript can search the array and see if the keyword matches a "valid" one - and if it doesn't put an alert up (or something). If it is valid, then you can easily prepend the full domain part of the URL and then redirect to the complete URI (with keyword at the end).

Give it a go... and if you run into a brick wall, I'm sure we can help you out.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Thanks, Would this change if the keywords change daily? I would only know a few keywords during the startup as the meeting pages changes sometimes on a daily basis. Also how would I make it so that this code would not show up for someone to look at? And my last question, can anyone point me to a couple examples, kinda new here and want to pick something apart to look at it. Thanks again.
 
Also how would I make it so that this code would not show up for someone to look at?

The [!]only[/!] way to stop someone from looking at your code is to never publish it. There is [!]no[/!] other way.

Why would you want to do this anyway? Assuming you're going to get help from this forum, from people who dontate their time and expertise for free, and give you code, why would you want to hide that? If you learn for free from code given here, why should others not be able to learn from the finished article?

Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Dan,

Sorry, just asking. I may have not understood the answer given to me in the previous reply. I assumed that using keywords in javascript would mean placing them for everyone to see, if they saw the script. As stated. kinda new, really new and just trying to figure out what was tossed at me.
 
if you're talking about having some kind of password secured area on your site, then javascript is *not* the way to go. use a server-side language like php, jsp, asp etc.. to do the password verification.



-jeff
lost: one sig, last seen here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top