false Posted December 14, 2009 Report Share Posted December 14, 2009 <script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> $(function(){ $(".forgot-password").find("input[type=button]").click(function(){ var $v = $(".forgot-password").find("input[type=text]").val(); if($v.length>2){ $(".forgot-password").append("<div id='error-console'></div>"); $("#error-console").css({display : 'none'}).html("Uzgaidiet").fadeIn('slow',function(){ $.get('fpw.php',{ c : 1, hdm : $(".forgot-password").find("input[type=text]").val() }, function(d){ if(d=='0x0'){ $("#error-console").fadeOut('slow',function(){ $(this).text("Nav reģistrēta šāda nika vai e-pasta").fadeIn('slow',function(){ setTimeout('$("error-console").fadeOut("slow",function(){$(this).remove();});',2500); }); }); }else if(d=='0x1'){ $(".forgot-password").html('Uz tavu e-pastu tika nosūtīta jaunā parole'); }else{ $("#error-console").css({display : 'none'}).html("Koda kļūda").fadeIn('slow',function(){ setTimeout('$("error-console").fadeOut("slow",function(){$(this).remove();});',2500); }); } }); }); } }); }); </script> </div> Bet visu laiku rada Koda kļūda Kas par vainu? p.s tajos javascriptos nemāku neko.. Quote Link to comment Share on other sites More sharing options...
0 briedis Posted December 14, 2009 Report Share Posted December 14, 2009 Ctrl + Shift + J, apskaties, kur tieši ir tād kļuda... Quote Link to comment Share on other sites More sharing options...
0 false Posted December 14, 2009 Author Report Share Posted December 14, 2009 Kļūda: syntax error Avota fails: javascript:%20http://localhost/forgot_pw/ Rinda: 1, kolonna: 27 Pirmkods: http://localhost/forgot_pw/ Un kas tur nepareizs? Quote Link to comment Share on other sites More sharing options...
0 briedis Posted December 14, 2009 Report Share Posted December 14, 2009 (edited) Nu pirmā rindiņa - kā redzi - $(function(){ Nesaprotu, ko tu ar to esi domājis... Nezinu, vai tā ir kļūda, bet ja tu filtrē pēc atribūtiem, tad atribūta vērtība ir jāliek pēdiņās $(".klase[atributs=vertiba]") Edited December 14, 2009 by briedis Quote Link to comment Share on other sites More sharing options...
0 jx12345 Posted December 14, 2009 Report Share Posted December 14, 2009 Es pieņemu, ka smarty nelieto. Paņem otrajā script blokā kā pirmo rindiņu ieliec alert(jQuery); Ja rezultātā uz ekrāna parāda "undefined", tad vaina būs rokā. Quote Link to comment Share on other sites More sharing options...
0 false Posted December 15, 2009 Author Report Share Posted December 15, 2009 Parāda function (E, F) { return new (o.fn.init)(E, F); } Quote Link to comment Share on other sites More sharing options...
Question
false
Bet visu laiku rada Koda kļūda
Kas par vainu?
p.s
tajos javascriptos nemāku neko..
Link to comment
Share on other sites
5 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.