JQuery UI dialog - *Dialog not a function* error

前端 未结 7 615
天命终不由人
天命终不由人 2021-01-01 17:35

I am developing a site using pinax. In one of my templates I am trying to open a simple jquery dialog box. However I keep getting the \"Dialog not a function\" javascript er

7条回答
  •  情话喂你
    2021-01-01 17:48

    I tried to duplicate your error both by using the public google versions and by downloading the legacy (1.6) version from the jQuery UI site and manually including the files. Neither caused a problem (http://jsbin.com/uloqi to see it working).

    So, that means one of the following might solve your problem:

    1. Use a tool like Firebug for Firefox to verify each JS file is being included.
    2. Make sure there is no other JS on the page that could cause an error.
    3. Verify you have the correct versions of the files downloaded.

    I don't know what else to tell you since the code you pasted, when paired with the right files, works perfectly.

提交回复
热议问题