Re: Getting source from adjacent frame
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Getting source from adjacent frame

From: Jedi Fans <"news[at]jedifans[-=dot=-]com">
Date: Wed Aug 10 2005 - 16:37:55 CEST

Mike wrote:
> Is it possible for one frame to get the source code of an adjacent
> frame of the same window?

script:
<script type="text/javascript"><!--
function vs(){
var doc=parent.FRAMENAME.location;
window.open('view-source:'+doc+','SourceView');
}
//--></script>

html:
<a href="#" onclick="vs();return false;">View Source</a>

/might/ work

-- 
Hope This Helped and MTFBWY...
Kieren aka JediFans - <URL:http://jedifans.com/>
The Force Is With Me, SuSE Linux Professional 9.3, Mozilla Firefox 
1.0.6, Mozilla Thunderbird 1.5 Alpha 2 and Revenge Of The Sith!
Received on Mon Oct 24 02:14:00 2005