Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusion of page loading. #80

Open
MadTomT opened this issue Sep 4, 2023 · 0 comments
Open

Confusion of page loading. #80

MadTomT opened this issue Sep 4, 2023 · 0 comments

Comments

@MadTomT
Copy link

MadTomT commented Sep 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant