/    Sign up×
Community /Pin to ProfileBookmark

How do I embed PART of a web page when foreign page has no anchors

Hello Community,

I would like to see the Euro British Pound exchange rate when I visit my web site. The only approach I know is to use iframes, however this has the disadvantage of loading the whole foreign page. Morover, if the foreign page has no anchor, then I have to scroll to find the piece of information I require.

As an example, lets imagine you want to see the echange rate GBP/EUR from Bloomberg, can someone suggest an improvement on:

You will see what I mean when you try the code, maybe there is a more sophisticated method for acheiving the same result.
Thanks in advance and kind regards,
Alberto

[CODE]<html>
<head>
<title>Test Grab FX rate</title>
</head>

<body>
<p>Test page to embed the currency exchange for 1 GBP into Euros.</p>

<iframe src=”http://www.bloomberg.com/markets/currencies/fxc.html”
border=”0″
name=”myiframe”
id=”myiframe”
height=”450″
width=”450″></iframe>
</body>
</html>[/CODE]

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@aafragaauthorFeb 17.2006 — Hello Ray,

I ended up doing this using Php. Many thanks anyway.

The problem with iframes is that they dont allow you to zoom or focus onto the partcular region of the external page if there are no named anchors.

[CODE]<html>
<body>
<table><tr>
<?php
$url = 'http://uk.old.finance.yahoo.com/d/quotes.csv?s=GBPEUR=X&f=sl1d1t1ba&e=.csv';
$fp = fopen($url, 'r');
$data = fgetcsv($fp, 1000);
foreach ($data as $value){
print "<td>$value</td>";
}
?>
</tr></table>
</body>
</html>[/CODE]
Copy linkTweet thisAlerts:
@ray326Feb 17.2006 — Cool. Server side is the better way to do it anyway.
×

Success!

Help @aafraga spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...