Reputation: 31
I want to be able to make a script that will display my business admin site on another website so they can use it without having to go through installing it. I want to do what google does with their Translator:
<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
</script>
i would also like to keep track of the people that buy it and so i can terminate there connection if they are not paying there monthly fee or go against the t&c and the only way i can think of doing that is use a key that is saved in a db
Upvotes: 2
Views: 80
Reputation: 1038
You can display another website using open window in javascript.
window.open("http://www.google.com");
Upvotes: 1