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

ajaxContentUrl does not load content #68

Closed
akierum opened this issue Sep 3, 2017 · 3 comments
Closed

ajaxContentUrl does not load content #68

akierum opened this issue Sep 3, 2017 · 3 comments

Comments

@akierum
Copy link

akierum commented Sep 3, 2017

Hello, I created content.php and in it I use full URL like http://www.domain.com in the ajaxContentUrl
But the tooltip with ajax content html page with image does not show if I access the page with the

<?php readfile("http://www.domain.com/content.php"); ?>

I get no error in the network tab in dev inspector, but the image file is never loaded and shown. If i load same page direct in browser everything works fine. Only the readfile method does not work.

I need a way to load the tipso from my remote site.

@auxiliary
Copy link
Contributor

My understanding is that readfile requires an absolute path and not a URL, but I may be wrong. Could you provide more code so I can try it out?

@akierum
Copy link
Author

akierum commented Sep 7, 2017

The Ajax does not work because Same-origin policy
https://en.wikipedia.org/wiki/Same-origin_policy

See here:
http://www.dreamincode.net/forums/topic/406094-readfile-echo-file-get-contents-does-not-load-content-properly/

I could not resolve this in this thread as nobody wanted to actually help.
So I resolved this in another friendly forum here by using javasript:

https://forums.phpfreaks.com/topic/304862-third-tier-quotes/#entry1550800

This a pain because as you can see the quotes are non standard to say the least. Who can know how to use this nonsense third tier quotes anyway? You should include examples likes this so other may use your great tooltip.

@auxiliary
Copy link
Contributor

auxiliary commented Sep 8, 2017

I am sorry you went through that. But, escaping quotes is a standard process, and this is clearly related to your specific usage of tipso, and not a tipso-related functionality issue.

May I add that Github is not a forum, and issues should be related to core functionalities/bugs of a project.

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

3 participants