Designed by NoKi !
3 en ligne  


 Search


Acheter - Vendre
neuf et occasion

pda, jeux vidéo, graveur, cd vierges, dvd vierges, matériel informatique, pc, ordinateur portable, logiciel, antivirus, annonces gratuites





   

1st page (1/3)

Some fundamentals to start





artvoila
"I miss some steps, maybe some fundamental elements that I do not understand..." Some visitors of this site may venture to say so... Then, this 1st page will be an attempt to connect them between what is incomprehensible when writing his/her first dynamic pages and what is so evident after developing for a while. That is something we quite often forget to talk about...

Don’t hesitate to talk about your difficulties... and this page will be modified accordingly !


Questions - Server on - Languages - Post - Conditional source - Also



The server is on

When the server forwards an html page to your browser, it processes right away... it provides you with the file as-is, sent by the Webmaster. That's it !

However, when you ask for an asp or php page, the server works a little bit more... :), it decrypts specific instructions that are tagged by <% and %> or <? and ?>. The server builds html code based on the instructions and then sends the information to your browser... As a Webmaster, you don't write web pages any longer but simply indicate to the server how to build them due to some parameters built-in your asp or php pages...

For example

In the Installation page, you should have noted that the generated source was different from the code of your page... When reading the following file:


<HTML><HEAD><TITLE>Trial 1</TITLE>
</HEAD><BODY>
   We are on <%=Date%>
</BODY><HTML>

<HTML><HEAD><TITLE>Trial 1</TITLE>
</HEAD><BODY>
   We are on <? echo date("n/j/Y"); ?>
</BODY></HTML>
the server executes part of the codes of interest and generates the following HTML source:

<HTML><HEAD><TITLE>Trial 1</TITLE>
</HEAD><BODY>
   We are on 7/24/2008
</BODY></HTML>
which is sent after that to your browser ! Magic ! :)


Attention !!!

Many visitors have some difficulties to understand this job. So, I would like to emphasize on it and add this comment: Once the page appears in the browser, the task accomplished by the server is done !!! After that, only client scripts will be executable by the server (JavaScript or VBScript). And, you will have to reload the page to execute new server scripts (ASP or PHP) !!!

For example :

<script language="JavaScript">
   myvariableJS = "<%=myvariableASP%>"
</script>


<script language="JavaScript">
   myvariableJS = "<?echo $myvariablePHP;?>"
</script>

works properly because the server script is executed prior to the client script

but, if you want to send a JavaScript variable to your page :

<script language="JavaScript">
   eval("location.href='mypage.asp?myvar="+myvariableJS+"'")
</script>


More details about the communication between JavaScript and PHP :
www.aidejavascript.com/article55.html


Finally, we cannot act on the server using a client script !!! For example, you have to edit a server script if you modify a file or database located on the server ! Meanwhile... you have to edit and run a client script if you try to act on the client computer !

artvoila on 12/14/2003 (7 393 hits)
Didier Téléchargez gratuitement !!!
7 logiciels illimités dont Visual Studio Pro et SQL Server 2005 !
SQL Server 2008 ß !
[gratuit] 11-12-13 février
les MS TechDays 2008 !!!
Au fil des news  
Dreamweaver CS3 + XML + Ajax - Création d'une région détail
Dans cet article, je vais vous montrer comment utiliser la technique région détail, avec Spry
PHP - joli arborescence dynamique
Magazines - Le N°104 de Programmez est disponible
PHP - PhPBB 3.0.0 !!!
[MAJ] Université de Sherbrooke - située dans un beau coin du Québec, l'Estrie...
- Ajout du programme d'imagerie et de médias numérique - Le département de mathématiques et ...
Magazines - Le N°103 de Programmez est disponible
PHP - Calcul jours ouvrables entre dates, gestion fériés
PHP - WampServer 2.0, la nouvelle version de WAMP5 !
SharePoint 2007 et Workflows Designer - Part 2 - Modifions un workflow dans SharePoint 2007
Dans la première partie, nous avons vu comment créer un WorkFlow dans MOSS avec SharePoint ...
Modifier le ruban de Word 2007 avec Open XML -
Open XML est un format de document bureautique flexible : structure basée sur l'Open Packaging ...
La corbeille de SharePoint 2007 - Fonctionnement de la corbeille de SharePoint 2007
Une des nouveautés de SharePoint 2007 est la mise en place de la corbeille pour chaque site. Il est ...
SharePoint 2007 et Workflows Designer - Part 1 - Créer un workflow simple dans SharePoint 2007
L'automatisation de Workflows, ou Flux de travail, résulte d'une volonté d'amélioration de ...
CSS - Dégradé de couleur
Magazines - Le N°102 de Programmez est disponible
Dreamweaver CS3 + Mysql - Formulaire de redirection
Suite au coup de pouce de DB77, je vous propose ce petit script pour améliorer vos pages Internet. ...
[MAJ] Tutoriel AJAX simple - En avant vers le WEB2.0
Mis à jour le 26/10/2007
Magazines - Le Hors-Série .Net de Programmez est disponible
LINQ et vous - Part 2 - Le .NET Framework 3.5 décortiqué !
Ce nouvel article fait suite à mon premier article de cette nouvelle collection « LINQ et vous ». ...
Présentation des KPI dans SharePoint - Présentation des KPI dans SharePoint 2007
Nous verrons au travers de cet article une présentation détaillée de ce qu'est un KPI et dans quel ...
LINQ et vous - Part 1 - Evolutions du .NET Framework - Visual Studio 2008
Voilà plus d'un an que je n'ai plus posté d'articles sur ma communauté préférée. Il était temps ...
Agenda - 21-22 novembre : Le Forum PHP 2007 !
Microsoft - Essayez gratuitement MS Expression Studio !!!
Les Utilisateurs dans SharePoint - La gestion des utilisateurs dans SharePoint
SharePoint dont le coeur est l'outil collaboratif, Windows SharePoint Services. Chaque utilisateur ...
Magazines - Le N°101 de Programmez est disponible
Hebergement - hébergement de forum gratuit - créer un forum.
Revue de presse - Nouvelle mise à jour chez Adobe
PHP - import csv vers bdd avec verification
PHP5 - Csv2array
PHP - Framework PHP5 - PoppyFramework
Le Moteur de Recherche de MOSS 2007 - Installer le moteur de recherche de MOSS 2007
Nous avons vu dans un précédent article comment mettre en place le moteur de recherche dans un site ...
PHP5 - incrementation alphanumerique
Magazines - Le N°100 de Programmez est disponible
Agenda - Adobe vous donne rendez-vous du 4 au 9 septembre..
ABAP leçon 1 : Les variables - Auteur : Jerome Fortias
je me devais de continuer mon travail de vulgarisation à SAP. En parallèle à mon site destiné aux ...
Agenda - Nov 2007 : Les TechEd Developers à Barcelone !
Microsoft - Vista SP1 et XP SP3 pour bientôt !
Le Moteur de Recherche de WSS V3 - Installer le moteur de recherche de WSS V3
Parmi les évolutions de Windows SharePoint Services V3, on trouve le moteur de recherche. Nous ...
PHP - array2xml convertie un array en xml
Revue de presse - Flash Player 9 Update beta
PHP5 - class Timer - ajouter/enlever du temp au time unix
Tutorial : HTML | Scripting | ASP-PHP | ASP.net | SQL Server | XML
Sharepoint | XAML | Pocket | Dreamweaver | VML | Divers
  Scripts : Scripting | ASP-PHP | ASP.net | Divers
  Boutique | Annuaire | Bannières | Météo | Tribune | Partenariats
v3 © Didier 2003   
 
 DotNet Project Groupes Utilisateurs Microsoft TechNet ASP-magazine MVP The Inquirer FR Wygwam Codes Sources El Roubio CodePPC