-
Notifications
You must be signed in to change notification settings - Fork 253
Description
Hi.
The main page on my site is index.php . This contains a link to index.js which loads jQuery and bpopup.
I'm loading popup pages using a button in index.php which calls:
$('#pop_up').bPopup({
escClose: true, modalClose: false,
loadUrl: 'page1.php'
});
This works fine and page1.php is loaded in the popup.
What confuses me is sometimes some of the code needed in page1.php has to be added to index.php instead of page1.php
For example using jQuery I've created a menu that appears when the user right clicks on a specific element. This works using a div with elements within it. When I access page1.php direct the menu works fine, but if I access it via index.php the popup for the div menu doesn't show. To get it to work, I've had to add the div to index.php instead of page1.php
Does anyone know why that may be happening ?
Thanks.