JQuery UI dialog - *Dialog not a function* error

前端 未结 7 617
天命终不由人
天命终不由人 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 18:12

    As already explained, you probably override the existing libraries.

    One way of dealing with it is to ensure that the correct files are loaded.

    Another way is to insert an iframe between the dialog and the content in the dialog. Iframes are treated by the browser as a separate page with its own scripts. So the scripts of the content "on top of" the iframe, will be separate from the scripts of the dialog "under" the iframe.

    0 讨论(0)
提交回复
热议问题