Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-20-2011, 09:49 PM   PM User | #1
bibidiboo
New to the CF scene

 
Join Date: Nov 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
bibidiboo is an unknown quantity at this point
Need Help with dynamic Iframe

Hey guys I need some help with making the iframe be dynamic with the webpage. I cant seem to get around it. here is the code:

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>&nbsp; contact us<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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">&nbsp;</td>
			<td style="width: 103px">Title """ + str(self._vid_info.get_title())+ """</td>
			<td style="width: 107px">&nbsp;</td>
			<td style="width: 267px">Description of video """+ str(self._vid_info.get_description())+ """</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 77px">&nbsp;</td>
			<td style="width: 103px">Director """ + str(self._vid_info.get_director()) + """</td>
			<td style="width: 107px">&nbsp;</td>
			<td style="width: 267px">&nbsp;</td>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 77px">&nbsp;</td>
			<td style="width: 103px">Found by """ + str(self._vid_info.get_found_by())+ """</td>
			<td style="width: 107px">&nbsp;</td>
			<td style="width: 267px">&nbsp;</td>
			<td>&nbsp;</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
bibidiboo is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:47 AM.


Advertisement
Log in to turn off these ads.