Bonjour,
j'utilise actuellement les class js prototype windows (http://prototype-window.xilinus.com/index.html)
Je rencontre un problème avec l'utilisation de la méthode setAjaxContent dans lequel je fais appel à un script php me renvoyant le resultat d'une requête, mis en forme.
J'ai testé le script php indépendement et il me renvoi bien des informations.
Lorsque j'execute le setAjaxContent j'obtient dans ma fenêtre :
"NOT FOUND
The requested document was not found on this server."
Je fais mon appel de la manière suivante:
Si quelqu'un à une idée sur mon problème ou pourrait orienté ma reflexion ça serait sympa car là .... je suis sec
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 function creerWinAjax(pId, pTitle, pWidth, pHeight, pTop, pLeft){ if(!document.getElementById(pId)){ var W= (pWidth / <?php echo $rapportW;?>); var H= (pHeight / <?php echo $rapportH;?>); var T= (pTop / <?php echo $rapportH;?>); var L= (pLeft / <?php echo $rapportW;?>); var pId = new Window({id: pId, className: "bluelighting", title: pTitle, width: W, height: H, top: T, left: L, opacity:1}); pId.setAjaxContent({url: 'news.php?typeC=NEWS', options: {method: 'GET'}}); pId.setDestroyOnClose(); if (!isIE()) pId.setZIndex(100); pId.show(); pId.toFront(); } else{ var obj = Windows.getWindow(pId); obj.show(); obj.toFront(); } }
Merci
Partager