Jump to content


  • Content count

  • Joined

  • Last visited

1 Follower

Profile Information

  1. dzhang

    Country-State Selector

    Yes, it's working now. Thanks, Steve. David
  2. dzhang

    Country-State Selector

    Steve: Your question let me notice the line tep_get_sm_country_list('shipto_country',$desti_area,'onChange="return refresh_form();"') Now, I add the form name in return refresh_form(): tep_get_sm_country_list('shipto_country',$desti_area,'onChange="return refresh_form(f_shipto);"') It seems to be working now. I see it's refleshing, instead of no refleshing, but error David
  3. dzhang

    Country-State Selector

    Thanks Steve. It's in function refresh_form(form_name) { form_name.action.value = 'refresh'; form_name.submit(); return true; } the line form_name.action.value = 'refresh'; I followed you Debugging Tips, turn on "Display a notification of every script error". in IE, and it said that error. With firefox, it says, "form_name has no properties", and points to the same line. David .
  4. dzhang

    Country-State Selector

    Hello, I got Below are the related code. I don't know what's wrong and what to do, please help. Thanks David $process = false; // +Country-State Selector $refresh = false; if (isset($HTTP_POST_VARS['action']) && (($HTTP_POST_VARS['action'] == 'process') || ($HTTP_POST_VARS['action'] == 'refresh'))) { if ($HTTP_POST_VARS['action'] == 'process') $process = true; if ($HTTP_POST_VARS['action'] == 'refresh') $refresh = true; // -Country-State Selector ... <html> <head> ... <?php require('includes/form_check_js.php'); ?> </head> <body> ...... echo tep_draw_form('f_shipto', tep_href_link('sm_shipping.php', '', 'SSL'), 'post', 'onSubmit="return check_form(f_shipto);"') . tep_draw_hidden_field('action', 'process'); ..... echo tep_get_sm_country_list('shipto_country',$desti_area,'onChange="return refresh_form();"'); ......
  5. Hello, I just posted a contribution China Post Shipping (contributions,3952), but forgot to select the category at the beginning. And now it's in the category of credit modules. Could some one help to move the contribution to the right category? Thanks David
  6. The dropdown box is nice. But, it doesn't automatically refresh when the country is changed, and no input is allowed for the new country. I see the current demo at the oscommerce.com site. These problems are solved. States are autometically updated when the country is changed. And there is an input box for entering a state name when zone list is not available. Did I miss anything? or there is an update? where can I get the update? Thanks David