localhero Posted October 9, 2009 Report Posted October 9, 2009 Kads ir ar jQuery uploadojis failu ? Isti nesaprotu kādā veidā php scriptam padot failu. Quote
0 briedis Posted October 9, 2009 Report Posted October 9, 2009 Nu te tak ir paraugi un implementācijas apraksts. http://www.uploadify.com/ Quote
0 localhero Posted October 9, 2009 Author Report Posted October 9, 2009 Tas ir jQuery plugins. Ka to izdarīt ar jQuery neizmntojot pluginus. Quote
0 Maris-S Posted October 9, 2009 Report Posted October 9, 2009 (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 October 9, 2009 by Maris-S Quote
0 briedis Posted October 9, 2009 Report Posted October 9, 2009 Tas ir jQuery plugins. Ka to izdarīt ar jQuery neizmntojot pluginus. Man liekas, ka tu nemaz neizni ko īsti gribi panākt :) Quote
0 localhero Posted October 9, 2009 Author Report Posted October 9, 2009 Nu ir savi iemesli kadel es to gribu izdarit ar jQuery. Ja isti nav ko teikt varbut labak pakluset ? Quote
0 rATRIJS Posted October 9, 2009 Report Posted October 9, 2009 (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 October 9, 2009 by rATRIJS Quote
0 briedis Posted October 9, 2009 Report Posted October 9, 2009 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). Quote
0 rATRIJS Posted October 9, 2009 Report Posted October 9, 2009 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. Quote
0 briedis Posted October 9, 2009 Report Posted October 9, 2009 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 :) Quote
0 localhero Posted October 9, 2009 Author Report Posted October 9, 2009 Var vel isak: <input type="button" onclick="$('#formID').submit();" value="Aiziet"> Quote
0 tas_pats Posted October 10, 2009 Report Posted October 10, 2009 Var vel isak: <input type="button" onclick="$('#formID').submit();" value="Aiziet"> bet ne pareizāk.. HTML kodam ir jābūt savā vietā un JS savā... Quote
Question
localhero
Kads ir ar jQuery uploadojis failu ? Isti nesaprotu kādā veidā php scriptam padot failu.
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.