Violence erupted in Bangkok Saturday on the eve of tense Thai elections, as heavy gunfire and explosions broke out in clashes between pro and anti-government protesters, according to an AFP journalist.