在Visualforce页面中,是否可以在Firebug控制台中使用命令行? [英] In Visualforce pages, is it possible to use the command line in the Firebug console?

查看:90
本文介绍了在Visualforce页面中,是否可以在Firebug控制台中使用命令行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visualforce页面上,在Firebug控制台命令行中运行的命令似乎不起作用.例如,$(".myClass").show();返回TypeError: $(".moreInfo") is null.

On Visualforce pages, commands run in the Firebug console command line don't seem to work. For example $(".myClass").show(); returns TypeError: $(".moreInfo") is null.

我认为这是因为Visualforce都在iframe内,所以我的jQuery包含在iframe内,而我要选择的所有元素也都在此iframe内.如果有人知道,我正在寻找一种解决方法.

I think this is because the Visualforce is all inside an iframe, so my jQuery is included inside the iframe and all the elements I'm trying to select are also inside this iframe. I'm looking for a workaround if anyone knows of one.

推荐答案

如果查看Visualforce页面的用户处于开发模式,则Visualforce页面将显示在IFRAME中.

If the user viewing the Visualforce page is in development mode, the Visualforce page will be displayed in an IFRAME.

因此,请尝试在用户的用户详细信息"页面上禁用开发模式".

So try disabling "development mode" on your user's User Detail Page.

索伦

这篇关于在Visualforce页面中,是否可以在Firebug控制台中使用命令行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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