Solved

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

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

http://www.quartelcristao.com/Biblia/Default.aspx?idb=29&idl=692

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?
0
Comment
Question by:rafaelrgl
3 Comments
 
LVL 7

Accepted Solution

by:
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>
<script src="http://www.quartelcristao.com/js/mywidget.js"></script>

Open in new window


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

// static-javascript-variable.js contains the following code
(function(){
  var url = "http://www.quartelcristao.com/Biblia/Default.aspx?";
  var current_location = window.location.hostname;
  url += "?" + "idb="+idb + "&idl=" +idl; 
  document.write("<iframe src='" + url + "'></iframe>");
})()

Open in new window


hope that help
0
 
LVL 9

Expert Comment

by:TonyReba
ID: 36519204
They can create an Iframe and use your page url todisplay contents
0
 
LVL 1

Author Closing Comment

by:rafaelrgl
ID: 36519783
thanks
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
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…

803 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