yeahz Posted October 24, 2010 Report Share Posted October 24, 2010 (edited) nekad neesmu neko tādu redzējis, kāpēc kad saskaita var pager sanāk nevis 3, bet gan 111? "$("#pager").val()" izvada "1" function NewQueryNext() { var type = $("#type").val(); var country = $("#country").val(); var pager = $("#pager").val() + 1 + 1; $.ajax({ method: "get", url: "/ajax/load-new-query.php", data: "type="+type+"&country="+country+"&pager="+pager, beforeSend: function(){$("#loading-new-query").css('display', 'block');}, complete: function(){ $("#loading").css('display', 'none');}, success: function(html){ $('#pictures').html(html); } }); } vienmēr esmu šitā skaitījis un viss ir bijis labi. Edited October 24, 2010 by yeahz Quote Link to comment Share on other sites More sharing options...
codez Posted October 24, 2010 Report Share Posted October 24, 2010 tāpēc, ka $("#pager").val() atgriež stringu. Number($("#pager").val())+1+1; vai $("#pager").val()*0+1+1; Quote Link to comment Share on other sites More sharing options...
mefisto Posted October 24, 2010 Report Share Posted October 24, 2010 1-kārt: ŠĪ KATEGORIJA IR DOMĀTA PHP PROBLĒMĀ ! .. on otrkārt : parseInt( $("#pager").val() ); Quote Link to comment Share on other sites More sharing options...
marrtins Posted October 24, 2010 Report Share Posted October 24, 2010 $("#pager").val()*0+1+1; $("#pager").val()*1+1+1; ? Quote Link to comment Share on other sites More sharing options...
codez Posted October 24, 2010 Report Share Posted October 24, 2010 tpfu, ātrumā kļūdījos 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.