How to give users oportunites to use my page on their website

Posted on 2011-09-10
Last Modified: 2012-05-12
hi, i have build this page:

and i want to give the options to developers to use this page or this resource on their websites. i want to be able to give them an script that load this page like an widget. How can i do that?
Question by:rafaelrgl

Accepted Solution

boon86 earned 500 total points
ID: 36517994
give this code to USER for them to embed on their site:

<script type="text/javascript">
idb = "29";
idl = "692";
<script src=""></script>

Open in new window

create a folder called /js/ on then create a file called
mywidget.js inside it:

// static-javascript-variable.js contains the following code
  var url = "";
  var current_location = window.location.hostname;
  url += "?" + "idb="+idb + "&idl=" +idl; 
  document.write("<iframe src='" + url + "'></iframe>");

Open in new window

hope that help

Expert Comment

ID: 36519204
They can create an Iframe and use your page url todisplay contents

Author Closing Comment

ID: 36519783

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API ( has made its way into the popular lexicon of the English language.  A few years ago, …
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now