By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,968 Members | 1,691 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,968 IT Pros & Developers. It's quick & easy.

Is it possable to include a part of a url file?

P: 1
I want to show the part between <div id="play"> and </div> of http://example.com/file.html

file.html's code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<div id="play">
blajfskhfsl
</div>
</div>
</body>
</html>
Oct 2 '11 #1
Share this Question
Share on Google+
1 Reply


100+
P: 1,059
Interesting, you can try this, I am not sure about success, but it is suppose to .

Create a hidden iframe and link the desired path, then onload of the iframe, then copy partitial data to your desired div searching by id

you also can do this, but onload javascript attached with the secondary page may not work. use fopen to open the http link and then use xml parser to get all the data inside pay object. but the problem would be the missing javascript functions
Oct 3 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.