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)
 Looking for a tutorial
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Etymon
Advanced Member

United States
2385 Posts

Posted - 13 May 2002 :  14:59:33  Show Profile  Visit Etymon's Homepage

I don't know exactly what kind of tutorial I am looking for, but I know what I don't know.

I want to learn how to create tables in VBScript. I don't understand how/where to apply some of the seemingly very basic codes like <% * VBnewline $ _ ... I think I have html down pretty well (see the source of www.CricketsCreations.com).

I've been trying to learn how to add a left-side navigation .asp to my pages to use as a template for my website.

Does anyone know where I can find a VBScript/ASP (I guess) tutorial that is comparable to where I am at in my coding experience?

Thanks so much,

Etymon

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 13 May 2002 :  15:20:35  Show Profile
I can't help you with any tips on how to learn ASP as I'm still "on my way there", but I do have a comment on your way of writing the HTML: why do you use so many spaces? I know indentation makes the source easier to read, but what you're doing is ... well... unnecessary. It makes it a PITA to edit and debug because of the width of the lines.

I've never used HTML comments in my files because IMO they're useless. I know how to edit my files and where to find what I need (because of indentation and naming the different items).
Anyway, I've heard it's good to use HTML comments, but as with the spacing, don't over-do it.




http://www.frutzle.com

Snitz Exchange | Do's and Dont's
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 13 May 2002 :  15:34:52  Show Profile  Visit Etymon's Homepage

Thanks FrutZle!

I started out with this page using FrontPage, but had trouble with some of the ways it did things. Then I took it out to hand-code the trouble areas so the page would be compatible with IE and NN.

I know what you mean about the spaces. I suppose I just hadn't thought about it. The hierarchial structure is a FrontPage thing. However, the comments is something I use to keep track of where I need to edit when I am flipping back and forth between source code (back end) and the front end.

Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 13 May 2002 :  17:25:10  Show Profile
Some off-the-top-of-the-head comments may help.

1. ASP pages COMBINE both server code and client HTML in one page.

2. The general order of things when you call an asp page is first the server code is assembled and executed, and the server code may generate HTML with response.write statements or just pass along HTML that is in the asp page, but in any case the server processes all the code and generates an HTML stream to the browser.

3. <% .. %> is one way the asp page designer indicates server code. You can also use <script language=vbscript runat=server> .. </script> tags for server code blocks. Note the "runat=server".

4. Server code is usually in VBScript but doesn't have to be. You can use Javascript or other languages on the server. Client scripts are usually Javascript for browser compatibility.

A quick sample:

<%
response.buffer = true
response.write "<html>"
%>
<body>
<% dim sHead
sHead = "<META blah blah>"
%>
<head><% = sHead %></head>

In this little sample, when you call the asp page in your browser, first the server puts together all the <% %> server code, and starts executing ON THE SERVER at the top of the page.

The server first runs across the response.buffer = true, which tells it to assemble all the HTML for the client before sending it, so it opens a buffer on the server.

Next, the server sees the response.write statement and sends the argument (the "<html>" string) to the client buffer. If response.buffer was off, the code would have started sending the output directly to the browser.

The server then finds the %> telling it to end the server code block. Now the server finds the html coded in the page and just moves it to the output buffer.

Next another <% server code block is found, that defines a variable named sHead, and then sets that variable to the string argument. This happens on the server without any output.

Then the server code block ends, and the <head> html is sent to the output buffer. Another <% server code block is found, where the = sHead is a shorthand way to say response.write sHead.

The server runs out of stuff to do, so when the page is done it starts sending the output html buffer to the client browser.

HTH



======
Doug G
======
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 13 May 2002 :  20:07:36  Show Profile  Visit Etymon's Homepage

Wow! So that is why server-side scripts are more overhead for the server, and also why the pages are cross-browser compatible.

I was playing aroung trying to include an .asp file into a <td> cell. Just could not figure it out. I trying mimicking one of the .asp files we have here at Snitz. After I made my .asp, I ran in on my Personal Web Server, but it wouldn't run. Still haven't figured it out.

What I want to do is have a left-hand .asp navigation on all my pages. A global template like the inc_top.asp and the footer.asp files are.

Nathan was nice enough to send me some examples. I didn't full understand how to put them to use though.

Is it possible to put an include file in a <td> cell?

Thanks for the descriptive tutorial, Doug G! Learning how the server thinks helps me a lot!

Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 13 May 2002 :  21:11:04  Show Profile
Sure.

<table><tr><td>
<!--#include file="myfile"-->
</td></tr></table>

If the include file contains server-side code, it will be executed when the server gets to this spot in the page. Any html in the include file will be placed in the browser output stream just as if it were typed in the original page.



======
Doug G
======
Go to Top of Page

El Matador
Junior Member

192 Posts

Posted - 14 May 2002 :  01:14:32  Show Profile
Try this site:


http://www.w3schools.com

It has tutorials online about ASP, HTML, XML, JavaScript, etc.

See by yourself. You won't be disappointed.



Edited by - El Matador on 14 May 2002 01:15:55
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 14 May 2002 :  03:58:08  Show Profile  Visit Etymon's Homepage

Thanks, El Matador!

Going there now.

Etymon

Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 14 May 2002 :  04:38:52  Show Profile  Visit Kat's Homepage
quote:

Try this site:


http://www.w3schools.com

It has tutorials online about ASP, HTML, XML, JavaScript, etc.

See by yourself. You won't be disappointed.



Edited by - El Matador on 14 May 2002 01:15:55



I was just about to post this site as it really is a fantastic place to start. I definately recommend it.

KatsKorner

Installation Help | Snitz Mods | Forum Hosting
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 14 May 2002 :  06:57:59  Show Profile  Visit Etymon's Homepage
Thanks too Kat!

I took a short diversion in the archives and found some answers for the left side navigation I was seeking. I tried FrutZle's code, and it seems to be working well.

I went to the ASP site you all recommended. I like it. Seems to be pretty straight-forward.

Thanks again.

quote:
I've been trying to learn how to add a left-side navigation .asp to my pages to use as a template for my website.


There are some ideas batted back and forth, but FrutZle's reply on the second page of replies is what worked best for me: (Thanks FrutZle!)

http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&whichpage=2&TOPIC_ID=16675


Edited by - etymon on 14 May 2002 07:01:07
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 14 May 2002 :  14:20:13  Show Profile
quote:

I took a short diversion in the archives and found some answers for the left side navigation I was seeking. I tried FrutZle's code, and it seems to be working well.

...

There are some ideas batted back and forth, but FrutZle's reply on the second page of replies is what worked best for me: (Thanks FrutZle!)

http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&whichpage=2&TOPIC_ID=16675



Lol.. well, you're very welcome
I'm glad to see that you used the search function of the forums and found an answer to your question.

I must say I'm amazed I wrote all that back then... I can't learn by reading stuff like that (not even my own 'tutorials' lol) but in my head it's all crystal clear (at times ) so I can write those kinds of things in seconds.




http://www.frutzle.com

Snitz Exchange | Do's and Dont's
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.67 seconds. Powered By: Snitz Forums 2000 Version 3.4.07