How can I reference the script element that loaded the javascript that is currently running?  Here's the situation. I have a "master" script being loaded high in the page, first thing under the HEAD tag.  <!DOCTYPE html PUBLIC "-...
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've a sample example below, I'm not sure why the first example (using div's) didn't get the text when the second one (using span's) could achieve that with the same JS code using closest():  $('.class-1').closest('div...
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...
How to add multiple record from child window to the parent window.? Means when we select multiple records from child window pass that records to parent window and also update parent window without page refresh....  http://demo.vtiger.com/index.php?mo...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.