ziedinjsh Posted December 30, 2012 Report Share Posted December 30, 2012 Sveiki.. nevaru saprast kapēc viņi viens otram traucē! $.noConflict(); // autorizācija jQuery(function(){ jQuery('#login').submit(function(){ jQuery.ajax({ type: 'POST', url: jQuery('#login').attr('action'), data: jQuery('#login').serialize(), success: function(data){ if(data){ /*jQuery('#return').html(data);*/ showNotification({message: data, type: "warning", autoClose: true, duration: 7}); }else{ jQuery('#login').fadeOut(500); jQuery('#return').html('<p style="text-align: center;"><img src="img/loader.gif" /></p>'); window.location = 'index.php'; } } }); return false; }); }); // Lietotāja bilde jQuery(function(){ var btnUpload=jQuery('#avatar'); var status=jQuery('#status'); new AjaxUpload(btnUpload, { action: 'process/pic2.php', name: 'avatar', onSubmit: function(file, ext){ if (! (ext && /^(jpg|jpeg)$/.test(ext))){ // extension is not allowed status.html('Tikai *.jpg un *.jpeg formāts.'); return false; } status.html('Uzgaidi...'); }, onComplete: function(file, response){ //On completion clear the status status.text(''); //Add uploaded file to list if(response){ location.reload(true); } } }); }); Ja man ir šādā secībā tad man nestrādā autorizācijas kods, bet ja otrādi tad atkal neiet augšupielādes kods. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 30, 2012 Report Share Posted December 30, 2012 Nav kkur sintakses errors? Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted December 30, 2012 Author Report Share Posted December 30, 2012 vairākas reizes esmu skatījies.. nu it kā nav sitakses kļūda Quote Link to comment Share on other sites More sharing options...
waplet Posted December 30, 2012 Report Share Posted December 30, 2012 Saliec maybe visu vienā Jquery(function(){ ... }); Quote Link to comment Share on other sites More sharing options...
briedis Posted December 30, 2012 Report Share Posted December 30, 2012 Nevajag gadījumā jQuery.noClonflict() nevis $.noConflict(); ? Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted January 2, 2013 Author Report Share Posted January 2, 2013 es arī meiģināju jQuery.noConflict(); bet tas neko nemaina Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted January 2, 2013 Report Share Posted January 2, 2013 Ko saka js error konsole? Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted January 3, 2013 Author Report Share Posted January 3, 2013 konsole neko nerāda.. tukšums! Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted January 3, 2013 Report Share Posted January 3, 2013 varbūt sakaujas par vienu <form>? Quote Link to comment Share on other sites More sharing options...
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.