dialog() is not a function
Hello,
I presume that this question has been asked many times, but I don't
find any solution.
I've included these files :
<script src="/js/jquery-1.3.2.js" type="text/javascript"></script>
<script src="/js/jquery-ui/ui.core.js" type="text/javascript"></
script>
<script src="/js/jquery-ui/ui.resizable.js" type="text/javascript"></
script>
<script src="/js/jquery-ui/ui.draggable.js" type="text/javascript"></
script>
<script src="/js/jquery-ui/ui.dialog.js" type="text/javascript"></
script>
<script src="/js/actualites/buyarticle.js" type="text/javascript"></
script>
In my buyarticle.js, I've got the following lines :
$(document).ready( function() {
$("input#buyarticle").click( function(e) {
e.preventDefault();
$("#dialog").dialog("open");
}
}
When I click on the button, I've got :
"$("#dialog").dialog is not a function"
I don't know what files I've ommitted to include.
But when I call this function immediatly after the document.ready, it
works !
Thanks for your help.