List Info

Thread: Get HTML Contents




Get HTML Contents
user name
2006-02-17 07:55:19
Hi

Can any body give me an idea to fetch the contents between
paired tags.

Example:
<div class="style">
<font size="2">Hello how are
you</font>
</div>

<div class="style">
<h1>professional developers
</div>


I want the below output from above source:

<font size="2">Hello how are
you</font>
<h1>professional developers

I want the contents from any specified url..


Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Professional PHP Developers"
group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to
Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

Get HTML Contents
user name
2006-02-17 12:57:46
Hi.... phpZoom
 
&nbsp; &nbsp;    &nbsp; &nbsp; &nbsp;  You can acces the Html with in Div Tag using the
innerHTML  property. but u have to give the ID to DIV tag
&nbsp;
 
Example:
<div class=&quot;style&quot; id="1">
<font size=";2">;Hello how are you</font>
</div>

&lt;div class=&quot;style&quot; id="2">
<h1>professional developers
</div&gt;
 
<script>
alert(document.getElementByID(1).innerHTML);
alert(document.getElementByID(1).innerHTML);
</script>
 
Hope you got it....
&nbsp;
&nbsp;
Regards
Mohd Asif Ali
 
 
 


 
On 2/17/06, phpZoom <gmail.com">itaheadgmail.com> wrote:

Hi

Can any body give me an idea to fetch the contents between paired tags.

Example:
<div class=&quot;style&quot;>
<;font size=";2">;Hello how are you</font>
</div>

&lt;div class=&quot;style&quot;>
<h1>professional developers
</div&gt;


I want the below output from above source:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To post to this group, send email to Professional-PHPgooglegroups.com
To unsubscribe from this group, send email to Professional-PHP-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/Professional-PHP
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )