SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Evangelist runeveryday's Avatar
    Join Date
    Jul 2009
    Posts
    437
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    down load the checked item by jquery or javascript?

    i only want to publish the video which are recored by myself to the p2p download site then invoke the link on my site to make the vistor can download it

    how to do the download the checked item. there is an example on the following link

    €ŠGodaddy主œ*–‡†‘•™‹€‹(Godaddy FAQ)[大带宽…™‰ˆ]1.0.0[HDTV]_VeryCD”驴‹载

    SitePoint Forums: Resources, Design, HTML, CSS, PHP, ASP, MySQL and more for your web site.
    the red circular that i marked is download checked item when click the button. before it is an select/unselect all checkbox.

    now,i want to do it on my site, the select/unselect that i did by jquery. which is ok. but i don't know how to do download the checked item.

    code one is my check box part:

    Code:
    <li class="odd">
    <input type="checkbox" style="cursor: pointer;" class="forminput" name="VD491" checked="checked">
    <a href="ed2k://|file|。。。">video test one</a>
    </li>
    
    <li class="even">
    <input type="checkbox" style="cursor: pointer;" class="forminput" name="VD492" checked="checked">
    <a href="ed2k://|file|......i|16259020|8B03742E2291FFEA0E16F7E0E1746F2A|h=6GV4CD72V7ATBYW7VYSSQGT2STXTIE2K|/">video test two</a></li>
    
    。。。。。。。。
    the download item part code:

    Code:
    <li>
    <input type="checkbox" id="checkall" name="checkall" checked="checked"> 
    <label for="checkall">select all</label>
    <input type="button" value="下载选中的文件" class="button downall">
    <input type="button" value="复制选中的链接" class="button downall">
    </li>
    Attached Images Attached Images
    • File Type: jpg 2.jpg (29.8 KB, 2 views)

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2009
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    See this page for some examples:
    start automatic download of a file

    If you want to combine multiple files in to one download, you will need help from a php script to zip it together and redirect


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
  •