I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update
or just:
ReplyDeletevar isEmbed = window != window.parent;
You could use iframe's onload event:
ReplyDelete<html>
<head>
<script type="text/javascript">
function load()
{
alert("Iframe is loaded");
}
</script>
</head>
<iframe onload="load()" src="/page.html">
</iframe>
</html>
You can check if you are in an iframe using this snippet:
ReplyDeletevar isInIframe = (window.location != window.parent.location) ? true : false;
based on that you can continue with your javascript code.
Probably the simplest method:
ReplyDeleteif ( self !== top ) {
// you're in an iframe
}
So, you check if the current window is the topmost window...