4

how can i get my site on another site using javascript or jquery

 3 years ago
source link: https://www.codesd.com/item/how-can-i-get-my-site-on-another-site-using-javascript-or-jquery.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

how can i get my site on another site using javascript or jquery

advertisements

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


You should look into iframes.

Iframe Syntax:

<iframe src="URL"></iframe>

Just add that to your html and replace "URL" with the url of the desired embedded site.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK