Response title
This is preview!
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css" />
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
<div data-role="page">
<div data-role="content">
<ul data-role="listview" data-theme="c" data-dividertheme="b">
<li data-role="list-divider">Top News</li>
<?php include_once ('simple_html_dom.php');
$html = file_get_html('http://www.example.com');
foreach ($html->find('*.overridable a[class=title]') as $main){
echo '<li><a href="news.php?url='.urlencode($main->href).'" data-transition="slidedown">'.$main->plaintext.'</a></li>';
} ?>
<li data-role="list-divider">Other News</li>
<?php include_once ('simple_html_dom.php');
$html = file_get_html('http://www.example.com');
foreach ($html->find('div[class=river-post yui-u] h2 a[href*=example]') as $ret){
echo '<li><a href="othernews.php?url='.urlencode($ret->href).'" data-transition="slidedown">'.$ret->plaintext.'</a></li>';
} ?>
</ul>
</div>
No idea what you mean by this. On the server? Using Javascript? If the latter, you haven't shown any code that does this.I'm pulling links from a website, then passing them to another page for article parsing.
What do you mean by "the first PHP part", "the second PHP part"?
The strange this is if I add rel="external" to the first php, then the page which didn't open before, it opens. When I add rel="external" to the second php part,
We don't know what this is, where it runs (server or client?) or whether it is even relevant.I'm using a library Simple HTML DOM Parser
And honestly, posting the entire HTML page seems like a waste of space
© 2013 jQuery Foundation
Sponsored by and others.