test2 Posted September 13, 2008 Report Share Posted September 13, 2008 Man ir shaads kods: function veikals(prece, lapa) { return $("#shop").load("query.php?p"+lapa+"&prece="+prece); } Un ieksh savas lapas es sho iedarbinu shaadi: <script type="text/javascript"> $(document).ready(function() { return veikals('test', '1'); }); </script> Un viss iet, ieksh shop diva tiek ielaadeets query.php ar padotajiem mainiigajiem p=1 un prece=test Tikliidz, es lietoju atsarpes, taa man neko neizvada vnk shop divs paliek tuksh <script type="text/javascript"> $(document).ready(function() { return veikals('test dss sd sds sds', '1'); }); </script> Probleema, manupraat nan query.php, jo ja vijam tiek padots, piemeeram "query.php?p=1&prece=test dss sd sds sds", vinsh izvada, ka nekas nav atrasts, velviena interesanta lieta, ja es rakstu, piemeeram: <script type="text/javascript"> $(document).ready(function() { return veikals('testdsssdsdssds', '1'); }); </script> Tad ielaadeejas query, kursh uzraada ka nekas nav atrasts, bet tikko lietoju atsarpes neko neizvada... varbuut ieksh load nedriikst lietot atsarpes? Link to comment Share on other sites More sharing options...
martins256 Posted September 13, 2008 Report Share Posted September 13, 2008 pamēģini ar urlencode. http://www.javascripter.net/faq/escape.htm Link to comment Share on other sites More sharing options...
test2 Posted September 13, 2008 Author Report Share Posted September 13, 2008 Tagad viss iet, paldies tev! Link to comment Share on other sites More sharing options...
Recommended Posts