NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page HTML page inside a table

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 04-15-2005, 02:46 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
benc811's Avatar
Join Date: Oct 2004
Location: W. Hartford, CT
Posts: 361
benc811 is a jewel in the roughbenc811 is a jewel in the roughbenc811 is a jewel in the rough
 



HTML page inside a table


I need a way to display another page in a table I have a music player here http://www.annoytheworld.com/flashwo...ic/player.html

And I need to be able to change the video with a dropdown menu, I thought the best way to do this is to make another .html inside the table and make a new page of each video and the dropdown menu link to each. Does this seam like it would work if not what would, and how do i display another html page inside a table?
benc811 is offline  
Old 04-15-2005, 03:05 PM   #2 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



do you know php? it would probably be better for something like this...
????: NamePros.com http://www.namepros.com/programming/82877-html-page-inside-a-table.html

Code:
<table>
    <tr>
        <td><iframe name="main_frame" src="the/first/video/link/here.wmv"></iframe></td>
    </tr>
</table>

<select onChange="main_frame.src=this.value">
    <option value="URL TO NEXT VIDEO">Next Video</option>
    <option value="URL TO ANOTHER ONE">Another Video</option>
</select>
that should work for you
PoorDoggie is offline  
Old 04-15-2005, 03:13 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
benc811's Avatar
Join Date: Oct 2004
Location: W. Hartford, CT
Posts: 361
benc811 is a jewel in the roughbenc811 is a jewel in the roughbenc811 is a jewel in the rough
 



Perfect thank you alot.
benc811 is offline  
Old 04-15-2005, 03:24 PM   #4 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



err... right... does it work? I have just had a look, and I can't tell! hehe...
PoorDoggie is offline  
Old 04-15-2005, 03:32 PM THREAD STARTER               #5 (permalink)
NamePros Regular
 
benc811's Avatar
Join Date: Oct 2004
Location: W. Hartford, CT
Posts: 361
benc811 is a jewel in the roughbenc811 is a jewel in the roughbenc811 is a jewel in the rough
 



It sort of works when I use the dropdown it doesnt change the page thats the only problem I am just missing the go button do you know how to add it?
Last edited by benc811; 04-15-2005 at 03:46 PM.
benc811 is offline  
Old 04-15-2005, 03:56 PM   #6 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



err... it should work on its own really... the "onChange=..." should make it work.

try putting this in your "head" part of the document:
Code:
<base target="main_frame">
and then changing the "onChange" bit to:
????: NamePros.com http://www.namepros.com/showthread.php?t=82877
Code:
<select onChange="{location.href=this.value}">
it should hopefully then change the URL on its own.

If that fails you could do this:
Code:
<form method="get" action="javascript.video.value" target="main_frame">
<select name="video">
...
</select>
<input type="submit" value="&raquo;">
</form>
If that dosen't work... I'm sorry, I don't know much javascript, and I don't think I can do it!

Sorry!
PoorDoggie is offline  
Old 04-15-2005, 03:59 PM THREAD STARTER               #7 (permalink)
NamePros Regular
 
benc811's Avatar
Join Date: Oct 2004
Location: W. Hartford, CT
Posts: 361
benc811 is a jewel in the roughbenc811 is a jewel in the roughbenc811 is a jewel in the rough
 



That changes the whole page not just the page in the table should i make like a form or something to connect them?
benc811 is offline  
Old 04-15-2005, 04:04 PM   #8 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



i don't understand what you mean?

I clicked the button, and it changed the page in the iframe, the page didn't exist though! lol

find this code in your website:
Code:
<SELECT name=video></SELECT>
You need to remove the closing tag... it is closing the drop-down box too soon!
PoorDoggie is offline  
Old 04-15-2005, 04:13 PM THREAD STARTER               #9 (permalink)
NamePros Regular
 
benc811's Avatar
Join Date: Oct 2004
Location: W. Hartford, CT
Posts: 361
benc811 is a jewel in the roughbenc811 is a jewel in the roughbenc811 is a jewel in the rough
 



I see it says the page doesnt exist but that page is www.google.com
benc811 is offline  
Old 04-15-2005, 04:19 PM   #10 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



you need a submut button on your form...

<input type="submit" value="&raquo;">
PoorDoggie is offline  
Old 04-15-2005, 04:19 PM THREAD STARTER               #11 (permalink)
NamePros Regular
 
benc811's Avatar
Join Date: Oct 2004
Location: W. Hartford, CT
Posts: 361
benc811 is a jewel in the roughbenc811 is a jewel in the roughbenc811 is a jewel in the rough
 



here is the HTML code for the page if it helps. thanks for helping.


Quote:
<HTML><HEAD><TITLE>AnnoyTheWorld.com Music Player</TITLE><BASE href=http://216.7.189.123/~spamgame/flashworld/entertainment/Music/>
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<SCRIPT language=wep_no_script_JavaScript>
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=475,height=200,left = 462,top = 334');");
}
// End -->
</SCRIPT>

<SCRIPT language=wep_no_script_JavaScript>

<!-- Begin
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
// End -->
</SCRIPT>
<BASE target=main_frame>
<META content="" name=Keywords>
<META content="" name=Description></HEAD>
<BODY text=#000000 vLink=#ff0000 aLink=#dc143c link=#ff0000 bgColor=#000000 background=http://www.annoytheworld.com/flashworld/core/images/metal_plate_back.jpg>
<P align=center>
<TABLE style="WIDTH: 563px; HEIGHT: 285px" cellSpacing=2 cellPadding=2 width=563 bgColor=#696969 border=1>
<TBODY>
<TR>
<TD>
<TABLE style="WIDTH: 299px; HEIGHT: 206px">
<TBODY>
<TR>
<TD>
<P align=center><IFRAME style="WIDTH: 314px; HEIGHT: 275px" name=main_frame src="http://216.7.189.123/~spamgame/flashworld/entertainment/Music/Videos/Page.html">
????: NamePros.com http://www.namepros.com/showthread.php?t=82877
</IFRAME></P></TD></TR></TBODY></TABLE>
<P align=center>
<FORM action=javascript.video.value method=get target=main_frame><SELECT name=video> <OPTION value=www.google.com selected>page 2</OPTION> <OPTION value=www.yahoo.com>page 1</OPTION><INPUT style="WIDTH: 26px; HEIGHT: 23px" type=submit size=32 value=»> </SELECT></FORM></P></TD>
<TD>
<UL>
<LI>
<FORM name=form><SELECT size=1 name=site value="http://www.annoytheworld.com/flashworld/entertainment/Music/player.html"> <OPTION value="" selected>Radio Stations<OPTION value="javascriptopUp('http://player.virginradio.co.uk/core/player/index.html?service=vc')">Classic Rock<OPTION value="javascriptopUp('http://player.virginradio.co.uk/core/player/index.html?service=gr')">Groove and Soul<OPTION value="javascriptopUp('http://player.virginradio.co.uk/core/player/index.html?service=vr')">Virgin Radio</OPTION></SELECT> <INPUT style="WIDTH: 25px; HEIGHT: 23px" onclick=javascript:formHandler(this) type=button size=26 value=»></FORM></LI></UL>
????: NamePros.com http://www.namepros.com/showthread.php?t=82877
<UL>
<LI><FONT face=Verdana color=#ff0000 size=4><STRONG><A href="http://www.annoytheworld.com/flashworld/core/music/submit/index.php" target=_blank><FONT color=#ff0000>Downloads</FONT></A></STRONG> </FONT><BR><BR><STRONG><FONT face=Verdana>Welcome to the Annoytheworld.com Music Player, to your left is the music video area click above for live radio.</FONT></STRONG></LI></UL></TD></TR></TBODY></TABLE></P>
</BODY></HTML>
benc811 is offline  
Old 04-15-2005, 04:26 PM   #12 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



Originally Posted by benc811
<INPUT style="WIDTH: 26px; HEIGHT: 23px" type=submit size=32 value=»> </SELECT></FORM>
substitute for...
????: NamePros.com http://www.namepros.com/showthread.php?t=82877
Code:
</SELECT><INPUT style="WIDTH: 26px; HEIGHT: 23px" type=submit size=32 value="&raquo;"></FORM>
also, get into the habbit of using quotes, and small letters. It is XHTML, and soon will become browser trends. Capital letters, and quote-less attributes will not work with XHTML!

Hpe this works!
Tom
PoorDoggie is offline  
Old 04-15-2005, 04:37 PM THREAD STARTER               #13 (permalink)
NamePros Regular
 
benc811's Avatar
Join Date: Oct 2004
Location: W. Hartford, CT
Posts: 361
benc811 is a jewel in the roughbenc811 is a jewel in the roughbenc811 is a jewel in the rough
 



I just thought should this be a PHP file not an HTML because it calls the main_frame? I dont know too much php just a thought.
benc811 is offline  
Old 04-15-2005, 04:43 PM   #14 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



good... thats what I was hoping... I know php!!

right... in the <head> bit... put this:
PHP Code:
<?php
    
if( isset($_POST['video']) ){
????: NamePros.com http://www.namepros.com/showthread.php?t=82877
        
$video $_POST['video']; // chosen video
    
}
    else{
        
$video "www.google.com"// default page
   

?>
the iframe needs to be changed now:
Code:
<iframe src="<?php echo $video; ?>"></iframe>
the form needs to be changed too!
Code:
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    <select name="video">
        <option value="http://yahoo.com">Option 1</option>
        <option value="http://yagoohoogle.com">Option 2</option>
    </select>
    <input type="submit" value="&raquo;">
</form>
and I would take
Code:
<base target="main_frame">
out of your head bit.

good luck

PS: oh yea... change the file name to .php instead of .html... but you probably knoew that already!

EDIT: woo... it works!
Last edited by PoorDoggie; 04-15-2005 at 04:58 PM.
PoorDoggie is offline  
Old 04-15-2005, 05:07 PM THREAD STARTER               #15 (permalink)
NamePros Regular
 
benc811's Avatar
Join Date: Oct 2004
Location: W. Hartford, CT
Posts: 361
benc811 is a jewel in the roughbenc811 is a jewel in the roughbenc811 is a jewel in the rough
 



Woo Hoo now just to setup the videos!
benc811 is offline  
Old 04-21-2005, 05:12 PM   #16 (permalink)
New Member
Join Date: Apr 2005
Posts: 15
BratCat is an unknown quantity at this point
 



Cool ???


Can any one use something like this music station? I'm using iframes in it. Something I threw together right quick as an example for a friend.

http://bratcat.net/esf-sniper/esf-playlist.html

BratCat
BratCat is offline  
Old 04-22-2005, 11:27 AM   #17 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



Originally Posted by BratCat
Can any one use something like this music station? I'm using iframes in it. Something I threw together right quick as an example for a friend.
????: NamePros.com http://www.namepros.com/showthread.php?t=82877

http://bratcat.net/esf-sniper/esf-playlist.html

BratCat
can anyone use something like this? do you mean that you are selling the script or something?
PoorDoggie is offline  
Old 04-23-2005, 01:05 AM   #18 (permalink)
New Member
Join Date: Apr 2005
Posts: 15
BratCat is an unknown quantity at this point
 




No I'm not trying to sell anything but I would be happy to help somebody with a music station like that one....Peace!

BratCat
BratCat is offline  
Old 04-23-2005, 02:13 PM   #19 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



Originally Posted by BratCat
No I'm not trying to sell anything but I would be happy to help somebody with a music station like that one....Peace!
????: NamePros.com http://www.namepros.com/showthread.php?t=82877

BratCat
hey, sorry if that came out wrong. I wan't getting at you, I was just inquiring! lol - sorry

I misinterpreted your post, and for that I apologise as well!

Tom
PoorDoggie is offline  
Old 04-23-2005, 04:40 PM   #20 (permalink)
New Member
Join Date: Apr 2005
Posts: 15
BratCat is an unknown quantity at this point
 




Quote:
hey, sorry if that came out wrong. I wan't getting at you, I was just inquiring! lol - sorry
Negative it didn't come out wrong and you didn't get to me the question you asked was legitimate...Peace!
BratCat is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic HTML Tutorial webgear Webmaster Tutorials 8 04-02-2005 03:20 PM
Page Rank 5 Site with Banner and Text Links!! MUCH MORE! High Traffic Sites ebizcraftsman Advertising & SEO Services 0 12-09-2004 10:43 PM
Five-Day .INFO SALE - Part Five - 133 Domains Including StockResearch.info Duke Domains For Sale - Make Offer 0 03-31-2004 12:49 PM
Prime .INFO Sale - Part Five - 122 Domains Including StockResearch.info Duke Domains For Sale - Make Offer 2 02-22-2004 06:07 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:06 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger