测试以查看是否将iframe定位为目标 [英] testing to see if iframe is being targeted
问题描述
< 嘿,所有
香港专业教育学院一直试图让我的代码目标和iframe,当它这样做的iframe:
<Hey all,
ive been trying to get my code to target and iframe and when it does so the iframe:
$('iframe').show();
当前是iframe
$('iframe').hide();
好故事是,我正在使用Google搜索API,并且我希望结果(单击时)以我的iframe为目标:
well the story is that im using google search API and I want the result(when clicked) to target my iframe:
<a href="',r.unescapedUrl,'" target="window1">
现在它确实以iframe为目标,但是当我:
Now it DOES target the iframe, But when I:
$('a').click(function(){
$('iframe').show();
});
什么都没发生?
它不会显示我的iframe吗?
结果页面使用jquery编码:
nothing happends?
it wont show my iframe?
the result page is coded with jquery:
case 'GwebSearch':
arr = [
'<div class="webResult">',
'<h2><a href="',r.unescapedUrl,'" target="window1">',r.title,'</a></h2>',
'<p>',r.content,'</p>',
'<a href="',r.unescapedUrl,'" target="window1">',r.visibleUrl,
'</a>',
'</div>',
];
这会影响我的代码吗?
有什么办法可以编写代码来检查iframe是否已定位?
任何帮助都可以,谢谢
is this effecting my code?
is there any way of writing a code to check if the iframe is being targeted?
any help will do, thanks
推荐答案
(' iframe ').show();
('iframe').show();
当前是iframe
(' iframe').hide();
('iframe').hide();
好故事是,我正在使用Google搜索API,并且我希望结果(单击时)以我的iframe为目标:
well the story is that im using google search API and I want the result(when clicked) to target my iframe:
<a href="',r.unescapedUrl,'" target="window1">
现在它确实以iframe为目标,但是当我:
Now it DOES target the iframe, But when I:
(' a').click(函数(){
('a').click(function(){
这篇关于测试以查看是否将iframe定位为目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!