Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-18-2008, 02:05 PM   #1
Member (6 bit)
 
Join Date: Nov 2007
Posts: 33
Embedding Part of a Webpage Into Another

Hi guys,

I'm trying to take part of a webpage (that changes regularly) and put it into another. Let's use the example of "Today's Featured Post" on the PCMech homepage. No matter the article, the HTML code always starts with the following:

Code:
<h3>Today's Featured Post</h3>
and ends with this:

Code:
</a> |

The entire title looks like this:

Code:
<h3>Today's Featured Post</h3>
	<h4>Monday</h4>

	<div style="clear:both;"></div>
	<div class="featuretitle"><a href="http://www.pcmech.com/article/you-must-be-anti-proprietary-to-stop-using-windows/" rel="bookmark" title="Permanent Link to You Must Be Anti-Proprietary To Stop Using Windows">You Must Be Anti-Proprietary To Stop Using Windows</a></div>
	<div class="postinfo">
	By <a href="http://www.pcmech.com/article/author/rich/" title="Posts by Rich Menga">Rich Menga</a> |

So, the gadget would be able to find the entire thing using the beginning and end, which remain constant day to day but also embed the middle, which changes on a daily basis.



Thanks for your help,

Reese Hyde
ReeseHyde is offline   Reply With Quote
Old 08-18-2008, 03:26 PM   #2
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,384
If you're just doing HTML only, look at the iframe tags.

Although, PHP is a better option if you have the capability.
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Old 08-18-2008, 04:22 PM   #3
Member (6 bit)
 
Join Date: Nov 2007
Posts: 33
I'm fine with using PHP. I was referring to the fact that the "Today's Featured Post" on PCMech uses HTML.
ReeseHyde is offline   Reply With Quote
Old 08-18-2008, 06:11 PM   #4
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,384
The PHP generates the HTML. You will never see raw PHP code in your browser (unless there's a problem on the server)
Force Flow is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:09 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2