开发者

Calling a javascript function inside a prototype modal window

开发者 https://www.devze.com 2023-02-12 06:51 出处:网络
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. Howeve

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

精彩评论

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