Vous n'êtes pas identifié(e).
Bonjour,
j'ai un problème avec mon menu PHP, il fonctionne avec les pages html et pas avec les pages qui contient du PHP et JavaScript.
index.php
case 'actpro2':
$url="/Program files 2/wamp/www//maison/N4/X10/Activehome-Pro-Controle-X10/ahp-nom.php";break;
case 'x10':
$url="/Program files 2/wamp/www//maison/N4/X10/MySQL/Controle-X10-bouton/x10-bouton-mysql-lecture-A-O.php";break;
}
require_once('/Program files 2/wamp/www//maison/commun/template/entete.php');
require_once($url);
require_once('/Program files 2/wamp/www//maison/commun/template/retour.php');
require_once('/Program files 2/wamp/www//maison/N4/template/pied.php3');
?>
menu-index-php
et si je met ceci, la page vas s'afficher, mais lorsque que je clique sur un bouton submit cela ne fonction pas, comme si le php de la page été neutralisé, et lorsque je tape le lien directe dans le navigateur sans passé pas le menu php tout fonctionne, pouvez vous me dire pourquoi le menu en php fait sa.
et pour que la page fonctionne je suis obligé de mettre ceci :
Dans ce cas la y a aucun intéré a mettre un menu en php pour caché les liens et l'adresse url dans le navigateur.
Alors pourquoi, que ce passe t'il ???
Merci
Win XP Pro | WampServer 2.0 | Apache 2.2.8 | Php 5.2.6 | MySQL 5.0.5.1b
Hors ligne
Ce sont les liens que tu as mis dans ton switch qui ne vont pas. Compares les par rapport à ce que tu mets dans ton <a href= pour voir la différence.
Déjà quel est l'intérêt de lister à partir du disque dur ? Un lien à partir du www devrait amplement suffir. Et pourquoi ne pas même gérer à partir de la racine du site ? Elle est pas censée être mouvante cette racine donc il n'y a pas de soucis.
Hors ligne
Bonsoir,
Je suis d'accord avec vous, seulement quand je met :
il m'affiche l'erreur
Warning: require_once(/maison/N4/X10/MySQL/Controle-X10-bouton/x10-bouton-mysql-lecture-A-O.php) [function.require-once]: failed to open stream: No such file or directory in L:\Program files 2\wamp\www\maison\N4\index.php on line 25
Fatal error: require_once() [function.require]: Failed opening required '/maison/N4/X10/MySQL/Controle-X10-bouton/x10-bouton-mysql-lecture-A-O.php' (include_path='.;C:\php5\pear') in L:\Program files 2\wamp\www\maison\N4\index.php on line 25
La ligne 25 de index.php est :
Quand je tape ceci directement dans le navigateur, les boutons submit fonctionne
Alors quel est la différence avec celle-ci qui ne veut pas fonctionné avec les bouton submit :
j'ai testé avec :
-----------------
Le chemin relatif
Le chemin relatif
Le chemin relatif
La par contre la page s'affiche mais les boutons submit ne fonctionne pas.
Le chemin absolu
Je ne sais plus ou donné de la tête.
Aidez moi svp
Dernière modification par xunil2003 (19-03-2010 01:37:17)
Win XP Pro | WampServer 2.0 | Apache 2.2.8 | Php 5.2.6 | MySQL 5.0.5.1b
Hors ligne
Fonctionne en chemin relatif, on s'y perd moins et c'est moins long...
Je pense que le problème de tes submits (dont tu ne nous a rien montré) reste le même et revient à un micmac pas possible d'adresse.
Hors ligne
Code des boutons submit en php :
Le forum me repond : 65535 caractères de long (64 ko), donc je vous fournie un lien :
Pour voir le code --> http://paste.pocoo.org/show/191458/
Le JavaScript aussi ne fonctionne pas, tout comme le php les pages s'affiche mais les boutons ne fonctionne pas.
Command_logger.html
<!--//
This page loads the ActiveHome Pro scripting object and
uses the RecvAction to populate a string that is displayed
in the TextArea in the middle of the page. It also can be
used to pop op the PalmPad sample application for sending
commands throught the ActiveHome Scripting Interface.
The script for loading the object is at the end of the page.
//-->
<script type="text/javascript" language="javascript">
<!--//
//Create the Popup window for the PalmPad App
function lPalmPad() {
window.open("./X10/palmpad/palmpad.html","PalmPad","width=280,height=450,status=1");
}
//-->
</script>
</head>
<body>
<form name="myForm">
<center>
<table><tr><td>
<input type="button" value="Launch PalmPad" onClick="lPalmPad();"><BR>
<!--//
This is the area where the text is displayed. When the CM15A recieves data.
//-->
<textarea NAME="text1" rows="24" cols="80" style="background-color:#000000;color:#FFFFFF;"></textarea><BR>
</form>
</td></tr>
</table>
</center>
<p>
<!--//
Load the ActiveHome Scripting Object. Since the CLSID is correct, the codebase doesn't need a full path for the dll
//-->
<OBJECT ID="ActiveHomeObj" width=0 height=0 classid="CLSID:001000AF-2DEF-0208-10B6-DC5BA692C858" codebase="ahscript.dll" standby="Loading X10 net components..." type="application/x-oleobject">
</OBJECT>
<!--//
Read incoming events as they come in using the RecvAction function, parameters as follows:
commandString = type of command coming in: "recplc" is a powerline signal; "recvrf" is a radio-frequency signal
param1 = the address of the received command, "a1" to "p16"
param2 = the command received: a string -- see help documentation for complete reference of PLC and RF commands
param3 = first string of additional data: dim level for a PLC dim, PLC extended code command data, or the KeyUp/KeyDown/Sequence data for an RF command (see the help for more information)
param4 = second additional data string: if PLC, data for an extended command; for RF commands, the timestamp of the command
param5 = unused for now
param6 = unused for now
//-->
<!--//
Here we build a string out of the received parameters and assign the value of our text area to the new string. This is updated automatically as new commands come in.
//-->
<SCRIPT FOR="ActiveHomeObj" EVENT="RecvAction( commandString, param1, param2, param3, param4, param5, param6)" LANGUAGE="Jscript">
myForm.text1.value = commandString+" "+param1+" "+param2+" "+param3+" "+param4+" "+param5+"\n"+myForm.text1.value;
</SCRIPT>
Il m'affiche ce message :
<!--// Read incoming events as they come in using the RecvAction function, parameters as follows: commandString = type of command coming in: "recplc" is a powerline signal; "recvrf" is a radio-frequency signal param1 = the address of the received command, "a1" to "p16" param2 = the command received: a string -- see help documentation for complete reference of PLC and RF commands param3 = first string of additional data: dim level for a PLC dim, PLC extended code command data, or the KeyUp/KeyDown/Sequence data for an RF command (see the help for more information) param4 = second additional data string: if PLC, data for an extended command; for RF commands, the timestamp of the command param5 = unused for now param6 = unused for now //-->
palmpad.php qui est associé à Command_logger.html
The script for loading the object is at the end of the page.
The basic method here is to build a PLC command string based
on input in the user interface, and then call SendAction. This
simple demo only needs a few strings to work:
addresses: "a1" to "p16"
command: "on", "off", "bright", or "dim"
dim level: [only needed for dim and bright] "1" to "100"
Put these together in one string (here we use commandString as the
variable name) and you can call SendAction like this:
ActiveHomeObj.SendAction("sendplc", commandString);
If you wanted to send a constant, you could do so like this:
ActiveHomeObj.SendAction("sendplc", "a1 dim 50");
*/
//-->
print("<SCRIPT language=JavaScript1.2>");
//print(" <script type="text/javascript"> ");
print(" if(window.ActiveXObject) { ");
//var ActiveHomeObj = new ActiveXObject("X10.ActiveHome");
print(" } else { ");
print(" alert("This script was design to work with Internet Explore 5 and up"); ");
print(" } ");
print(" //PALMPAD VARS ");
print(" var houseCode = "A";//default ");
print(" var unitCode = 1; //default ");
print(" var signalCode = "ON"; ");
print(" var unitCodeSwitch = 1; // set differ between 1-8 or 9-16 ");
print(" var lastCommandCode = "A1"; //default command ");
print(" var lightTimerID = ""; ");
print(" var palmShow = 0; ");
print(" //LABAL Arrays ");
print(" var padALabelArray = new Array(); ");
print(" var padBLabelArray = new Array(); ");
print(" var padCLabelArray = new Array(); ");
print(" var padDLabelArray = new Array(); ");
print(" var padELabelArray = new Array(); ");
print(" var padFLabelArray = new Array(); ");
print(" var padGLabelArray = new Array(); ");
print(" var padHLabelArray = new Array(); ");
print(" var padILabelArray = new Array(); ");
print(" var padJLabelArray = new Array(); ");
print(" var padKLabelArray = new Array(); ");
print(" var padLLabelArray = new Array(); ");
print(" var padMLabelArray = new Array(); ");
print(" var padNLabelArray = new Array(); ");
print(" var padOLabelArray = new Array(); ");
print(" var padPLabelArray = new Array(); ");
print(" if (document.images)
print(" {
//PRELOAD PALMPAD GRAPHICS
print(" imgA = new Image(); ");
print(" imgA.src = "./art/palmpad/a.gif"; ");
print(" imgB = new Image(); ");
print(" imgB.src = "./art/palmpad/b.gif"; ");
?>
imgC = new Image();
imgC.src = "./art/palmpad/c.gif";
imgD = new Image();
imgD.src = "./art/palmpad/d.gif";
imgE = new Image();
imgE.src = "./art/palmpad/e.gif";
imgF = new Image();
imgF.src = "./art/palmpad/f.gif";
imgG = new Image();
imgG.src = "./art/palmpad/g.gif";
imgH = new Image();
imgH.src = "./art/palmpad/h.gif";
imgI = new Image();
imgI.src = "./art/palmpad/i.gif";
imgJ = new Image();
imgJ.src = "./art/palmpad/j.gif";
imgK = new Image();
imgK.src = "./art/palmpad/k.gif";
imgL = new Image();
imgL.src = "./art/palmpad/l.gif";
imgM = new Image();
imgM.src = "./art/palmpad/m.gif";
imgN = new Image();
imgN.src = "./art/palmpad/n.gif";
imgO = new Image();
imgO.src = "./art/palmpad/o.gif";
imgP = new Image();
imgP.src = "./art/palmpad/p.gif";
Switch1on = new Image();
Switch1on.src = "./art/palmpad/switch18.gif";
Switch1off = new Image();
Switch1off.src = "./art/palmpad/switch916.gif";
Button1on = new Image();
Button1on.src = "./art/palmpad/Button1_on.gif";
Button2on = new Image();
Button2on.src = "./art/palmpad/Button1_on.gif";
Button3on = new Image();
Button3on.src = "./art/palmpad/Button1_on.gif";
Button4on = new Image();
Button4on.src = "./art/palmpad/Button1_on.gif";
Button5on = new Image();
Button5on.src = "./art/palmpad/Button1_on.gif";
Button6on = new Image();
Button6on.src = "./art/palmpad/Button1_on.gif";
Button7on = new Image();
Button7on.src = "./art/palmpad/Button1_on.gif";
Button8on = new Image();
Button8on.src = "./art/palmpad/Button1_on.gif";
Button9on = new Image();
Button9on.src = "./art/palmpad/Button1_on.gif";
Button10on = new Image();
Button10on.src = "./art/palmpad/Button1_on.gif";
Button11on = new Image();
Button11on.src = "./art/palmpad/Button1_on.gif";
Button12on = new Image();
Button12on.src = "./art/palmpad/Button1_on.gif";
Button13on = new Image();
Button13on.src = "./art/palmpad/Button1_on.gif";
Button14on = new Image();
Button14on.src = "./art/palmpad/Button1_on.gif";
Button15on = new Image();
Button15on.src = "./art/palmpad/Button1_on.gif";
Button16on = new Image();
Button16on.src = "./art/palmpad/Button1_on.gif";
Button1off = new Image();
Button1off.src = "./art/palmpad/Button1_off.gif";
Button2off = new Image();
Button2off.src = "./art/palmpad/Button1_off.gif";
Button3off = new Image();
Button3off.src = "./art/palmpad/Button1_off.gif";
Button4off = new Image();
Button4off.src = "./art/palmpad/Button1_off.gif";
Button5off = new Image();
Button5off.src = "./art/palmpad/Button1_off.gif";
Button6off = new Image();
Button6off.src = "./art/palmpad/Button1_off.gif";
Button7off = new Image();
Button7off.src = "./art/palmpad/Button1_off.gif";
Button8off = new Image();
Button8off.src = "./art/palmpad/Button1_off.gif";
Button9off = new Image();
Button9off.src = "./art/palmpad/Button1_off.gif";
Button10off = new Image();
Button10off.src = "./art/palmpad/Button1_off.gif";
Button11off = new Image();
Button11off.src = "./art/palmpad/Button1_off.gif";
Button12off = new Image();
Button12off.src = "./art/palmpad/Button1_off.gif";
Button13off = new Image();
Button13off.src = "./art/palmpad/Button1_off.gif";
Button14off = new Image();
Button14off.src = "./art/palmpad/Button1_off.gif";
Button15off = new Image();
Button15off.src = "./art/palmpad/Button1_off.gif";
Button16off = new Image();
Button16off.src = "./art/palmpad/Button1_off.gif";
Dim1on = new Image();
Dim1on.src = "./art/palmpad/dim_left_on.gif";
Dim2on = new Image();
Dim2on.src = "./art/palmpad/dim_right_on.gif";
Dim1off = new Image();
Dim1off.src = "./art/palmpad/dim_left_off.gif";
Dim2off = new Image();
Dim2off.src = "./art/palmpad/dim_right_off.gif";
lighton = new Image();
lighton.src = "./art/palmpad/light_on.gif";
lightoff = new Image();
lightoff.src = "./art/palmpad/light_off.gif";
Num1on = new Image();
Num1on.src = "./art/palmpad/num1.gif";
Num2on = new Image();
Num2on.src = "./art/palmpad/num2.gif";
Num3on = new Image();
Num3on.src = "./art/palmpad/num3.gif";
Num4on = new Image();
Num4on.src = "./art/palmpad/num4.gif";
Num5on = new Image();
Num5on.src = "./art/palmpad/num5.gif";
Num6on = new Image();
Num6on.src = "./art/palmpad/num6.gif";
Num7on = new Image();
Num7on.src = "./art/palmpad/num7.gif";
Num8on = new Image();
Num8on.src = "./art/palmpad/num8.gif";
Num9on = new Image();
Num9on.src = "./art/palmpad/num9.gif";
Num10on = new Image();
Num10on.src = "./art/palmpad/num10.gif";
Num11on = new Image();
Num11on.src = "./art/palmpad/num11.gif";
Num12on = new Image();
Num12on.src = "./art/palmpad/num12.gif";
Num13on = new Image();
Num13on.src = "./art/palmpad/num13.gif";
Num14on = new Image();
Num14on.src = "./art/palmpad/num14.gif";
Num15on = new Image();
Num15on.src = "./art/palmpad/num15.gif";
Num16on = new Image();
Num16on.src = "./art/palmpad/num16.gif";
}
//STARTING PALMPAD FUNCTIONS
function getHCode(Letter)
{
var z = 0;
houseCode = Letter;
document.images.SWITCH.src = eval("img" + Letter + ".src");
if(unitCodeSwitch == 2)
{
for(i=8;i<=15;i++)
{
var TextArea = "myText"+z;
if(eval("pad"+houseCode+"LabelArray["+i+"]"))
{
var Text = eval("pad"+houseCode+"LabelArray["+i+"]");
}
else
{
var Text = "";
}
ChangeText(TextArea,null,Text)
z++;
}
}
else if(unitCodeSwitch == 1)
{
for(i=0;i<=7;i++)
{
var TextArea = "myText"+i;
if(eval("pad"+houseCode+"LabelArray["+i+"]"))
{
var Text = eval("pad"+houseCode+"LabelArray["+i+"]");
}
else
{
var Text = "";
}
ChangeText(TextArea,null,Text)
}
}
}
//FUNCTION FOR SENDING HOUSE CODE COMMANDS
function getUSCode(Button1,OnOff)
{
var commandString = "";
if(Button1 != "dimmer") {
if (unitCodeSwitch == 2) {
Button1 = parseInt(Button1) + 8;
}
//Build the command string to send out
commandString = houseCode+Button1+" "+OnOff;
//remember the houseCode sent for dim buttons
lastCommandCode = houseCode+Button1;
} else {
//Build the command string to send out of dim
commandString = lastCommandCode+" "+OnOff+" 50";
}
document.images.light.src = eval("lighton.src");
ActiveHomeObj.SendAction("sendplc",commandString);
lightTimerID = setTimeout('lightOff();',1000);
}
//GET CODE SWITCH VALUE
function getCSwitch(imgName)
{
var i = 0;
var z = 0;
if(unitCodeSwitch == 1)
{
document.images[imgName].src = eval(imgName + "off.src");
document.images.NUM1.src = eval("Num9on.src");
document.images.NUM2.src = eval("Num10on.src");
document.images.NUM3.src = eval("Num11on.src");
document.images.NUM4.src = eval("Num12on.src");
document.images.NUM5.src = eval("Num13on.src");
document.images.NUM6.src = eval("Num14on.src");
document.images.NUM7.src = eval("Num15on.src");
document.images.NUM8.src = eval("Num16on.src");
for(i=8;i<=15;i++)
{
var TextArea = "myText"+z;
if(eval("pad"+houseCode+"LabelArray["+i+"]"))
{
var Text = eval("pad"+houseCode+"LabelArray["+i+"]");
}
else
{
var Text = "";
}
ChangeText(TextArea,null,Text)
z++;
}
unitCodeSwitch = 2;
}
else if(unitCodeSwitch == 2)
{
document.images[imgName].src = eval(imgName + "on.src");
document.images.NUM1.src = eval("Num1on.src");
document.images.NUM2.src = eval("Num2on.src");
document.images.NUM3.src = eval("Num3on.src");
document.images.NUM4.src = eval("Num4on.src");
document.images.NUM5.src = eval("Num5on.src");
document.images.NUM6.src = eval("Num6on.src");
document.images.NUM7.src = eval("Num7on.src");
document.images.NUM8.src = eval("Num8on.src");
for(i=0;i<=7;i++)
{
var TextArea = "myText"+i;
if(eval("pad"+houseCode+"LabelArray["+i+"]"))
{
var Text = eval("pad"+houseCode+"LabelArray["+i+"]");
}
else
{
var Text = "";
}
ChangeText(TextArea,null,Text)
}
unitCodeSwitch = 1;
}
}
//PALMPAD IMAGE OVER FUNCTION
function ppImgOn(imgName)
{
document.images[imgName].src = eval(imgName + "on.src");
}
//PALMPAD IMAGE OFF FUNCTION
function ppImgOff(imgName)
{
document.images[imgName].src = eval(imgName + "off.src");
}
//TURN LIGHT OFF
function lightOff()
{
document.images.light.src = eval("lightoff.src");
clearTimeout(lightTimerID);
}
//SHOW/HIDE PALMPAD FUNCTION
function PalmPop()
{
if(palmShow == 0)
{
document.all.ppControl.style.visibility = "visible";
document.all.myText0.style.visibility = "visible";
document.all.myText1.style.visibility = "visible";
document.all.myText2.style.visibility = "visible";
document.all.myText3.style.visibility = "visible";
document.all.myText4.style.visibility = "visible";
document.all.myText5.style.visibility = "visible";
document.all.myText6.style.visibility = "visible";
document.all.myText7.style.visibility = "visible";
palmShow = 1;
}
else if(palmShow == 1)
{
document.all.ppControl.style.visibility = "hidden";
document.all.myText0.style.visibility = "hidden";
document.all.myText1.style.visibility = "hidden";
document.all.myText2.style.visibility = "hidden";
document.all.myText3.style.visibility = "hidden";
document.all.myText4.style.visibility = "hidden";
document.all.myText5.style.visibility = "hidden";
document.all.myText6.style.visibility = "hidden";
document.all.myText7.style.visibility = "hidden";
palmShow = 0;
}
}
function nameLabel(labelNum,nestLyr,Type)
{
var ArrayNum = 0;
var displayText = "";
var TextArea = "myText"+labelNum;
if(unitCodeSwitch == 2 && Type == 1)
{
ArrayNum = labelNum + 8;
}
else
{
ArrayNum = labelNum;
}
if(eval("pad"+houseCode+"LabelArray["+ArrayNum+"]"))
{
displayText = eval("pad"+houseCode+"LabelArray["+ArrayNum+"]");
}
var newWnd = window.open("","ControlPrompt","width=256,height=100");
var ControlForm = "<html>\n";
ControlForm += "<head>\n";
ControlForm += "<title>Text Editor</title>\n";
ControlForm += "</head>\n";
ControlForm += "<body bgcolor=\"#C0C0C0\"><center>\n";
ControlForm += "<table width=100% height=100%><tr><td align=center valign=center>\n";
ControlForm += "<table><tr><td>\n";
ControlForm += "<form name=\"form1\" onsubmit=\"window.opener.pad"+houseCode+"LabelArray["+ArrayNum+"]=document.form1.label.value;window.opener.ChangeText('"+TextArea+"',"+nestLyr+",document.form1.label.value);self.close();return true;\">\n";
ControlForm += "<input name=\"label\" type=\"text\" value=\""+displayText+"\" maxlength=10>\n";
ControlForm += "<input type=\"Button\" value=\"Change\" onClick=\"window.opener.pad"+houseCode+"LabelArray["+ArrayNum+"]=document.form1.label.value;window.opener.ChangeText('"+TextArea+"',"+nestLyr+",document.form1.label.value);self.close();return true;\">\n";
ControlForm += "</form>\n";
ControlForm += "</td></tr></table>\n";
ControlForm += "</td></tr></table>\n";
ControlForm += "</center></body>\n";
ControlForm += "</html>\n";
newWnd.document.open();
newWnd.document.write(ControlForm);
newWnd.document.close();
}
//Layer Write Code
function ChangeText(TextArea,nestLyr,Text)
{
document.all[TextArea].innerHTML = Text;
}
</script>
<style type="text/css">
#ppControl{position:absolute; left:0; top:0;}
#myText0{position:absolute; left:44; top:29; width:100px; height:20px;}
#myText1{position:absolute; left:44; top:69; width:100px; height:20px;}
#myText2{position:absolute; left:44; top:109; width:100px; height:20x;}
#myText3{position:absolute; left:44; top:149; width:100px; height:20px;}
#myText4{position:absolute; left:44; top:189; width:100px; height:20px;}
#myText5{position:absolute; left:44; top:229; width:100px; height:20px;}
#myText6{position:absolute; left:44; top:269; width:100px; height:20px;}
#myText7{position:absolute; left:44; top:309; width:100px; height:20px;}
</style>
</head>
<MAP NAME="hswitch">
<AREA SHAPE=POLY COORDS="58,13,54,0,73,0,68,15,58,15,59,15,58,13" HREF="javascript:getHCode('A');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="68,15,75,0,89,1,75,17,68,14,68,15" HREF="javascript:getHCode('B');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="74,17,89,1,102,11,80,24,74,17" HREF="javascript:getHCode('C');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="80,24,102,12,101,27,83,31,80,24" HREF="javascript:getHCode('D');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="83,31,102,28,101,43,82,40,83,31" HREF="javascript:getHCode('E');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="81,41,101,43,97,56,78,47,81,41" HREF="javascript:getHCode('F');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="78,48,97,57,89,69,74,53,78,48" HREF="javascript:getHCode('G');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="74,54,88,68,73,75,68,55,73,54,74,54" HREF="javascript:getHCode('H');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="67,54,72,76,55,76,59,55,69,55,67,54" HREF="javascript:getHCode('I');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="58,53,54,76,42,69,52,53,57,56,58,53" HREF="javascript:getHCode('J');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="51,52,41,71,30,57,46,47,50,53,51,52" HREF="javascript:getHCode('K');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="46,45,29,58,26,45,43,40,45,46,46,45" HREF="javascript:getHCode('L');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="43,39,24,44,25,29,42,31,42,40,43,39" HREF="javascript:getHCode('M');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="42,31,23,28,29,16,45,23,41,31,42,31" HREF="javascript:getHCode('N');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="45,23,28,15,33,0,50,17,45,23" HREF="javascript:getHCode('O');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=POLY COORDS="51,18,35,1,53,0,59,16,51,18" HREF="javascript:getHCode('P');" onMouseover="window.status='';" onMouseout="window.status='';">
<AREA SHAPE=default HREF="javascript:getHCode('A');" onMouseover="window.status='';" onMouseout="window.status='';">
</MAP>
<body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 bgcolor="#FFFFFF">
<!--[PALM PAD]-->
<div ID="ppControl">
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td>
<img src="./art/palmpad/pad_01.gif" width=112 height=25></td>
<td rowspan=29>
<img name="pad_02" src="./art/palmpad/pad_02.gif" width=38 height=450></td>
<td rowspan=2>
<img name="pad_03" src="./art/palmpad/pad_03.gif" width=34 height=34></td>
<td colspan=3 rowspan=2>
<img NAME="light" src="./art/palmpad/light_off.gif" width=95 height=34></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=25></td>
</tr>
<tr>
<td rowspan=3>
<a href="javascript:nameLabel(0,null,1);"><img name="NUM1" src="./art/palmpad/num1.gif" border=0 width=112 height=40></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=9></td>
</tr>
<tr>
<td>
<a href="javascript:getUSCode(1,'on');" onMouseOver="ppImgOn('Button1');window.status='';" onMouseout="ppImgOff('Button1');window.status='';">
<img name="Button1" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img name="pad_07" src="./art/palmpad/pad_07.gif" width=21 height=21></td>
<td>
<a href="javascript:getUSCode(1,'off');" onMouseOver="ppImgOn('Button2');window.status='';" onMouseout="ppImgOff('Button2');window.status='';">
<img name="Button2" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td rowspan=27>
<img src="./art/palmpad/pad_09.gif" width=40 height=416></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=21></td>
</tr>
<tr>
<td colspan=3 rowspan=2>
<img src="./art/palmpad/pad_10.gif" width=89 height=19></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=10></td>
</tr>
<tr>
<td rowspan=3>
<a href="javascript:nameLabel(1,null,1);"><img name="NUM2" src="./art/palmpad/num2.gif" border=0 width=112 height=39></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=9></td>
</tr>
<tr>
<td>
<a href="javascript:getUSCode(2,'on');" onMouseOver="ppImgOn('Button3');window.status='';" onMouseout="ppImgOff('Button3');window.status='';">
<img name="Button3" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/pad_07.gif" width=21 height=21></td>
<td>
<a href="javascript:getUSCode(2,'off');" onMouseOver="ppImgOn('Button4');window.status='';" onMouseout="ppImgOff('Button4');window.status='';">
<img name="Button4" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=21></td>
</tr>
<tr>
<td colspan=3 rowspan=2>
<img src="./art/palmpad/pad_10.gif" width=89 height=19></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=9></td>
</tr>
<tr>
<td rowspan=3>
<a href="javascript:nameLabel(2,null,1);"><img name="NUM3" src="./art/palmpad/num3.gif" border=0 width=112 height=41></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=10></td>
</tr>
<tr>
<td>
<a href="javascript:getUSCode(3,'on');" onMouseOver="ppImgOn('Button5');window.status='';" onMouseout="ppImgOff('Button5');window.status='';">
<img name="Button5" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/pad_07.gif" width=21 height=21></td>
<td>
<a href="javascript:getUSCode(3,'off');" onMouseOver="ppImgOn('Button6');window.status='';" onMouseout="ppImgOff('Button6');window.status='';">
<img name="Button6" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=21></td>
</tr>
<tr>
<td colspan=3 rowspan=2>
<img src="./art/palmpad/pad_10.gif" width=89 height=19></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=10></td>
</tr>
<tr>
<td rowspan=3>
<a href="javascript:nameLabel(3,null,1);"><img name="NUM4" src="./art/palmpad/num4.gif" border=0 width=112 height=40></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=9></td>
</tr>
<tr>
<td>
<a href="javascript:getUSCode(4,'on');" onMouseOver="ppImgOn('Button7');window.status='';" onMouseout="ppImgOff('Button7');window.status='';">
<img name="Button7" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/pad_07.gif" width=21 height=21></td>
<td>
<a href="javascript:getUSCode(4,'off');" onMouseOver="ppImgOn('Button8');window.status='';" onMouseout="ppImgOff('Button8');window.status='';">
<img name="Button8" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=21></td>
</tr>
<tr>
<td colspan=3 rowspan=2>
<img src="./art/palmpad/pad_10.gif" width=89 height=19></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=10></td>
</tr>
<tr>
<td rowspan=3>
<a href="javascript:nameLabel(4,null,1);"><img name="NUM5" src="./art/palmpad/num5.gif" border=0 width=112 height=39></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=9></td>
</tr>
<tr>
<td>
<a href="javascript:getUSCode(5,'on');" onMouseOver="ppImgOn('Button9');window.status='';" onMouseout="ppImgOff('Button9');window.status='';">
<img name="Button9" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/pad_07.gif" width=21 height=21></td>
<td>
<a href="javascript:getUSCode(5,'off');" onMouseOver="ppImgOn('Button10');window.status='';" onMouseout="ppImgOff('Button10');window.status='';">
<img name="Button10" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=21></td>
</tr>
<tr>
<td colspan=3 rowspan=2>
<img src="./art/palmpad/pad_10.gif" width=89 height=19></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=9></td>
</tr>
<tr>
<td rowspan=3>
<a href="javascript:nameLabel(5,null,1);"><img name="NUM6" src="./art/palmpad/num6.gif" border=0 width=112 height=41></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=10></td>
</tr>
<tr>
<td>
<a href="javascript:getUSCode(6,'on');" onMouseOver="ppImgOn('Button11');window.status='';" onMouseout="ppImgOff('Button11');window.status='';">
<img name="Button11" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/pad_07.gif" width=21 height=21></td>
<td>
<a href="javascript:getUSCode(6,'off');" onMouseOver="ppImgOn('Button12');window.status='';" onMouseout="ppImgOff('Button12');window.status='';">
<img name="Button12" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=21></td>
</tr>
<tr>
<td colspan=3 rowspan=2>
<img src="./art/palmpad/pad_10.gif" width=89 height=19></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=10></td>
</tr>
<tr>
<td rowspan=3>
<a href="javascript:nameLabel(6,null,1);"><img name="NUM7" src="./art/palmpad/num7.gif" border=0 width=112 height=40></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=9></td>
</tr>
<tr>
<td>
<a href="javascript:getUSCode(7,'on');" onMouseOver="ppImgOn('Button13');window.status='';" onMouseout="ppImgOff('Button13');window.status='';">
<img name="Button13" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/pad_07.gif" width=21 height=21></td>
<td>
<a href="javascript:getUSCode(7,'off');" onMouseOver="ppImgOn('Button14');window.status='';" onMouseout="ppImgOff('Button14');window.status='';">
<img name="Button14" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=21></td>
</tr>
<tr>
<td colspan=3 rowspan=2>
<img src="./art/palmpad/pad_10.gif" width=89 height=19></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=10></td>
</tr>
<tr>
<td rowspan=3>
<a href="javascript:nameLabel(7,null,1);"><img name="NUM8" src="./art/palmpad/num8.gif" border=0 width=112 height=40></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=9></td>
</tr>
<tr>
<td>
<a href="javascript:getUSCode(8,'on');" onMouseOver="ppImgOn('Button15');window.status='';" onMouseout="ppImgOff('Button15');window.status='';">
<img name="Button15" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/pad_07.gif" width=21 height=21></td>
<td>
<a href="javascript:getUSCode(8,'off');" onMouseOver="ppImgOn('Button16');window.status='';" onMouseout="ppImgOff('Button16');window.status='';">
<img name="Button16" src="./art/palmpad/Button1_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=21></td>
</tr>
<tr>
<td colspan=3 rowspan=2>
<img src="./art/palmpad/pad_45.gif" width=89 height=19></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=10></td>
</tr>
<tr>
<td rowspan=4>
<img NAME="SWITCH" src="./art/palmpad/a.gif" border=0 width=112 height=105 USEMAP="#hswitch"></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=9></td>
</tr>
<tr>
<td>
<a href="javascript:getUSCode('dimmer','bright');" onMouseOver="ppImgOn('Dim1');window.status='';" onMouseOut="ppImgOff('Dim1');window.status='';">
<img name="Dim1" src="./art/palmpad/dim_left_off.gif" width=34 height=21 border=0></a></td>
<td>
<img name="pad_48" src="./art/palmpad/pad_48.gif" width=21 height=21></td>
<td>
<a href="javascript:getUSCode('dimmer','dim');" onMouseOver="ppImgOn('Dim2');window.status='';" onMouseOut="ppImgOff('Dim2');window.status='';">
<img name="Dim2" src="./art/palmpad/dim_right_off.gif" width=34 height=21 border=0></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=21></td>
</tr>
<tr>
<td colspan=3>
<img src="./art/palmpad/pad_50.gif" width=89 height=15></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=15></td>
</tr>
<tr>
<td colspan=3>
<a href="javascript:getCSwitch('Switch1');" onMouseover="window.status='';" onMouseout="window.status='';">
<img name="Switch1" src="./art/palmpad/switch18.gif" width=89 height=60 border=0></a></td>
<td>
<img src="./art/palmpad/spacer.gif" width=1 height=60></td>
</tr>
</table>
</div>
<DIV ID="myText0">
</DIV>
<DIV ID="myText1">
</DIV>
<DIV ID="myText2">
</DIV>
<DIV ID="myText3">
</DIV>
<DIV ID="myText4">
</DIV>
<DIV ID="myText5">
</DIV>
<DIV ID="myText6">
</DIV>
<DIV ID="myText7">
</DIV>
<p>
<!--//
Load the ActiveHome Scripting Object. Since the CLSID is correct, the codebase doesn't need a full path for the dll
//-->
<OBJECT ID="ActiveHomeObj" width=0 height=0 classid="CLSID:001000AF-2DEF-0208-10B6-DC5BA692C858" codebase="ahscript.dll" standby="Loading ActiveHome components..." type="application/x-oleobject">
</OBJECT>
</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
print("</SCRIPT>");
?>
Merci.
Win XP Pro | WampServer 2.0 | Apache 2.2.8 | Php 5.2.6 | MySQL 5.0.5.1b
Hors ligne
L'attribut action de tes formulaires sont vide, c'est donc normal que lorsque tu envoies ton formulaire cela ne fasse rien.
Pour le code javascript euh... Tu utilises quoi comme navigateur ? Il me semble que l'activeX n'est présent que sous IE, donc si tu utilises Firefox c'est tout à fait normal que cela ne fonctionne pas.
Hors ligne
bonjour,
Je ne comprend pas ce que je doit mettre à l'attribut action="" car si je met dans la page concerné nommé x10-bouton-mysql-lecture-A-O.php:
et dans index.php
et menu-index.php
J'ai le message d'erreur :
Not Found
The requested URL /maison/N4/maison/index.php was not found on this server.
Pour Javascript j'ai rectifier les lien par ceci :
sa fonctione sans problême.
Effectivement j'utilise Firebox, je ne sais pas si il y a un plug-ing javascript pour firebox mais je regarderai plus tard, cependant avec IE 7 et 8 sa fonctionne sans problème particulier.
Merci.
Dernière modification par xunil2003 (19-03-2010 13:08:23)
Win XP Pro | WampServer 2.0 | Apache 2.2.8 | Php 5.2.6 | MySQL 5.0.5.1b
Hors ligne
Ce n'est pas du javascript, c'est de l'activeX, c'est une technologie microsoft.
Donc pour le faire fonctionner sous firefox tu peux attendre l'an 3000. ^^
Ton site ne fonctionnera donc que sous IE.
Sinon pour ton problème de page c'est toujours le même soucis qu'avant... Si tu essayes d'afficher une page qui ne se trouve pas dans le même dossier beh évidemment il faut indiquer le chemin vers ce fichier...
Hors ligne
Ok, mais alors comment lui indiquer le chemin vers ce fichier
car si je mais a action ceci
La sa fonctionne mais l'adresse de url indiqué dans le navigateur n'est pas caché comme ceci
elle affiche a la place
Donc comment faire ?
Merci.
Dernière modification par xunil2003 (19-03-2010 13:54:18)
Win XP Pro | WampServer 2.0 | Apache 2.2.8 | Php 5.2.6 | MySQL 5.0.5.1b
Hors ligne
Je parlais du lien vers ton fichier index.php en fait...
Ton but est de mettre le lien vers index.php?page=x10 dans une page qui n'est pas dans le même répertoire que ce dit fichier.
Autant te lâcher la solution car ça réfléchi pas dur...
Si j'ai bien compris l'organisation de tes dossiers.
Dernière modification par xTG (19-03-2010 15:53:10)
Hors ligne
Tout a fait le chemin relatif indiqué est bien normal, je les vérifie avec phpinfo, mais je ne comprenais pas pourquoi avec l'adresse absolue les boutons submit de ma page php et javascript ne fonctionné pas.
J'ai trouvé pourquoi les boutons submit ne fonctionné pas ainsi que Javascript
1/ Pour javascript j'ai tout mis en chemin relatif
2/ Pour PHP, dans index.php j'ai indiqué ceci :
case 'x10':
$url="X10/MySQL/Controle-X10-bouton/x10-bouton-mysql-lecture-A-O.php";break;
3/ j'ai laissé action vide ( action""" )
4/ Donc comme le fichier index.php et menu-index.php sont situé dans le répertoire L:\Program files 2\wamp\www\maison\N4 et que le chemin relatif de la variable $url est X10/MySQL/Controle-X10-bouton/x10-bouton-mysql-lecture-A-O.php et vue que pour javascript le chemin relatif est également X10/Activehome-Pro-Controle-X10/ahp-nom.php, deviné quel le sous répertoire avant : N4.
Il est donc forcement logique qu'il faut placer le fichier "ahcmd.exe" à cette endroit pour que les boutons submit fonctionne afin qu'il puisse trouver le fichier pour l'exécuter, et non dans le même répertoire ou ce trouve x10-bouton-mysql-lecture-A-O.php des boutons submit, c'est pourquoi lorsque l'on tape directement l'url dans le navigateur l'adresse http://192.168.0.1:8585/maison/N4/X10/M … re-A-O.php cela marché.
Je clôture la conversation.
Merci.
Win XP Pro | WampServer 2.0 | Apache 2.2.8 | Php 5.2.6 | MySQL 5.0.5.1b
Hors ligne