如何调用不同的项目javascripti方法? [英] how to call diffrent project javascripti method?

查看:75
本文介绍了如何调用不同的项目javascripti方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有两个不同的项目。在一个项目网页上有i-frame和i-frame有一个源页面存在于不同的项目中。

我想从主项目中调用一个i-frame源页面java-script方法,如下所示<需要从i-frame源页面调用主页java脚本方法。

我的意思是我想调用交叉通信,我该怎么做?

Hi All,
I have 2 different project. In a project webpage has i-frame and i-frame has a source page is exist in different project.
I wanted to call a i-frame source page java-script method from main project like this
i wanted call a main page java-script method from i-frame source page.
I mean i want to call a cross communication, How can i do this?

推荐答案

这个问题对我来说并不清楚,但我担心你需要学习一些东西,甚至以一种易于理解的方式提出问题。您可能需要阅读的一件事是: http://en.wikipedia.org/wiki/Cross-site_scripting [ ^ ]。



如果由于某种原因,这与你的问题不完全相关请不要怪我,更好地阅读我对这个问题的评论并澄清它。



-SA
The question does not look clear for me, but I'm afraid that you need to learn something even to pose a question in a comprehensible way. One thing you possibly need to read on is this: http://en.wikipedia.org/wiki/Cross-site_scripting[^].

If, by some reason, this is not exactly relevant to your problem please don't blame me, better read my comment to the question and clarify it.

—SA


只需将顶部放在你的javascript代码之后......:)
just put "top" brfore your javascript code for that.. :)


这篇关于如何调用不同的项目javascripti方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆