/    Sign up×
Community /Pin to ProfileBookmark

Parse – Search for code, copy paste?

Can someone help me figure out how to Parse a HTML Document at a remote URL, search for an entire string of code, and basically place it into the current local HTML Document?

I have one HTML Document with information that I want placed into another HTML Document. I want to strip the un-needed code from the first document, and place the remaining into the new document. My webserver does not support PHP, so i cant use that.

Here is an example of a Code

[CODE]

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<title>Untitled Document</title>
</head>
<table width=”430″ border=”0″ cellpadding=”0″ cellspacing=”0″>

<!– remove everything before this, keep below –>

<tr>
<td width=”216″ height=”110″ valign=”top”>TEST A</td>
<td width=”214″ valign=”top”>TEST B</td>
</tr>
<tr>
<td height=”112″ valign=”top”>TEST C</td>
<td valign=”top”>TEST D</td>
</tr>

<!– remove everything after this, keep above –>

</table>
</body>
</html>

[/CODE]

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@felgallApr 28.2006 — Do you have a server side language available? It cannot be done client side.
Copy linkTweet thisAlerts:
@lord_baulauthorApr 29.2006 — I dont have anything of use on my server.. its one of those free Webservers you get with your ISP. I tried SSI
×

Success!

Help @lord_baul 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.17,
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,
)...