http://sztym.xvip209.asccf.com/test/s.asp这个页面,
是一个评估物品价格的页面,
按照物品的新旧程度及配件来返回其价值,
比如说一台MP3播放器,如果是坏的就值10元,如果成色比较旧但还能用就值20元,如果看起来比较新就值30元(这些价格在后台已经设好了,),根据客户的选择来计算价格,
上面那个页面遇到问题了,在客户选择结束后不会计算出价格,
请朋友指点下,
谢谢了

解决方案 »

  1.   

    <script type="text/javascript" charset="utf-8">
      // <![CDATA[
      var advanced_calculation_form_html = "<form action=\"/products/24830/calculation\" id=\"advanced_calculation_form\" method=\"get\">      <input id=\"product_id\" name=\"product_id\" type=\"hidden\" value=\"24830\" />\n\n      <div id=\'condition_content\' class=\'calculator_pane \'>\n\n\n\n\n\n  <fieldset class=\'powers_on_question hidden_question\'>\n      <span>\n        <label>Yes<\/label>\n        <input id=\"calculator_answers_344_1195\" name=\"calculator_answers[344]\" type=\"radio\" value=\"1195\" />\n      <\/span>\n      <span>\n        <label>No<\/label>\n        <input class=\"short_circuitable\" id=\"calculator_answers_344_1196\" name=\"calculator_answers[344]\" type=\"radio\" value=\"1196\" />\n      <\/span>\n  <\/fieldset>\n\n  <fieldset class=\'physical_condition_question hidden_question\'>\n      <span>\n        <label>Poor<\/label>\n        <input id=\"calculator_answers_345_1197\" name=\"calculator_answers[345]\" type=\"radio\" value=\"1197\" />\n      <\/span>\n      <span>\n        <label>Fair<\/label>\n        <input id=\"calculator_answers_345_1198\" name=\"calculator_answers[345]\" type=\"radio\" value=\"1198\" />\n      <\/span>\n      <span>\n        <label>Good<\/label>\n        <input id=\"calculator_answers_345_1199\" name=\"calculator_answers[345]\" type=\"radio\" value=\"1199\" />\n      <\/span>\n      <span>\n        <label>Perfect<\/label>\n        <input id=\"calculator_answers_345_1200\" name=\"calculator_answers[345]\" type=\"radio\" value=\"1200\" />\n      <\/span>\n  <\/fieldset>\n\n\n\n<div class=\'condition questions\'>\n  <h4>Blu-Ray Player Condition<\/h4>\n  <h3>My Blu-Ray Player has:<\/h3>\n\n  <fieldset>\n    <label for=\"overall_condition_broken\">\n      <input class=\"radio valid_condition\" id=\"overall_condition_broken\" name=\"overall_condition\" type=\"radio\" value=\"<%=rs("Defective_price")%>\" />\n      <strong>physical problems<\/strong> that prevent use\n    <\/label>\n    \n    <label for=\"overall_condition_used\">\n      <input class=\"radio\" id=\"overall_condition_used\" name=\"overall_condition\" type=\"radio\" value=\"used\" />\n      pre-owned item, but works well\n    <\/label>\n    \n    <div class=\'condition_suboptions\'>\n      <label for=\"used_condition_poor\">\n        <input class=\"radio suboption valid_condition\" id=\"used_condition_poor\" name=\"used_condition\" type=\"radio\" value=\"<%=rs("wear_price")%>\" />\n        Serious wear like cracks, numerous heavy scratches, or dents\n      <\/label>\n      \n      <label for=\"used_condition_fair\">\n        <input class=\"radio suboption valid_condition\" id=\"used_condition_fair\" name=\"used_condition\" type=\"radio\" value=\"<%=rs("scratches_price")%>\" />\n        Moderate wear and tear, such as deep scratches or nicks\n      <\/label>\n      \n      <label for=\"used_condition_good\">\n        <input class=\"radio suboption valid_condition\" id=\"used_condition_good\" name=\"used_condition\" type=\"radio\" value=\"<%=rs("N_Price")%>\" />\n        Slight wear such as faint scratches or scuffs\n      <\/label>\n    <\/div>\n    \n    <label for=\"overall_condition_new\">\n      <input class=\"radio valid_condition\" id=\"overall_condition_new\" name=\"overall_condition\" type=\"radio\" value=\"<%=rs("P_Price")%>\" />\n      <strong>New items<\/strong>, it looks like it has never been used\n    <\/label>\n  <\/fieldset>\n  \n  <a href=\"\" class=\"continue_button inactive\">Continue &gt;<\/a>\n<\/div>\n\n<div class=\'condition_help_content\'>\n<\/div>\n\n<div id=\'accuracy_notice\'><\/div>\n<\/div>......(代码太长了,只好把后面部分省略了)<script type="text/javascript" charset="utf-8">
        var product_is_media = false;
      var product_id = 24830;
      var original_form_action = {scheme:"http", action:"/products/24830/calculation", method:"get"}
      var category_name = 'Blu-Ray Players';
    </script>
    [/code]上面代码是仿别人的,我看不明白啊
    我的想法是用value=\"<%=rs("wear_price")%>\"来读取数据库的值,然后再根据客户的选择来计算价格,