<
Hey all,
ive been trying to get my code to target and iframe and when it does so the iframe:
$('iframe').show();
the iframe is currently
$('iframe').hide();
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">
Now it DOES target the iframe, But when I:
$('a').click(function(){
$('iframe').show();
});
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>',
];
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