Sujet : [ouêb] variables de frame à frame |
dropsy |
essaye plutot ça:
function getvar()
{
alert(parent.principal.sid);
}
ça ça peut pas marcher!
href="recherche_docs.php?sid=getvar()" fait plutot href='#' onclick='javascript:getvar()'
et déclare getvar comme ça:
function getvar()
{
l'objetkivabien.href='recherche_docs.php?sid' + parent.principal.sid;
}
il faut remplacer l'objetkivabien, mais je sais plus par koi, va voir sur devguru.com (ou .net??) ou allhtml.com.
good luck :hello: |
vektorDirect |
une des syntaxes que j'ai essayé
Code :
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta name="GENERATOR" content="">
- <meta name="ProgId" content="FrontPage.Editor.Document">
- <title>navigation</title>
- <script language="javascript">
- function getvar()
- {
- parent.principal.sid;
- }
- </script>
- </head>
- <body background="images/fond_nav.gif" leftmargin="0" topmargin="0">
- <div align="left">
- <MAP name="onglets_nav">
- <AREA shape="rect" coords="16,27,141,41" href="recherche_docs.php?sid=getvar()" alt="Publications" target="principal">
- <AREA shape="rect" coords="16,48,141,62" href="recherche_infos.php" alt="Informations" target="principal">
- <AREA shape="rect" coords="16,69,141,83" href="recherche_sites.php" alt="Mot clefs" target="principal">
- <AREA shape="rect" coords="16,125,141,139" href="modif_fiche.php" alt="Gestion des fiches" target="principal">
- <AREA shape="rect" coords="16,146,141,160" href="gestion_base.php" alt="Gestion de la base" target="principal">
- </MAP>
- <IMG src="images/nav.gif" width="150" height="167" border="0" alt="Barre de navigation (Onglets)" usemap="#onglets_nav">
- </div>
- </body>
- </html>
|
[jfdsdjhfuetppo]--Message édité par vektorDirect--[/jfdsdjhfuetppo] |