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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

this.variable1 = variable1 ???

Status
Not open for further replies.

theKeyper

Technical User
Jun 11, 2003
79
AU
Hi,
I am a complete Newbie to ASP (I started teaching myself Yesterday). I have setup a simple guestbook to connect to a Microsoft Access database and add, delete, and modify records using a DSN-LESS conection so I understand basic connections, recordsets, etc.

Now I have moved on to something more challenging - "reverse engineering" so to speak, a site that is already running. There is a fair bit of code that I don't understand and I would appreciate some help.

First off, At the top of almost every page, all Variables and Functions are defined as so:

this.variable1 = this.variable1;
this.function1 = function1;

is this the same as dim variable1? does it simply define them or acheive something else? what are the benifits of one over the other?

Thanks a lot for your help,
Regards,
Keyper.

The Key is more powerful than the Sword.
 
Also, the first thing I did was using VB style ASP but the new one is javascript ASP(if that makes sense, I'm not sure what the lingo is?)
Does anyone know any good pages on the difference between the two, pros and cons of each, etc.???
 
I also found the following code:
<%
//Login Check
if(Session("logged")!==1){
//Redirect to login page
%>
<script>
location.replace("login.asp");
</script>
<%
} //End if
%>

I assume that the <script> tags are not ASP, are they Javascript? does "<script>" always mean Javascript or did we define that somewhere else?
Thanks a lot.
 
also is:
var connect, query, rSet;
the same as
dim connect, query, rSet;
?

and what about
connect = new db_connect();

where 'connect' is an as yet undefined varable and 'db_connect' is an existing function.

why do we use the word 'new'?

Sorry about so many questions but I just can't find the answers fast enough!
-Keyper
 
First, it is better to post your questions separately in different threads...

Second, you are mixing both server side (ASP) and client side (VBScript or Javascript)

If you want to learn the basics, i suggest you to visit the following link:


-L
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top