|
Don't know if it's an issue for you, but I have version that works for frames and iframes in IE (written for manila, but I'm sure this works for conversant too).
javascript:function findFrame(f){var i;try{isThere=f.document.selection.createRange().text;}catch(e){isThere='';}if(isThere==''){for(i=0;i<f.frames.length;i++){findFrame(f.frames[i]);}}else{s=escape(isThere);}}var s='';findFrame(window);d=document;void(window.open('http://yoursite.whatever.com/newsItems/edit/new?title='+escape(d.title)+'&url='+escape(d.location)+'&selText='+s,'AddtoHomePage').focus());
The relevant code is:
function findFrame(f){
var i;
try{
isThere=f.document.selection.createRange().text;
}
catch(e){
isThere='';
}
if(isThere==''){
for(i=0;i<f.frames.length;i++){
findFrame(f.frames[i]);
}
}
else{
s=escape(isThere);
}
}
var s='';
findFrame(window);
David
|