Hey guys I need some help with making the iframe be dynamic with the webpage. it is in video_page and I cant seem to get around it. here is the code:
def video_page(self):
return """<!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 content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 1</title>
<style type="text/css">
.style1 {
text-align: center;
}
</style>
</head>
<body style="background-color: #C0C0C0">
<div class="style1">
<iframe id="I1" name="I1" src="video_page2" style="width: 1034px; height: 715px">Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe></div>
</body>
</html>"""
video_page.exposed = True
def video_page2(self):
#to-do increment counter
return """<!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 content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 1</title>
<style type="text/css">
.style1 {
text-align: center;
}
.style2 {
color: #000000;
}
</style>
</head>
<body style="background-color: #FFFFFF">
<p class="style1"><strong>Unknown.Found</strong><br>about us<br> contact us<br> submit a video</p>
<br>
<hr class="style2" style="height: 3px" />
<p class="style1">
<iframe width="640" height="360" src="http://www.youtube.com/embed/eOrNdBpGMv8?rel=0" frameborder="0" allowfullscreen></iframe> <br>
<table style="width: 100%">
<tr>
<td style="width: 77px"> </td>
<td style="width: 103px">Title """ + str(self._vid_info.get_title())+ """</td>
<td style="width: 107px"> </td>
<td style="width: 267px">Description of video """+ str(self._vid_info.get_description())+ """</td>
<td> </td>
</tr>
<tr>
<td style="width: 77px"> </td>
<td style="width: 103px">Director """ + str(self._vid_info.get_director()) + """</td>
<td style="width: 107px"> </td>
<td style="width: 267px"> </td>
<td> </td>
</tr>
<tr>
<td style="width: 77px"> </td>
<td style="width: 103px">Found by """ + str(self._vid_info.get_found_by())+ """</td>
<td style="width: 107px"> </td>
<td style="width: 267px"> </td>
<td> </td>
</tr>
</table>
<hr class="style2" style="height: 3px" />
View Henry Doorn's videos</p>
</body>
</html>""" % {"director": self._vid_info.get_director()}
#% {"video_name": self._vid_info.get_vid_name()}
#"title": self._vid_info.get_title(),
#"video_discription": self._vid_info.get_description(),
#"director": self._vid_info.get_director()}
#"found_by": self._vid_info.get_found_by()}
video_page2.exposed = True