Bonjour,
1) Le cadre
Je développe une ENT en php/js orienté AJAX et je souhaite pouvoir y intégrer des applications tiers
SweetHome3D offrant une applet de visualisation des fichiers sw3d, je souhaite l'intégrer en préview sur le site.
2) Le problème
Lorsque je place l'applet dans le dossier third/SweetHome3D du serveur il ne la charge pas avec le message
impossible d'ouvrir http://monserveur.com/lib/SweetHome3Dviewer.jar
La seule solution fonctionnant pour le moment est de placer l'applet dans le dossier lib
3) le code
<applet style="width: 1505px; height: 675px; position: absolute; top: 30px; left: 10px;" codebase="." code="com.eteks.sweethome3d.ap plet.SweetHome3DViewer" id="SweetHome3DViewer" archive="third/SweetHome3D/SweetHome3DViewer.jar,third/SweetHome3D/batik-svgpathparser-1.7.jar, third/SweetHome3D/windows/i386/java3d.jar" classpath="third/SweetHome3D/">
<param name="java_arguments" value="-Xmx640m"><param name="navigationPanel" value="true"><param name="homeURL" value="index_ajax.php?FRAMA_CA LLER=true&module=fichier&a mp;cmd=telecharger&id_fich ier=21&type=fichier"><para m name="jnlp_embedded" value="PD94bWwgdmVyc2lvbj0iMS4 wIj8+CjwhLS0KICAgU3dlZXRIb21lM 0RWaWV3ZXIuam5scCAKICAgCiAgIFN 3ZWV0IEhvbWUgM0QsIENvcHlyaWdod CAoYykgMjAxMyBFbW1hbnVlbCBQVVl CQVJFVCAvIGVUZWtzIDxpbmZvQGV0Z WtzLmNvbT4KICAgCiAgIFRoaXMgcHJ vZ3JhbSBpcyBmcmVlIHNvZnR3YXJlO yB5b3UgY2FuIHJlZGlzdHJpYnV0ZSB pdCBhbmQvb3IgbW9kaWZ5CiAgIGl0I HVuZGVyIHRoZSB0ZXJtcyBvZiB0aGU gR05VIEdlbmVyYWwgUHVibGljIExpY 2Vuc2UgYXMgcHVibGlzaGVkIGJ5CiA gIHRoZSBGcmVlIFNvZnR3YXJlIEZvd W5kYXRpb247IGVpdGhlciB2ZXJzaW9 uIDIgb2YgdGhlIExpY2Vuc2UsIG9yC iAgIChhdCB5b3VyIG9wdGlvbikgY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IgdmFsd WU9ImpvZ2wiLz4KICAgIDxqYXIgaHJ lZj0ibGliL21hY29zeC9qYXZhM2Qua mFyIi8+CiAgPC9yZXNvdXJjZXM+Cgo gIDxyZXNvdXJjZXMgb3M9IkxpbnV4I iBhcmNoPSJ4ODYgaTM4NiI+CiAgICA 8amFyIGhyZWY9ImxpYi9saW51eC9pM zg2L2phdmEzZC5qYXIiLz4KICA8L3J lc291cmNlcz4KICA8cmVzb3VyY2VzI G9zPSJMaW51eCIgYXJjaD0iYW1kNjQ geDg2XzY0Ij4KICAgIDxqYXIgaHJlZ j0ibGliL2xpbnV4L3g2NC9qYXZhM2Q uamFyIi8+CiAgPC9yZXNvdXJjZXM+C gogIDxyZXNvdXJjZXMgb3M9IlN1bk9 TIj4KICAgIDxleHRlbnNpb24gaHJlZ j0iaHR0cDovL2Rvd25sb2FkLmphdmE ubmV0L21lZGlhL2phdmEzZC93ZWJzd GFydC9yZWxlYXNlL2phdmEzZC0xLjU tbGF0ZXN0LmpubHAiLz4KICA8L3Jlc 291cmNlcz4KCiAgPGFwcGxldC1kZXN jIG1haW4tY2xhc3M9ImNvbS5ldGVrc y5zd2VldGhvbWUzZC5hcHBsZXQuU3d lZXRIb21lM0RWaWV3ZXIiIAogICAgI CAgICAgICAgICBuYW1lPSJTd2VldEh vbWUzRFZpZXdlciIgd2lkdGg9IjYwM CIgaGVpZ2h0PSI2MDAiLz4KPC9qbmx wPg=="><param name="codebase_lookup" value="false">
</applet>
4) Merci
Merci a tous ce qui auront une réponse à mon problème.
Cordialement,
Jean BLIN
-----