| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Oct 2004 Location: W. Hartford, CT
Posts: 361
![]() ![]() ![]() | 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?
__________________ BlueSoft Website Solutions - Connecticut Web Development - Web Hosting - Connecticut Real Estate Portal |
| |
| | #2 (permalink) |
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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> |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Regular Join Date: Oct 2004 Location: W. Hartford, CT
Posts: 361
![]() ![]() ![]() | Perfect thank you alot.
__________________ BlueSoft Website Solutions - Connecticut Web Development - Web Hosting - Connecticut Real Estate Portal |
| |
| | THREAD STARTER #5 (permalink) |
| NamePros Regular Join Date: Oct 2004 Location: W. Hartford, CT
Posts: 361
![]() ![]() ![]() | 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?
__________________ BlueSoft Website Solutions - Connecticut Web Development - Web Hosting - Connecticut Real Estate Portal
Last edited by benc811; 04-15-2005 at 03:46 PM.
|
| |
| | #6 (permalink) |
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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"> ????: NamePros.com http://www.namepros.com/showthread.php?t=82877 Code: <select onChange="{location.href=this.value}"> 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="»"> </form> ![]() Sorry! |
| |
| | THREAD STARTER #7 (permalink) |
| NamePros Regular Join Date: Oct 2004 Location: W. Hartford, CT
Posts: 361
![]() ![]() ![]() | That changes the whole page not just the page in the table should i make like a form or something to connect them?
__________________ BlueSoft Website Solutions - Connecticut Web Development - Web Hosting - Connecticut Real Estate Portal |
| |
| | #8 (permalink) |
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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> |
| |
| | THREAD STARTER #9 (permalink) |
| NamePros Regular Join Date: Oct 2004 Location: W. Hartford, CT
Posts: 361
![]() ![]() ![]() | I see it says the page doesnt exist but that page is www.google.com
__________________ BlueSoft Website Solutions - Connecticut Web Development - Web Hosting - Connecticut Real Estate Portal |
| |
| | THREAD STARTER #11 (permalink) | ||||
| NamePros Regular Join Date: Oct 2004 Location: W. Hartford, CT
Posts: 361
![]() ![]() ![]() | here is the HTML code for the page if it helps. thanks for helping.
__________________ BlueSoft Website Solutions - Connecticut Web Development - Web Hosting - Connecticut Real Estate Portal | ||||
| |
| | #12 (permalink) | ||||
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=82877 Code: </SELECT><INPUT style="WIDTH: 26px; HEIGHT: 23px" type=submit size=32 value="»"></FORM> ![]() Hpe this works! ![]() Tom | ||||
| |
| | THREAD STARTER #13 (permalink) |
| NamePros Regular Join Date: Oct 2004 Location: W. Hartford, CT
Posts: 361
![]() ![]() ![]() | 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.
__________________ BlueSoft Website Solutions - Connecticut Web Development - Web Hosting - Connecticut Real Estate Portal |
| |
| | #14 (permalink) |
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | good... thats what I was hoping... I know php!! ![]() right... in the <head> bit... put this: PHP Code: Code: <iframe src="<?php echo $video; ?>"></iframe> 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="»">
</form> Code: <base target="main_frame"> ![]() 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.
|
| |
| | THREAD STARTER #15 (permalink) |
| NamePros Regular Join Date: Oct 2004 Location: W. Hartford, CT
Posts: 361
![]() ![]() ![]() | Woo Hoo now just to setup the videos!
__________________ BlueSoft Website Solutions - Connecticut Web Development - Web Hosting - Connecticut Real Estate Portal |
| |
| | #16 (permalink) |
| New Member Join Date: Apr 2005
Posts: 15
![]() | |
| |
| | #17 (permalink) | ||||
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| ||||
| |
| | #19 (permalink) | ||||
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() I misinterpreted your post, and for that I apologise as well! Tom | ||||
| |
![]() |
| 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 |