Bonjour,
J'ai créé une fonction javascript qui ouvre une nouvelle fenêtre (un apercu avaznt imporession). Si la session a expiré, je dirige sur une autre page. Pour ça il faut que je teste si un objet est null.
Ma fonction et la suivante
1 2 3 4 5 6 7 8 9 10
| function openPrintFinSess(nom, results)
{
if (results == null) {
uri = "printproduct.do?nom=" + nom
window.open(uri,'','scrollbars=yes,resizable=yes,width=340,height=450')
} else {
uri = "printproduct.do?nom=" + nom
window.open(uri,'','scrollbars=yes,resizable=yes,width=680,height=700')
}
} |
le debogger firefox me dit :
missing ) after argument list
Alors que si j'affiche la source, j'ai bien ma parenthèse???!!!
1 2 3
| <a href="#" onClick="openPrintFacadeFinSess('108-F1-CX0154', fr.mbx.inventaire.ProductResults@1e3e7d2)">
Fenêtre d'impression
</a> |
Partager