How to dynamically load content from an external url, inside of a jquery ui modal dialog widget?

前端 未结 2 1586
攒了一身酷
攒了一身酷 2020-12-31 17:59

I asked this question before, but I don\'t think I explained properly for what I am trying to accomplish.

There are multiple links on my website and I want to open

2条回答
  •  清歌不尽
    2020-12-31 18:57

    http://jsfiddle.net/qp7NP/

    A couple changes: changed ID to Class and used IFrame.

    comment #1
    comment #2
    comment #3

    In case you want to pull in the HTML instead of IFrame, you will have to use Ajax (XMLHttpRequest), something like this: http://jsfiddle.net/qp7NP/1/

提交回复
热议问题