Get iframe contents on load using live()

前端 未结 1 364
悲哀的现实
悲哀的现实 2021-01-15 16:02

I\'ve got a file upload script working with an iframe so the page doesn\'t have to reload.

I\'ve run into an issue concerning retrieving data from the ifram

相关标签:
1条回答
  • 2021-01-15 16:44

    From jQuery documentation:

    Note: The .live() and .delegate() methods cannot be used to detect the load event of an iframe. The load event does not correctly bubble up the parent document and the event.target isn't set by Firefox, IE9 or Chrome, which is required to do event delegation.

    http://api.jquery.com/load-event/

    Can you provide a little more information on what you're trying to do, it should be possible to catch the event but not by using iFrame load.

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