Page 1 of 1
hiding iframe
Posted: Sat Jul 05, 2008 5:03 am
by m2babaey
Hi
If I load one site in iframe on my page;how can I hide the code from view source code of the page that contain the iframe.
thanks
Re: hiding iframe
Posted: Sat Jul 05, 2008 6:32 am
by jayshields
I don't quite understand what you're after, but if I'm on the right track, you want to hide the source code? Why?
Re: hiding iframe
Posted: Sat Jul 05, 2008 7:11 am
by m2babaey
yes. i want to hide the <iframe>...</iframe> because i want to hide the fact that i'm showing someone else's webpage
Re: hiding iframe
Posted: Sat Jul 05, 2008 7:38 am
by madan koshti
<iframe id="myframe" src="externalpage.htm" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
hope u need this ???????????????
Re: hiding iframe
Posted: Sat Jul 05, 2008 7:44 am
by Eran
No, he means to hide the iframe from source code view. The way to do it is to inject the iframe to the document after it's loaded, using javascript. Using a tool like firebug would still reveal the iframe however.
I suspect that if you are trying to hide the fact you are taking content from another site, what you are doing is either illegal or unethical, so I suggest you reconsider.
Re: hiding iframe
Posted: Sun Jul 06, 2008 1:00 am
by m2babaey
No, he means to hide the iframe from source code view. The way to do it is to inject the iframe to the document after it's loaded, using javascript. Using a tool like firebug would still reveal the iframe however.
I suspect that if you are trying to hide the fact you are taking content from another site, what you are doing is either illegal or unethical, so I suggest you reconsider.
I understand. what I am saying to do in this forum are usually questions that refer to clients' requests. I look through php projects and check if I am able to do them. If have questions or find something interesting or surprising I come here or other forums to ask and learn.
This question refers to a scriptlance project ( at
http://www.scriptlance.com/projects/1215113152.shtml) that is
not subjected to me but I wanted to know if this is possible and how. not efforting to do illigal activities
