je cherche comment lancer automatiquement la thickbox de jquery.
Pour l'instant dans mon fichier thickbox.js j'ai cette fonction :
CODE
function showBox(){
tb_init('a.thickbox, area.thickbox, input.thickbox');
imgLoader = new Image();// preload image
imgLoader.src = tb_pathToImage;
tb_showIframe();
tb_show(document.getElementById("hiddenModalContent"), "#TB_inline?&height=75&width=200&inlineId=hiddenModalContent&modal=true", false);
}
tb_init('a.thickbox, area.thickbox, input.thickbox');
imgLoader = new Image();// preload image
imgLoader.src = tb_pathToImage;
tb_showIframe();
tb_show(document.getElementById("hiddenModalContent"), "#TB_inline?&height=75&width=200&inlineId=hiddenModalContent&modal=true", false);
}
Et dans le head de ma page j'ai ça :
CODE
<script type="text/javascript">
function showBox();
</script>
function showBox();
</script>
Or ça ne fait rien : rien ne se lance, mais je n'ai aucune erreur javascript non plus. Je suis un peu perplexe. Vous pouvez m'aider ?