How to display ???

admin

Administrator
Staff member
Hi, <br />
First of all i am new to the board I hope i get the answer i am looking.<br />
<br />
I am trying to display another html on my page I know i can use Iframes,layers or ssi but i need to display only a specific part of the remote html ,not the whole page, If i am not wrong i think i saw a java script that can do that a quite time ago, but i can not find it now, I really need to find something like this ASAP, any ideas?<br />
<br />
Thank you very much..<!--content-->what you might wanna do is just use iframes. The only disadvantages of that is they don't work in netscape. I have never seen a java script that will allow you to show a certain part of the html document. I recomend using an iframe or I recomend just using the content from that html page and putting it on your html page. Please Post an example of what you want as well. Then I will be able to explain things mor easily.<br />
<br />
Good Luck,<br />
Alex<!--content-->yes, I know of a complicated method (READ: screen scrape) to get partial information from a whole web page. However, its ugly.... and not really ideal. Why take info from another site, when you could ask them for what you need in exchange for a "provided by" or synonimous plug.<!--content-->Thanks for the replys.<br />
<br />
Lets say i like to take the content part of the cnn.com<br />
which is in the middle of their homepage. and display it in the middle of my page, so i need to cut the other areas of cnn.com besides the content area. If i use iframes how am i gonna do that? <br />
<br />
Thanks<!--content-->using an IFRAME alone will not just 'grab the middle' content from a web page. <br />
<br />
You didnt answer when I asked why you cant simply ASK the website for their content. After all-its really not yours, and what your doing is misrepresenting someone elses content as your own.<!--content-->Dr. Web<br />
Thanks for your being helpful about telling what is mine, what is not !!<br />
<br />
I needed a help but you are giving me advice!!.<br />
<br />
I just gave `cnn` as an example, If you read it carefully<br />
you ll see it. Ok if you are a lawyer or wanna be lawyer.<br />
Ill tell you what is mine and what is NOT !<br />
<br />
I opened an account on vstore.com (you can do it too its free) (<!-- m --><a class="postlink" href="http://guystuff.vstorecar.com">http://guystuff.vstorecar.com</a><!-- m -->) but they have very limited templates and you cannot customize it as you like (not yet, they are working on this option), so all i am trying to do is to put the middle content on my own web page<br />
(BOTH ARE MINE).<br />
<br />
well ihope this time (after all this explanation)i can get an answer.<br />
<br />
<br />
Thanks<!--content-->If anyone asks for help on, lets say... taking CNN's info.... of course I'll tell them its wrong.... it is.<br />
<br />
Now-if YOU have content on some template, YOU can just enter/ copy/ paste/ screenshot the info and insert it into your other page.<br />
<br />
<br />
I don't understand your dilemma. YOU created a webpage, and now YOU want the content YOU created? Go get it. Whats the issue? Pulling the source code you created would be a lot faster than trying to find a lazy way to just grab the code out of a rendered page.<!--content-->You have to use LWP usign perl fot this to be possible:<br />
<br />
This is what I did, and it works perfect: <br />
<br />
My configuration is: <br />
Solaris 8 with perl version 5.005_03 built for sun4-solaris <br />
<br />
I needed to install LWP, but needed to match these <br />
pre-requisites also. <br />
<br />
Will need C compiler CC from sun to compile the code in the <br />
required libraries. <br />
<br />
1. Download <!--more--> the cc from SUN site. It is 60 day free trial. <br />
Should buy if need to continue. <br />
The software is available at: <br />
<!-- m --><a class="postlink" href="http://wwws.sun.com/software/sundev/suncc/buy/index.html">http://wwws.sun.com/software/sundev/sun ... index.html</a><!-- m --> <br />
Software is: <br />
Sun ONE Studio 7, Compiler Collection <br />
<br />
<br />
2. Download <!--more-->ed these modules from CPAN web site <br />
<!-- m --><a class="postlink" href="http://www.perl.com/CPAN/modules/01modules.index.html">http://www.perl.com/CPAN/modules/01modules.index.html</a><!-- m --> <br />
<br />
Modules are: <br />
MIME-Base64-2.12.tar.gz <br />
URI-1.22.tar.gz <br />
HTML-Parser-3.26.tar.gz <br />
libnet-1.12.tar.gz <br />
Digest-MD5-2.20.tar.gz <br />
<br />
3. Installed them in the same sequence as listed above. <br />
<br />
4. Download <!--more-->ed LWP from: <br />
<!-- m --><a class="postlink" href="http://www.linpro.no/lwp/">http://www.linpro.no/lwp/</a><!-- m --> <br />
<br />
5. Installed LWP as per instructions. <br />
<br />
That's it. You are ready to use LWP and have fun.<br />
<br />
This is a test script which shows all of <!-- w --><a class="postlink" href="http://www.cnn.com">www.cnn.com</a><!-- w --><br />
#<br />
# cat test.pl<br />
#!/usr/bin/perl<br />
<br />
use LWP;<br />
print "This is libwww-perl-$LWP::VERSION\n"; <br />
<br />
use LWP::Simple;<br />
$url = "http://www.cnn.com";<br />
$context = get($url);<br />
<br />
print "$context\n";<br />
#<br />
#<!--content-->there you have it, the ultimate sun/ perl/ c compiler method to pilfer content from websites.<!--content-->
 
Top