embedded javascript into an iframe -


i'm trying implement google calendar on site iframe, know google has own code this, calendar isn't editable then.

i have tried few things, don't have knowledge. can me please?

<style>  input.createtable { display:none; } </style>   <script language="javascript">  <!-- writeconsole = function(content) {  top.consoleref=window.open('','myconsole2',   'width=800,height=800'    +',menubar=0'    +',toolbar=0'    +',status=0'    +',scrollbars=1'    +',resizable=1')  // top.consoleref.document.open("text/html","replace");  top.consoleref.document.writeln( '<iframe <script src="http://www.gmodules.com/ig/ifr? url=http://addthisshare.com/calendar3.xml&amp;up_calendarsources=& amp;up_calendarcolors=&amp;up_calwkst=2&amp;up_caldefaultview=month &amp;up_calheight=375&amp;up_calshowprint=0&amp;up_calshowcals=1 &amp;up_calshowtabs=1& amp;up_calshowdate=1&amp;up_calshownav=1 &amp;up_calnoactive=&amp;up_caltimezone=europe%2famsterdam &amp;synd=open&amp;w=805&amp;h=390&amp;title=google+calendar &amp;border=http%3a%2f%2fwww.gmodules.com%2fig%2fimages%2f &amp;output=js"></script>"></iframe>'  )  top.consoleref.document.close() } //--> 

an iframe has src-attribute url page want display inside of iframe.

code put between <iframe>and </iframe> not seen, unless browser not support iframes.

so, cannot expect both above techniques work @ same time. either src-url used or code between iframe-tags used; never both. means there no way "embed javascript iframe". way script in there add source page you're loading iframe.

on final note, don't think know asking here. title of question not want do, we'll need little more information solve actual problem.

edit

i think have better grasp of you're asking now. should forget iframe moment , focus on getting events work. when have working, put file of own , reference file via src-attribute of iframe. nothing should "put inside iframe" adding code in iframe-tag itself.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -