Non riesco ad assegnare l'attributo src ad un iframe tramite javascript.
Se anche avessi sbagliato il valore di src l'iframe dovrebbe partire e dare errore di url Not found, ma sembra che l'iframe parta senza src, da qui il sospetto che javascript non gli stia passando il valore di src.
Questo è il breve codice:
-------------------------------------------------------------------------------------------------
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
</title>
<script type="text/javascript" language="javascript">
function geturlstring()
{
var urlstring = location.href;
return urlstring;
}
function getparamurl(str)
{
return str.split('p1=').pop();
}
var url = geturlstring();
var pp1 = getparamurl(url);
var urlfolder = "http://www.publibix.com/spots/" + pp1;
document.getElementById("slideframe").src = urlfolder;
</script>
</head>
<body>
<iframe id="slideframe" runat="server" frameborder="0" height="1200px" scrolling="auto" width="100%">
</iframe>
</body>
</html>