PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.info.authoring.html > Can html load javascript files from the local machine?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Can html load javascript files from the local machine?

Réponse
 
LinkBack Outils de la discussion
Vieux 23/04/2008, 02h00   #1 (permalink)
ray
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Can html load javascript files from the local machine?

I have a html file stored as the D:/proj/test.html. In the html file I
wish to load a javascript file---test.js which is stored in the same
directory as test.html.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"/
>

<TITLE>Test Page</TITLE>
<SCRIPT type="text/javascript" src="test.js"/>
...
</HEAD>
</HTML>
But when I open the test.html from the hard disk, it seems that the
javascript is loaded.
Can html load javascript files from the local machine?
Thanks in advance.
  Réponse avec citation
Vieux 23/04/2008, 02h20   #2 (permalink)
Ed Jay
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can html load javascript files from the local machine?

ray scribed:

>I have a html file stored as the D:/proj/test.html. In the html file I
>wish to load a javascript file---test.js which is stored in the same
>directory as test.html.
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
><HTML>
> <HEAD>
> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"/
>>

> <TITLE>Test Page</TITLE>
> <SCRIPT type="text/javascript" src="test.js"/>
> ...
> </HEAD>
></HTML>
>But when I open the test.html from the hard disk, it seems that the
>javascript is loaded.
>Can html load javascript files from the local machine?
>Thanks in advance.


Yes.
--
Ed Jay (remove 'M' to respond by email)
  Réponse avec citation
Vieux 23/04/2008, 03h15   #3 (permalink)
ray
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can html load javascript files from the local machine?

On Apr 23, 9:20 am, Ed Jay <ed...@aes-intl.com> wrote:
> ray scribed:
>
>
>
> >I have a html file stored as the D:/proj/test.html. In the html file I
> >wish to load a javascript file---test.js which is stored in the same
> >directory as test.html.
> ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> > "http://www.w3.org/TR/html4/strict.dtd">

>
> ><HTML>
> > <HEAD>
> > <META http-equiv="Content-Type" content="text/html; charset=UTF-8"/

>
> > <TITLE>Test Page</TITLE>
> > <SCRIPT type="text/javascript" src="test.js"/>
> > ...
> > </HEAD>
> ></HTML>
> >But when I open the test.html from the hard disk, it seems that the
> >javascript is loaded.
> >Can html load javascript files from the local machine?
> >Thanks in advance.

>
> Yes.
> --
> Ed Jay (remove 'M' to respond by email)


Sorry, my mistake. That javascript file seems not be loaded.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 06h47.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08894 seconds with 11 queries