View Full Version : Boy I'm just full of questions tonight .. I know bad title ... hehe

08-20-2004, 06:21 AM
ok these are really newbie questions, but since its late and I'm tired I figured I'd ask (besides some one once told me the only dumb question is the one you never ask). The class I had never covered this stuff and either I totaly missed it in the books I've read or was ZZZZZing during that chapter :o

1. Can you use both VBscripting and Javascripting in the same page?
and of course how?
(this is the only way I know to identifie language type)

2. whats codepage do/for?

3. A whats all this stuff mean (dreamweaver always puts it in, finaly got off of FrontPage)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

To learn is a good thing and today I hope to learn something new!! :confused:

08-20-2004, 04:33 PM
I'm pretty new myself so don't know much about this but i'll have a go....

yes u can use javascript and vbscript on the same page. www.w3schools.com has a good asp tutorial which covers both :)

I don't know what codepage does...

The doctype thing is something to do with the w3c standard I think. The dtd stands for document type definition which defines the structure of an xml document. Again w3schools is good http://www.w3schools.com/dtd/default.asp

Hope thats of some help

08-20-2004, 06:21 PM
Yes, you can use both languages in the same page. However, use of inline scripting is limited to one language. This is the language described in the @ declaration. so any script written in <% %> blocks will be in that language. In order to use two languages you will need to use the script blocks to tell the asp processor which language to use. <SCRIPT LANGUAGE="JScript" RUNAT="Server"> for more info see MSDN Article (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvid/html/msdn_vbnjscrpt.asp)

The codepage="1252" describes English US as the characterset to use. This is helpful with letters in the alphabet, numbers, and punctuation. You can also include the LCID in this line for formatting of dates and currency. If you are in the UK & you want to use the Euro and dd/mm/yyyy format for dates then you would have the following

<%@ language="vbscript" codepage="1252" LCID="1146"%>.

See this MSDN Article (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/charsets/charset4.asp) for complete list of codepage and LCID codes.

and yes this line
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
is the doctype declaration. The transitional part says that your HTML may include the presentation attributes and elements that W3C expects to phase out.

The various DTD's are

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
For STRICT compliance with HTML standards

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
For Most webpages

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
For use in frames pages

Roy Sinclair
08-20-2004, 07:25 PM
Please note that using multiple languages in a single file is considered a bad enough idea that MS dropped that ability from the .NET system.

08-24-2004, 05:55 PM
Thanks all

Another question Roy is ASP being fazed out by .net, and how soon do you think it will be before ASP is obsolete and no longer going to be supported.

Heck I'm just starting to get some of this ASP stuff down, My cousine is telling me PHP is the way to go, now throw in .net stuff, still trying to get a good handle on CSS, don't forget gotta figure out MySQL, DHTML, XHTML, and what ever else there is ..............

which way does a guy go. Maybe this should be a new post, but what is the best stuff for a Web developer to learn, what order should I tackle the stuff to learn

To learn is a good thing today I hope to learn something new!!
(nope forget that I'm taking a day off my brain hurts ... hehe)