Accueil > Forum > > > > fichier texte.txt avec iframe
fichier texte.txt avec iframe
mardi 29 août 2006 à 19:33:32 |
fichier texte.txt avec iframe

adec0127
|
Salut J'ai créé une page où j'ai inséré un iframe, et j'aimerais pouvoir changer le text. le code
<tr> <td width="808" height="538" valign="top" bgcolor="#007FE0"> <iframe src="monfichier.txt"width="100%"height="98%"scrolling="yes"frameborder="0"> </iframe> </td> </tr>
c'est monfichier.txt que j'ai vudrais changer avec un click de button
merci a tous
|
|
mardi 29 août 2006 à 20:01:46 |
Re : fichier texte.txt avec iframe

PetoleTeam
|
B
onsoir...
mettre lévénement suivant dans le bouton
...onclick="document.getElementById('ID_iframe').src=nom_fichier;"...
et dans la balise IFRAME
<IFRAME ID="ID_IFRAME" SRC="monfichier.txt" ...etc> </iframe>
;0)
|
|
mardi 29 août 2006 à 20:58:25 |
Re : fichier texte.txt avec iframe

adec0127
|
le code et bon pour un fichier monfichier mes c'st je click sur un autre button comment visualiser un autre fichier exemple monfichier1 merci
|
|
mardi 29 août 2006 à 21:06:21 |
Re : fichier texte.txt avec iframe

PetoleTeam
|
dans ce cas il te faut créer une fonction //------------------------- function Load_Fichier( url_){
var Obj =document.getElementById('ID_IFRAME');
Obj.src= url_;
}
puis il te reste à faire les appels comme suit.. <INPUT TYPE="BUTTON" ID="BTN_FIC_0" NAME=
"BTN_FIC_0"
VALUE="Fichier 0" onclick="Load_Fichier('nom_fichier0');">
<INPUT TYPE="BUTTON" ID="BTN_FIC_1" NAME=
"BTN_FIC_1"
VALUE="Fichier 1" onclick="Load_Fichier('nom_fichier1');">
par exemple...
;0)
|
|
mardi 29 août 2006 à 21:46:57 |
Re : fichier texte.txt avec iframe

adec0127
|
voila mon code
<html> <head> <title>page de visite </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head> <body bgcolor="#FFFFFF" text="#000000"> <table cellspacing="0" cellpadding="0" border="0" width="100%" height="10%" align="center"> <tr> <td height="128" valign="top" colspan="3"></td> </tr> <tr> <td width="4" height="1808" valign="top" rowspan="3"></td> <td height="1808" colspan="2" valign="top"> <div id="navcontainer"> <ul id="navlist"> <li id="active"> <div align="center"><a href="#">Fichier1</a></div> </li> <li> <div align="center"><a href="#" >Fichier2</a></div> </li> </ul> </div> </td> <td width="827" height="1808" valign="top" bgcolor="#007FE0" rowspan="3"> <iframe id="ID_IFRAME" src="....." width="100%" height="98%" scrolling="yes" frameborder="0"></iframe> </td> </tr> </table> </body> </html> pour mettre un fichier ça va mes pour changer c'est dur dur....
merci
|
|
mardi 29 août 2006 à 21:53:45 |
Re : fichier texte.txt avec iframe

PetoleTeam
|
Les corrections a apporter sont en GRAS...
<html> <head> <title>page de visite </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
//-------------------------- function Load_Fichier( url_){
var Obj =document.getElementById('ID_IFRAME');
Obj.src= url_;
}
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000"> <table cellspacing="0" cellpadding="0" border="0" width="100%" height="10%" align="center"> <tr> <td height="128" valign="top" colspan="3"></td> </tr> <tr> <td width="4" height="1808" valign="top" rowspan="3"></td> <td height="1808" colspan="2" valign="top"> <div id="navcontainer"> <ul id="navlist"> <li id="active"> <div align="center"><a href="#"
onclick="Load_Fichier('nom_fichier1');
">Fichier1</a></div> </li> <li> <div align="center"><a href="#"
onclick="Load_Fichier('nom_fichier2');
"
>Fichier2</a></div> </li> </ul> </div> </td> <td width="827" height="1808" valign="top" bgcolor="#007FE0" rowspan="3"> <iframe id="ID_IFRAME" src="....." width="100%" height="98%" scrolling="yes" frameborder="0"></iframe> </td> </tr> </table> </body> </html>
;0)
|
|
mardi 29 août 2006 à 22:07:55 |
Re : fichier texte.txt avec iframe

adec0127
|
j'ai copie le texte ça foncione pas
j'ai un probléme mes ou!!!
merci ;-(
|
|
mardi 29 août 2006 à 22:18:26 |
Re : fichier texte.txt avec iframe

PetoleTeam
|
au départ l'IFRAME doit avoir src=""
<IFRAME ID="ID_IFRAME" SRC="" width="100%" height="98%" scrolling="yes" frameborder="0"></IFRAME>
;0)
|
|
mardi 29 août 2006 à 22:47:36 |
Re : fichier texte.txt avec iframe

adec0127
|
rien à faire ça ne functione pas pa grave mes sur ton ordi ça fonctine merci
|
|
mardi 29 août 2006 à 23:08:03 |
Re : fichier texte.txt avec iframe

PetoleTeam
|
Cela fonctionne tout à fait bien en utilisant des nom_fichier1
et
nom_fichier2
présents sur mon disque.
Si ta page s'appelles index.htm mets
<div align="center"><a href="#"
onclick="Load_Fichier(
'index.htm'
);
">Fichier1</a></div>
ta page devrait s'auto charger...
;0)
|
|
Cette discussion est classée dans : fichier, texte, changer, txt, iframe
Répondre à ce message
Sujets en rapport avec ce message
écrire le contenu d'un fichier texte dans une page [ par DJDX ]
j'ai essayer avec :window.location = ("1.txt"); le résultat, ça marche, mais je peux seulement mettre un fichier par page.document.write(wind
Remplacer Fichier extérieur [ par mehdisadi ]
Je m'explique, j'ai ma page internet index.html, j'ai également un fichier texte dans /texte/bonjour.txt . Dans ce fichier, le texte est "Blabla" J'ai
Script pour decoder un fichier txt [ par thierry57680 ]
Bonjour Je recherche un script qui permet de décoder un fichier txt distant http://weather.noaa.gov/pub/data/observations/metar/stations/AGGH.TXT po
[BAR]Help [ par pitbull07100 ]
Bonjour a tous, Voila mon problème, j'ai un fichier txt en local qui récupère des info a partir d'un executable et qui ce met a jour toutes les 2seco
Changer texte Label ASP.NET avec JavaScript [ par SegmaMic ]
Bonjour, Je souhaiterais changer le texte d'un Label ASP.NET avec du JavaScript. J'ai déjà essayé pas mal de truc, genre : document.getElementById(
javascript probleme pour changer la couleur du texte [ par xavierlamotte ]
bonjour, Alors petit probleme. Je n'arrive pas a changer la couleur d'un texte en clicquan sur un bouton.j'arrive a change le bacKgroundColor du tex
Lire un fichier texte [ par christophedlr ]
Bonsoir,J'ai emprunter y a quelques jours un livre à la bibliothèque de la ville sur l'AJAX.J'en suis à la lecture de fichiers texte, mais ça fonction
Effacer une ligne dans fichier texte en php [ par michaelminelli1 ]
Bonjour, Ca fait deja un moment que je cherche sur le web comment supprimer une ligne dans un fichier texte, je vous explique plus en details : Ja'i
Traitement d'un fichier txt [ par abdestom ]
Bonjour,Je cherche un programme qui prend en paramètre d'entrée un fichier texte et produit un rapport décrivant le contenu du fichier (nombre de lign
Livres en rapport
|
Derniers Blogs
XNA IS DEAD!XNA IS DEAD! par richardc
Depuis la semaine dernière (et grâce aux TechDays 2012), je me penche activement sur la nouvelle version de Windows, aka Windows 8. Vous me direz, il était temps puisque la première preview date de Septembre dernier.
OK. Remarquez, on n'en est qu'aux...
Cliquez pour lire la suite de l'article par richardc TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 !TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 ! par ROMELARD Fabrice
Speakers: Fabrice Meillon et Stanislas Quastana Cette session est basée entièrement sur celle donnée lors de la BUILD cet hiver. Il n'y a pas d'ajout d'information en rapport avec cet évènement passé. Windows 8 Server sera intégralem...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice [HTML5] AUTOUR DU W3C : NOUVEAUX STANDARDS ET WEB MOBILE (LILLE)[HTML5] AUTOUR DU W3C : NOUVEAUX STANDARDS ET WEB MOBILE (LILLE) par Gio
Je m'y prends un peu tard je sais, mais bon je suis développeur web et donc hyper fainéant ! Toujours dans le cadre des technologies émergentes, ici HTML5, parce qu'on aime HTML5 chez Wyg , nous seront présent, le vieux ( Aurélien V.) et moi, pour pr...
Cliquez pour lire la suite de l'article par Gio [WP7] DYNAMICALLY CHANGE STARTUP PAGE[WP7] DYNAMICALLY CHANGE STARTUP PAGE par KooKiz
Let's say that you want to allow the user to customize the startup page of your application. You can easily change the startup page by editing the 'NavigationPage' attribute in the manifest file. But the manifest cannot be modified once the applicatio...
Cliquez pour lire la suite de l'article par KooKiz
Logiciels
DocTranslate (V3.1.0.0)DOCTRANSLATE (V3.1.0.0)DocTranslate est un traducteur de document Microsoft Word, PowerPoint et Excel. Il permet d'autom... Cliquez pour télécharger DocTranslate Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System
|