View Full Version : iFrame question...
puffnstuff
Oct 11, 2009, 01:47 PM
Is there anyway to implement a javascript link in an iFrame?
I tried it
<iframe src ="http://xxxxxx.com/js" width="100%" height="300">
<p>Your browser does not support iframes.</p>
</iframe>
and all I got was \x0a all over the page
puffnstuff
Oct 11, 2009, 02:29 PM
holy crap I figured it out! :eek:
iframes can be done in javascript too! Learn something new every damn day eh!:cool:
puffnstuff
Oct 11, 2009, 03:32 PM
edit: n/m didn't figure it out
I guess it can be done with javascript though? how?:confused:
angelwatt
Oct 11, 2009, 09:23 PM
Why are you trying to do it in an iframe? Just put it in a div and style as need be. I think you're trying to make something harder than it needs to be.
puffnstuff
Oct 11, 2009, 10:51 PM
Why are you trying to do it in an iframe? Just put it in a div and style as need be. I think you're trying to make something harder than it needs to be.
I was trying to open up another page in my site using the iframe
I wave the white flag I searched and nothing so I guess it's impossible :shrugs:
NathanCH
Oct 12, 2009, 12:43 AM
iFrames are very 2001 ;)
angelwatt
Oct 12, 2009, 09:09 AM
If you're wanting to link a JavaScript file from another site, you would use the script tag, not a iframe. Also, the site you're linking to would likely be upset about it as it costs them bandwidth for you to steal their script. If you describe what your desired outcome is a little more we may be able to offer better solutions.
puffnstuff
Oct 12, 2009, 07:39 PM
I am trying to embed my tumblelog onto my website
it gives me this code to do embed on my site
<script type="text/javascript" src="mylink.com/js"></script>
it says I can customize it using CSS but I cannot figure out how to go about doing that. Anybody can clue me in on how to start is it just like designing a tumblr theme?:confused:
angelwatt
Oct 12, 2009, 09:13 PM
See if this tumblr page is of help. (http://www.tumblr.com/docs/custom_themes) I don't really have any clue what tumblr is nor the desire to find out, but that page seemed to have some good info on customizing.
puffnstuff
Oct 12, 2009, 09:35 PM
See if this tumblr page is of help. (http://www.tumblr.com/docs/custom_themes) I don't really have any clue what tumblr is nor the desire to find out, but that page seemed to have some good info on customizing.
that doesn't work with the external script they give to embed on my personal site though.
:sighs: i'll just use wordpress thought this would be easier but it's not
star-fish
Oct 14, 2009, 08:28 AM
From the sounds of it the only way round it is to make a tumblr theme which matches the look of your website and then just link to it as normal.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.