Is it possible without going to https://developers.facebook.com/tools/lint/ and putting in the URL, to rub a webservice or something and have it return the Iframe code? I do not want to go to that site manually. Thanks for any help
Just construct the URL yourself,
<iframe
src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fgoogle.com%2F"
scrolling="no" frameborder="0" style="height: 62px; width: 100%"
allowTransparency="true"></iframe>
and put your site's URL urlencoded behind the ?href=.
Here you go
just modify the urls array :)
http://jsfiddle.net/Tatqu/
Related
I am working in iframe with a scrippplet in the src, but it is not working
<iframe src="<%=urlProdMatch%>" width="550" height="500" frameborder="0" allowtransparency="true"></iframe>
However, urlProdMatch has a url
<h4><%=urlProdMatch%></h4>
It prints the value the url, but in the iframe shows nothing
Thanks a lot.
Have you had a look at the source for the IFrame? (i think they're evil, by the way)
My guess is the the data is being written out, but it gets written between the script brackets and therefore doesn't show up.
Try this version:
<script type="text/javascript">
document.write("BUT THIS DOES PRINT!");
</script>
<%
response.getWriter().println("THIS DOESN'T PRINT");
%>
I want to display an attachment in a iframe, I tried adding <WebPartPages:AllowFraming runat:"server"/> in the Master Page but it didn't work, do you have any suggestions about how to approach the problem.
Try using the full path for your attachment.
<ac:structured-macro ac:name="html"><ac:plain-text-body><![CDATA[<iframe src="http://YOURDOMAIN/path_to_file" noborder="0" width="830" height="800" scrolling="yes" seamless></iframe>]]></ac:plain-text-body></ac:structured-macro>
Hope it Helps
I am not a web designer so please bear with me but I have followed the FB like generator and copied the iframes element to my web site but it does not appear when published. Can anybody tell me what I am missing...??? the code generated is:-
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fweebagband&width=The+pixel+width+of+the+plugin&height=80&colorscheme=light&layout=standard&action=like&show_faces=true&send=false&appId=271163222908481" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:The pixel width of the pluginpx; height:80px;" allowTransparency="true"></iframe>
From this I have been even tried to paste it to a blank page but still nothing.
Even the simple Google FB "like" generator didn't work. I'd be most grateful for any help. Thanks in advance
Try this code:
<iframe src="http://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com/weebagband&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80&appId=271163222908481" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100%; height:80px;" allowTransparency="true"></iframe>
Your code has some errors, like width:The pixel width of the pluginpx;
And I think the url to your FB Page was wrong as well..
I assume that weebagband is the desired fanpage..
I have a problem where the src of an iframe is not loaded, and I just can't find out why this is happening.
The piece of code in question:
<div style="margin-left:20%;margin-right:20%; width:60%; position: absolute; top: 450px">
<iframe id="frame" name="frame" marginwidth="0" src="main.html" frameborder="0" width="100%" height="1000px"></iframe></div>
When loaded into the Tryit editor from W3schools, it works (404, but that's understandable), and using editor light for Chrome, it also works. But when run on the actual site (www.wolfeh.com), it just doesn't load. It doesn't even send out a request for main.html.
Can anyone explain what's going on here?
Update
Was just too late with this, looks like someone put the old code back. Still not sure what it was, but the problem has been averted.
Not sure what's going on on your side, but the frame loads ok. I would try adding the absolute path to it just in case:
<div style="margin-left:20%;margin-right:20%; width:60%; position: absolute; top: 450px">
<iframe id="frame" name="frame" marginwidth="0" src="http://wolfeh.com/main.html" frameborder="0" width="100%" height="1000px"></iframe></div>
I have an iframe like this :
<iframe width="985px" frameborder="0" marginheight="0" marginwidth="0" height="2100px" src="http://www.myblog.com/search?q=<?php echo $plus ?>searhed"></iframe>
Now in the iframe i want to add a button ( or something like that,can be an image),that will navigate to the previous page which the person was browsing.
Its like i want to add "Back" and "Forward" functions in any browser to my iframe.
Thanking you.
Take a look at javascript function history.back()