I have a <div> that has many other <div>s within it, each at a different nesting level. Rather than give every child <div> an identifier, I rather just give the root <div> the identifier. Here’s an example:  <div class=...
I can get this to work which opens a fancybox IMAGE from within an iframe  <a href="javascript:parent.$.fancybox.open({href : 'myurl'});">Open something</a>   Problem I have is that I need to open a fancybox IFRAME. Exampl...
I'm trying to access the document object of a page that lives in an <iframe> from the host page. In other words, I have a page that has an <iframe> in it, and I want to use jQuery on that page (the parent page) to access the document...
I am creating a widget that would load in a IFrame and users will be able to place the widget on their own website. How would I get the URL of the website that is using the IFrame in javascript and/or PHP? The IFrame loads a php file.  I have tried &...
I have a portfolio where I list portfolio items. I have classes so when you click the item, it has an effect.  For some reason, when I click the minus button, it doesn't remove the class 'on'.  Here is the jQuery:    $('.portfolio-ite...
Ok, the question alone is making my head spin.  I have an anchor tag that is calling a function:  <a href="#" id="addPerson" onClick="addPerson(); return false;">Add a Guest</a>   Just for reference, this is the fu...
I have an array item like this:  var array = USA.NY[2]; // gives "Albany"  {"USA" : {   "NY" : ["New York City", "Long Island", "Albany"] }}   I want to find the state from just having the array. How do...
I have the following issue, Im creating a windows 7 gadget, which uses Iframe to load content.I have full control on the contents of the Iframe, what I want to do is, call a function in the parent (windows 7 gadget html document), from within this If...
I am creating a popup window that goes to hello.html.  I want my original (parent page) to reload when i close the popup window (hello.html).  I can't seem to get it to work, but I'm close.  Here is the code I have so far for the main page an...
I'm trying to reach a parent of some element:   let t = e.target.parentNode  but i have this Error: Property 'parentNode' does not exist on type 'EventTarget'  I've tried with <Element>e.target.parentNode but this also n...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.