title: Empty list for hrefs to achieve pagination through JavaScript onclick functions
body: <p>My intension is to <code>achieve the pagination from javascript functions</code>, so for example I am taking the URL as <code>http://events.justdial.com/events/index.php?city=Hyderabad</code>, from this URL as you can see the pagination at the end of the page, so if you observe HTML of that they are written through JavaScript functions which has <code>href</code> tags as <code>#</code>, I am just trying to collect that href tags even though they are <code>#</code>.
  The following is my code</p>
  
  <pre><code>class justdialdotcomSpider(BaseSpider):
     name = "justdialdotcom"
     allowed_domains = ["www.justdial.com"]
     start_urls = ["http://events.justdial.com/events/index.php?city=Hyderabad"]
  
     def parse(self, response):
         hxs = HtmlXPathSelector(response)
         pagination = hxs.select('//div[@id="main"]/div[@id="content"]/div[@id="pagination"]/a').extract()
         print pagination,"&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;."
  </code></pre>
  
  <p>When I run the above code I am getting the result as <code>[]</code>, I mean none,can anyone tell me how to achieve the pagination through that JavaScript onclick functions and why the result is empty.And I am observing some kind of wierd in HTML that for example one of the page in pagination has anchor tag as <code>&lt;a onclick="jdevents.setPageNo(2)" href="#"&gt;2&lt;/a&gt;</code>
  but when I tried to view this by clicking <code>view page source</code>through browser I can't see any function as <code>jdevents.setPageNo(2)</code>, (I expect if we can see what he is doing in HTML we can post that through formdata as request) I am really confused and unable to go through this.</p>