Witam
Moze juz ktos sie spotkal z tym problemem, mianowicie mam kodzik
<?php
echo "<script src=\"jquery-1.2.6.js\" type=\"text/javascript\"></script>\n"; echo "<script src=\"documentation.js\" type=\"text/javascript\"></script>\n"; echo "<script type=\"text/javaScript\" src=\"/jquery/project/chili/jquery.chili-2.0.js\"></script>\n"; echo "<script type=\"text/javascript\">try{ChiliBook.recipeFolder=\"/jquery/project/chili/\"}catch(e){}</script>\n"; echo "<script src=\"jquery.MetaData.js\" type=\"text/javascript\" language=\"javascript\"></script>\n"; echo "<script src=\"jquery.rating.js\" type=\"text/javascript\" language=\"javascript\"></script>\n"; echo "<link href=\"jquery.rating.css\" type=\"text/css\" rel=\"stylesheet\"/>\n"; ."$(function(){"
." $('.hoverstar').rating({"
." focus: function(value, link){"
." var tip = $('#hover-test');"
." tip[0].data = tip[0].data || tip.html();"
." tip.html(link.title || 'value: '+value);"
." },"
." blur: function(value, link){"
." var tip = $('#hover-test');"
." $('#hover-test').html(tip[0].data || '');"
." }"
." });"
."});"
."</script>"
."<form method=\"post\" action=\"rating.php\"><input type=\"hidden\" name=\"id\" value=\"$id\" />\n";
echo "<input class=\"hoverstar\" name=\"rating\" type=\"radio\" value=\"1\"/ title=\"verybad\" />\n"; echo "<input class=\"hoverstar\" name=\"rating\" type=\"radio\" value=\"2\"/ title=\"bad\" />\n"; echo "<input class=\"hoverstar\" name=\"rating\" type=\"radio\" value=\"3\"/ title=\"simply\" />\n"; echo "<input class=\"hoverstar\" name=\"rating\" type=\"radio\" value=\"4\"/ title=\"ok\" />\n"; echo "<input class=\"hoverstar\" name=\"rating\" type=\"radio\" value=\"5\"/ title=\"very\" />\n"; echo "<span id=\"hover-test\" style=\"margin:0 0 0 20px;\">999</span>"; echo"<input type=\"submit\" value=\""._btvote
."\" />"; ?>
Chcialem sobie upiekrzyc ten formulaz plugin'em jQuery Star Rating ale pojawil mi sie dosc dziwny blad, otoz kiedy mam wlaczony dodatek (class="star") formularz nie wysyla mi wartosci pola value (id wysyla poprawnie) natomiast kiedy wylacze jQuer'a formulaz dziala poprawnie, wszystkie rekordy sa poprawnie wysylane... Czy wiecie moze co jest tego przyczyna?
Pozdrawiam
Ten post edytował JamalBIG 2.08.2008, 23:12:15