Access external website content within a dialog box
Permalink
Hi, I want to display external website content within a Concrete5 dialog box, but can't figure out how to do it! However, I have managed to pass content from my own domain to a dialog box.
After a bit of searching on the web i have gained knowledge about achieving access to external domain content is not as easy as if it was within the scope of same domain. During this search I stumbled upon a term called CORS (Cross-Origin Resource Sharing) that should allow cross-domain communication.
So my question is, is CORS the way to go and if so, do Concrete5 support CORS in their dialog boxes?
Code examples will be appreciated.
My current code looks like this:
HTML
Javascript/Jquery
Thanks in advance.
After a bit of searching on the web i have gained knowledge about achieving access to external domain content is not as easy as if it was within the scope of same domain. During this search I stumbled upon a term called CORS (Cross-Origin Resource Sharing) that should allow cross-domain communication.
So my question is, is CORS the way to go and if so, do Concrete5 support CORS in their dialog boxes?
Code examples will be appreciated.
My current code looks like this:
HTML
<a class="media-left" dialog-title="Box title" dialog-modal="false" dialog-width="896" dialog-height="504" id="myDialog" href="//www.jqueryui.com"> some image </a>
Javascript/Jquery
$(function() { $("#myDialog").dialog(); });
Thanks in advance.
unfortunately I don't think this will solve my problem since I need to receive database information from another website of mine.
Any other solutions?
Any other solutions?
There are several ways to do this.
One is to add the tables required for the data to the local database where C5 is installed and then set up a replication process such that the data is where it needs to be.
http://dev.mysql.com/doc/refman/5.0/en/replication.html...
The synchronization could be done manually or using a script if the data does not change often.
http://friendlymachine.net/posts/quick-tip-syncing-databases-betwee...
Since CMS platforms like C5 are database driven, syncing CMS content between sites can be done the same way.
One is to add the tables required for the data to the local database where C5 is installed and then set up a replication process such that the data is where it needs to be.
http://dev.mysql.com/doc/refman/5.0/en/replication.html...
The synchronization could be done manually or using a script if the data does not change often.
http://friendlymachine.net/posts/quick-tip-syncing-databases-betwee...
Since CMS platforms like C5 are database driven, syncing CMS content between sites can be done the same way.
I think I'd like to know a little more about the situation before I'd recommend cloning database tables and replicating content. Can you spell out exactly what you are trying to achieve? Sometimes there is a very simple solution.
There are two Concrete 5 plugins: iFrame, and dynamic-iframe.
Or just insert a html block with an iframe in it--it's actually easier than using the plugin.
e.g.
<iframe src="http://something.blogspot.com" frameborder="0" width=930 height=500 scrolling=yes allowfullscreen></iframe>
Only issue I've had with iFrames involves IE9. if the linked site uses HTTPS, IE9 tends not to like that.