开发者

Calling a javascript function inside a prototype modal window

I am calling a prototype modal window on an onclick event.The page which is called inside the modal window contains a javascript function. This function is not executed inside the modal window. However, it works fine when the page is run individually and not inside the moda开发者_运维百科l window.

My query is if javascript/Ajax function works inside prototype modal window?


not sure how you load your window content (or what kind of modal window you are using), however Ajax.Updater has an option called evalScripts which needs to be set to true in order to evaluate the scripts from the request:


new Ajax.Updater(elementId, url, {evalScripts: true});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜