Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Need a little help
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

thechasboi
Starting Member

19 Posts

Posted - 24 July 2003 :  10:09:17  Show Profile
I would like to insert a login and Logout text link. I would like it just bellow the the button that appears. I know how to put a text link in the header I have done this before but the log buttons have a boolean variable connected to it and I am not sure how to handle this in respect to add a link. I tried just adding the link after the button in the code (which is in an IF statement) but that did not work because I am also not exactly sure what happens after those buttons are clicked. I see a variable concatinated but where is it going?

Thanks again for the help.

Edited by - thechasboi on 24 July 2003 13:08:23

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 24 July 2003 :  17:55:29  Show Profile
The first part of the IF statement is for logging in, the second for logging out. If I understand you correctly, you want to use text links instead of the login and logout buttons. Just use the standard JavaScript form submittal code to submit the forms to which those buttons belong (form1 and form2 if I'm not mistaken).
Go to Top of Page

thechasboi
Starting Member

19 Posts

Posted - 25 July 2003 :  12:09:33  Show Profile
FrutZle thanks for the post. I am sorry for not being a little more specific. I would like to use both the button and the link. I do not know anything about javascript. I will look into what you are talking about. But I think it is a little more difficult than that. I am not sure exactly what to do. I want to try it by using asp but not sure how. I tried to put a text link something like this

.... <a href=""http://www.nacasb.org/forum/highcontrast/""" & dWStatus("Visit a High Contrast Version of the Forum") & " tabindex=""-1""><acronym title=""Visit A High Contrast Version of the Forum"">High Contrast Version</acronym></a>"& vbNewline & _ ....

What my basic problem is, that I do not know and understand how the button gets its link or how it works with the forum. I think it sets a variable in a cookie then the forum actively looks at the vatriable to trigger which button to show. Then it refreshes the page and outputs the corect button. But some things are fussy on the exact details.

If this makes sence.

Thanks for the post and replies.
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 25 July 2003 :  12:31:18  Show Profile
a button submits a form. a link does not (without using some javascript)

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

thechasboi
Starting Member

19 Posts

Posted - 25 July 2003 :  12:41:39  Show Profile
Nikkol thanks for the reply. What you said now makes what FrutZle said more sence to me. I understand now that what is submitted is not a link but a form. Could you suggest a place where I could see some examples of how to do this so I can input this into the header.

Thank you all for the help.
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 25 July 2003 :  12:50:40  Show Profile
the login form uses form1 and the logout form using form2, so if you were to add the link an example for the login form might be

<a href="#" onClick="document.form1.submit();">Login</a>


Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

thechasboi
Starting Member

19 Posts

Posted - 25 July 2003 :  15:17:32  Show Profile
Nikkol this looks very promising. I like the fact that an "onClick" event can be used here. I guess this is the way to be sent to a form then.

Thanks fo the help
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 26 July 2003 :  08:40:25  Show Profile
That's what I meant with "the standard JavaScript form submittal code" Sorry I wasn't clear in my first reply but I thought you'd figured most of it out and only needed a little push into the right direction.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.43 seconds. Powered By: Snitz Forums 2000 Version 3.4.07