Jump to content
php.lv forumi
  • 0

jQuery file upload


Question

11 answers to this question

Recommended Posts

  • 0
Posted (edited)

Emm, bet ja bez pluginiem, tad jau var izmantot visvienkāršāko html formu, kādam nolūkam šajā gadījumā ir nepieciešams jquery?

Edited by Maris-S
  • 0
Posted (edited)

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
  • 0
Posted

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).

  • 0
Posted

Ja gribi AJAX veidīgu upload`u un negribi lietot Flash, tad nāksies izmantot iFrame`us...jQuery šim visam nav 100% nepieciešams, bet kur to izmantot noteikti var atrast.

  • 0
Posted

Ja gribi AJAX veidīgu upload`u un negribi lietot Flash, tad nāksies izmantot iFrame`us...jQuery šim visam nav 100% nepieciešams, bet kur to izmantot noteikti var atrast.

Nu ja, jquery noder lai dinamiski ērtāk pievienotu elementus :)

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...