Results 1 to 11 of 11

Thread: [RESOLVED] Grab Links from Webpage

Threaded View

  1. #1

    Thread Starter
    Lively Member _-Rs-_'s Avatar
    Join Date
    Aug 2009
    Posts
    84

    Resolved [RESOLVED] Grab Links from Webpage

    Any can one take a look at this html source and tell me how i can grab the links out of it "i use Document.getElementById to grab links or data but in this one when i grab using the ID it dosent grab the links other then it grabs some text please take a look"

    HTML Code:
    <div id="mostrar_mas_enlaceview">
                <h2 id="mec">Thumbnail</u> link</h2>
                <div class="ctninput">
                    <div class="codex">HTML:</div><div class="inputshare">
                    <input tabindex="1" value="&lt;a href=&quot;http://images.com/?v=atob3iji.jpg&quot;&gt;&lt;img src=&quot;http://images.com/thumbs/atob3iji.jpg&quot; border=&quot;0&quot;&gt;&lt;/a&gt;" onclick="this.focus();this.select();" />
                    </div>
                </div>
                <div class="ctninput">
                    <div class="codex">BBCode :</div><div class="inputshare">
                    <input tabindex="2" value="[url=http://images.com/?v=atob3iji.jpg][img]http://images.com/thumbs/atob3iji.jpg[/img][/url]" onclick="this.focus();this.select();" />
                    </div>
                </div>
            </div>
            
            <div id="mostrar_directa">
                <h2 id="mc">Show directly this image</h2>
                <div class="ctninput">
                    <div class="codex"><a href="http://images.com/?v=atob3iji.jpg" target="_blank">Viewer:</a></div>
                    <div class="inputshare"><input tabindex="3" value="http://images.com/?v=atob3iji.jpg" onclick="this.focus();this.select();" /></div>
                </div>
                <div class="ctninput">
                    <div class="codex">BBCode (Forums):</div>
                    <div class="inputshare"><input tabindex="4" value="[img]http://images.com/images/atob3iji.jpg[/img]" onclick="this.focus();this.select();" /></div>
                </div>
                <div class="ctninput">
                    <div class="codex"><a href="http://images.com/images/atob3iji.jpg" target="_blank">URL:</a></div>
                    <div class="inputshare"><input tabindex="5"value="http://images.com/images/atob3iji.jpg" onclick="this.focus();this.select();" /></div>
                </div>
                        </div>
            
    		<div id="mostrar_social">
    I am still a leaner so i dont know much and one more thing can any one tell me how can i extract a text or link between the tags
    i wood really appreciate if any one can help me
    Last edited by _-Rs-_; Jun 6th, 2010 at 05:54 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width