With firefox you can put the source code into an IFRAME and then paste it into a textarea or other form input, go from there to mainpualte the code ex:
address-
view-source:
http://www.webdeveloper.com/forum/sh...d.php?t=216944
With IE, (this was posted the other day) can activeX the source code directly to manipuate the code as a string.
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>IEsrcCode</title>
<style type="text/css">
#srctx{font-family:fixedsys}
</style>
<script type="text/javascript">
function getSrcFile(url){
oxmlhttp = null;
try{ oxmlhttp = new XMLHttpRequest(); oxmlhttp.overrideMimeType("text/xml"); }
catch(e){
try{ oxmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
catch(e){ return null; }
}
if(!oxmlhttp) return null;
try{ oxmlhttp.open("GET",url,false); oxmlhttp.send(null); }
catch(e){ return null; }
document.getElementById('srctx').value=oxmlhttp.responseText;
}
</script>
</head>
<body > Paste address with http
<input type=file onchange="getSrcFile(this.value)" size=50> <br>
<textarea id="srctx" style="width:100%;" rows=30 wrap=off> abc def ghi jkl mno p</textarea>
</body>
With the srouce code now ready to work, its only a matter of identifying where to split() the string
var q=x.split('<title>');
var p=x.split('<link>');
var n=x.split('Time:');
var m=x.split('More in</span>'); //http://www.youtube.com/watch?v=_tR8bORL91A
var f=x.split('<img alt="" src="'); //var w='watch'; var wp='watch_popup';
This last bit of code I ripped out of my own project to re-write youtube rss pages. I don't use IFRAMEs, I put all the individual promos into table cells. When you get to know what you are doing, some RSS feeds are laid out different than others. Hence, your code will not work on all of them.