Jump to content
php.lv forumi
  • 0

jQuery file upload


localhero

Question

11 answers to this question

Recommended Posts

  • 0

Re - šitā

 

<script>
 $("#sbm").click(function() {
   $("#upl").submit();
 });
</script>

<form id="upl" action="upl.php" method="post" enctype="multipart/form-data">
 <input type="file" name="falls" />
 <input type="button" id="sbm" value="Spied mani" />
</form>

 

un iedomājies - forma submitosies ar jQuery palīdzību (omg)

Edited by rATRIJS
Link to comment
Share on other sites

  • 0

Nu ir savi iemesli kadel es to gribu izdarit ar jQuery. Ja isti nav ko teikt varbut labak pakluset ?

 

Nejau par iemesliem es, bet par to, ka tu, manuprāt, nezini KĀ tu gribi, lai tas viss notiek.

Ar javascript tu tā pat vien nevari uploadod failu. Vismaz ne bez papildus spraudņiem(uploadify), rīkiem(kāds flash objekts, kas nodarbojas ar datu sūtīšanu).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...