HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Requirements for Web Designing and Programming
Post new topic   Reply to topic    HTML Help Forum Index -> Perl
View previous topic :: View next topic  
Author Message
Jasper



Joined: 04 Mar 2007
Posts: 16

PostPosted: Mon May 07, 2007 2:01 am     Requirements for Web Designing and Programming Reply with quote

Can anyone please tell me, what Programming languages and other things I should learn before i design and program on the web. I hear about Perl, PHP, JSP, ASP....etc..it so confusing... Can anyone pls tell me the use of each and when to use what?
Pattons3rd



Joined: 28 Dec 2006
Posts: 1212
Location: Colorado

PostPosted: Mon May 07, 2007 6:21 am     Reply with quote

Start with HTML & CSS, then Javscript, then any of PHP, ASP or any other server side language is my recommendation.
SteveH



Joined: 11 Apr 2007
Posts: 208

PostPosted: Mon May 07, 2007 12:06 pm     Reply with quote

Absolutely agree with P3.

XHTML, CSS and JavaScipt are musts. PHP and/or ASP/VBS (should probably learn .NET versions) will eventually lead you into mySQL (for PHP) and SQL (ASP/VBS).

Avoid freaking yourself out about how much there is to learn; there's soo much awesome, oh-so-cool and useful stuff you can do with just a little.

Cheers, hacker.
Keikura



Joined: 24 Mar 2007
Posts: 167
Location: U.K.

PostPosted: Mon May 07, 2007 12:48 pm     Reply with quote

In some rough order...

XHTML
CSS
JavaScript - the basics for now, it'll allow you do other stuff later
PHP - widely used and easy to use and doesn't require much setup only Apache + PHP enabled
MySQL for databases free and widely used as well, may want to consider postgreSQL as well


Then back to JavaScript as this can get quite advanced very quickly.
Also advanced PHP + MySQL ie larger web app's rather than form processing etc.

Or depending on how you feel you could replace PHP with Perl which is a nice scripting language as well, but i reckon PHP's documentation is a lot nicer.

Personally I don't see the point in .NET tbh.
I mean under .NET you have VBS, C#, ASP and lots of other stuff, which is all .NET but they are all different languages.
SteveH



Joined: 11 Apr 2007
Posts: 208

PostPosted: Mon May 07, 2007 1:02 pm     Reply with quote

Keikura wrote:
Personally I don't see the point in .NET tbh. I mean under .NET you have VBS, C#, ASP and lots of other stuff, which is all .NET but they are all different languages.


I was thinking .NET because that's what companies using Windows servers are looking for in skill sets. I only have one client for whom I'm required to use ASP/SQL/VBS, and I recently noticed that there were syntactical differences between the .NET languages and previous standards. Am I wrong about that?
Keikura



Joined: 24 Mar 2007
Posts: 167
Location: U.K.

PostPosted: Mon May 07, 2007 1:46 pm     Reply with quote

I have no idea. I can't keep track of these 'extra' languages MS brings out - renames and extends.

In my view if your a web developer you code your projects not use pre-made drop in components. The probem is there are two web developer types, client and server. .NET seems to muddle the two together really. And probably produces bloated code for both as well.

With using say PHP+XHTML and JS+XHML+CSS they can be created separately almost, the integration of the two is very important as is the outputted source from the server side application that is sent to the client ie the XHTML that is used by the client side developer with JS and CSS.

Obviously if a company runs windows web servers they'll want .NET devs. Probably since you can get Perl and PHP for windows, oh and Ruby/RoR.

My main point is if your say an web dev. but do it for fun and not money then your hard pushed to find a windows web host - the closest to get (quite easily) is FrontPage extensions and hardly anyone uses those.

my other problem with .NET is the fact you can create desktop applications that require it. So is .NET an online set of languages or a offline set? It's a big jumble of everything and anything in my view.

I know this post is quite long and not all that well structured so you'll have to do the best you can to understand it. : P
SteveH



Joined: 11 Apr 2007
Posts: 208

PostPosted: Mon May 07, 2007 5:59 pm     Reply with quote

Well, ok. We're touching on my own distaste for MS, here. As far as Jasper is concerned (sorry to speak of you in the third person in your own thread, Jasper), he's either going to like site development or application development better, and if he's thinking about certification for web application development, I think it would be in his best interest to be ASP.NET/ADO.NET certified.

Of course, Jasper, if your talking about developing websites only, then you don't really have to worry about learning .NET.
Jasper



Joined: 04 Mar 2007
Posts: 16

PostPosted: Mon May 07, 2007 9:44 pm     Thanks Reply with quote

Thanks to all who helped me clear my doubt. I so far, know HTML, little Javascript and CSS. SO i have to learn PHP/Perl next.

One more doubt I have is, What is the difference between DHTML and XHTML and when to use what??
SteveH



Joined: 11 Apr 2007
Posts: 208

PostPosted: Tue May 08, 2007 9:50 am     Reply with quote

DHTML is a marketing term coined by Netscape back in the day. They used the term to describe how you could build web sites and site components that were either put into motion, or responsive to user interaction.

DHTML is a combination of a markup language (originally HTML -- XHTML came later), CSS and JavaScript (also a term coined by Netscape, by the way, which has nothing to do with Java).

So, XHTML would be the markup language component of DHTML, although you could use earlier versions of HTML.

AJAX is similar to DHTML in that it uses a combination of markup, CSS and JavaScript, and make web page components responsive to user interaction. The primary difference between AJAX and DHTML is that AJAX uses server calls to make changes to a page without going to a new page.
Jasper



Joined: 04 Mar 2007
Posts: 16

PostPosted: Tue May 08, 2007 9:24 pm     Thanks Steve Reply with quote

Ya, I got that ...but which one do I have to learn XHTML, DHTML or AJAX?? I only know the basics of HTML...

I also have been modifying a small website.. and there are codes like the one below coming in the html pages,are these perl code??

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
var oldval = null;
function showHide(selectBox)
{
var val = selectBox.options[selectBox.selectedIndex].value;
var type = 'desc';

//Invis oldval one
if(oldval)
{
document.getElementById(type+oldval).style.visibility = "hidden";
document.getElementById(type+oldval).style.position = "absolute";
}

if(!document.getElementById(type+val))
{
return 1;
}
//View new one
document.getElementById(type+val).style.visibility = "visible";
document.getElementById(type+val).style.position = "relative";
oldval = val;
}

function checkAndSubmit()
{
var selectBox = document.getElementById('action_name');
var action_name = selectBox.options[selectBox.selectedIndex].value;

if (action_name == 'dash')
{
alert ('Please select a valid action.');
return;
}
document.the_form.submit();
return;
}


//-->
</SCRIPT>

<p class="title">Add A New Action</p>
<form name="the_form" id="add_action">
<p>Action Type:
<select name="action_name" id="action_name" onChange="showHide(this)">
[% FOREACH action = action_list %]
<option value="[% action.name %]">[% action.display %]
[% END %]
</select>
<input type=button name="next" value=" " class="gobtn" onClick="checkAndSubmit()" onmouseover="this.className='gobtn gobtnhov'" onmouseout="this.className='gobtn'">
<input type=hidden name="cmd" value="next_add_action">
<input type=hidden name="context_id" value="[% context_id %]">
<input type=hidden name="bc_context_id" value="[% bc_context_id %]">
</p>
[% FOREACH action = action_list %]
<div id="desc[% action.name %]" style="position:absolute; visibility:hidden;">
<p>Action Description: <br/>[% action.desc %]</p>
</div>
[% END %]
</form>

What is [% %] for??
SteveH



Joined: 11 Apr 2007
Posts: 208

PostPosted: Wed May 09, 2007 8:23 am     Reply with quote

Jasper. If you really got what I was saying, you wouldn't be asking me what to learn. [X]HTML, CSS and JavaScript are components of DHTML and AJAX, so learn [X]HTML, CSS and JavaScript.

XHTML is not substantially different from HTML. XHTML is stricter on coding rules, a more disciplined practice, but the code is the same as HTML.

With XHTML you more deliberately separate content from style, and use the following coding rules:

-- All lowercase tags and attributes.
-- Attribute values always enclosed in quotes.
-- All tags closed either as paired tags(<p></p>) or unpaired tags (<br />).

The transition from HTML to XHTML is not difficult.

In the code you posted, the top section is JavaScript. The code delimited by [% %] is proprietary template code, not an official scripting language.

It means that somebody used a template program to build the website.
Jasper



Joined: 04 Mar 2007
Posts: 16

PostPosted: Wed May 09, 2007 10:06 pm     pls help me Reply with quote

Steve, i really dont understand what is a template doing here... can u pls explain this concept to me?? Why is this used here? From this, you can access a database right?? But If I have to modify the database, where do i do that...?? sorry for the trouble..and a big thanks for helping me so much.
SteveH



Joined: 11 Apr 2007
Posts: 208

PostPosted: Thu May 10, 2007 10:09 am     Reply with quote

Sorry, Jasper, I wasn't clear at all there.

FOREACH... END sure looks like PERL to me.

The [% %] delimiters tell the server to parse the code between the delimiters as PERL, but they appear to be part of a proprietary template code.

In fact, I think we're looking at code used with the PERL Template Toolkit module.

There are variable created somewhere outside of the posted page, and where you see code like this:

Code:
<input type=hidden name="context_id" value="[% context_id %]">


The value of "context_id" (defined in PERL somewhere other than the posted page) is written into the HTML document.

Where you see:
Code:
 [% FOREACH action = action_list %]
<div id="desc[% action.name %]" style="position:absolute; visibility:hidden;">
<p>Action Description: <br/>[% action.desc %]</p>
</div>
[% END %]


A loop is created which runs through each "action_list" (array) item, assigning the value of the item to the variable "action", and writing the code between [% FOREACH...%] and [% END %] to the HTML page.

So, a <div> is created for each item in the action_list array, and the action_list array is defined elsewhere.

Yes, PERL can be used to access a database, and the most common DB extension for PERL is the BerkeleyDB extension.

Web-based database modifications are most often accomplished through the use of an online form which points to a form-processing script via the action="" attribute of the form:
Code:
<form name="signupForm" id="signupForm" method="post" action="form_processor.cgi">


Basically, the script page is either all script and no HTML, which processes the form then forwards the user to another page (often a confirmation page), or a page with mixed script and HTML, which serves as both form processor and confirmation page.

Note: The .cgi extension should be used for script-only documents.

Some common ways of managing a database are (1) Working directly on the database (such as opening an AccessDB in Access), (2) creating a web-accessible management interface, usually a form-based method, and (3) using a pre-built web-accessible management tool (for PHP/mySQL, PHPAdmin is the most common tool, but I don't know what's used for PERL).

A more hardcore method is to create script pages, upload them to the server, then run them by typing their URL in the browser. But, you really have to know what you're doing there.

So, "where" you modify the database depends on what you're trying to accomplish.

Hope that's a LOT clearer.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> Perl All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial