I'm trying to scrape and submit information to websites that heavily rely on Javascript to do most of its actions. The website won't even work when i disable Javascript in my browser.
I've searched for some solutions on Google and SO and there was someone who suggested i should reverse engineer the Javascript, but i have no idea how to do that. 
So far i've been using Mechanize and it works on websites that don't require Javascript.
Is there any way to access websites that use Javascript by using urllib2 or something similar? 
I'm also willing to learn Javascript, if that's what it takes.
I would actually suggest using Selenium.  Its mainly designed for testing Web-Applications from a "user perspective however it is basically a "FireFox" driver.  I've actually used it for this purpose ... although I was scraping an dynamic AJAX webpage.  As long as the Javascript form has a recognizable "Anchor Text" that Selenium can "click" everything should sort itself out.
Hope that helps
Scraping websites with Javascript enabled?