php - how to generate javascript embed code -


How to generate embd code / blog like widget with CodeIgniter? Please give me an idea how to create

Let's say that your widget is presented as an IFrame HTML has been done.

For example

  & lt; Iframe src = 'http: //somedomain/.../some-widget'> & Lt; / Iframe & gt;  

Now, your embed code can be as simple as:

  & lt; Script src = "http: //yourdomain/.../ some js" & gt; & Lt; / Script & gt;  

You have to do something inside. JS:

  document.write ("& lt; iframe src = 'http: // somedomain /. ../some-widget'></iframe>";);  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -