In a medium bowl, combine the cucumbers, onion and salt. Mix well. Cover the mixture with ice. Let stand at room temperature for two hours. In a pot, bring sugar, vinegar and spices to a boil. Drain cucumbers and onions. Add to vinegar mixture and bring almost back to a boil. Remove from heat and cool. You can store the pickles in an airtight container for up to three weeks in the fridge. They will begin tasting pickled in just a couple hours.