SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Link Capture, help needed

    Can anyone tell me how to capture a link from a webpage's source.
    the link is in the script's function in the head file and i want to link to tht link present in the function. i can copy the link cause the link in tht function keeps changing on every visit..

    example of what i want.

    a = my webpage
    b = middleman webpage
    c = destination webpage

    a gets the link from b and shows c

    and the script thts in the function of b is

    function startDownload(){
    //document.downloadForm.submit();
    window.location = "http://*****?tsid=20070813-220658-d6349b90";
    }


    tht tsid changes on every visit

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can use regex... But because you have ommitted the site address from your post, we cannot help at this present moment.


  3. #3
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what else should i provide , lemme know

  4. #4
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    basically the full url including the tsid?

    ie

    http://www.domain.com/download.php?t...09812093812093


  5. #5
    SitePoint Member
    Join Date
    Aug 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.4shared.com/file/17732988...ified=87864598


    this is the link to the download page and the link tht changes is

    function startDownload(){
    //document.downloadForm.submit();
    window.location = "http://dc12.4shared.com/download/17732988/61880733/01_-_Do_U_Wanna_Partner.mp3?tsid=20070816-182740-e37621&dirPasswordConfirmed=true";
    }


    ie

    http://dc12.4shared.com/download/177...Confirmed=true


Bookmarks

Posting Permissions

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