title: Passing custom parameters to FancyBox
body: <p>I'm developing a hotel booking and reservation management system.</p>
  
  <p>I have a series of venues, which the user selects via a radio button. Once they select the map button, I want to send the venue name, longitude and latitude data to a Fancy Box window, so Google Maps can begin the process of determining route data, which makes specific use of <a href="http://www.dreamdealer.nl/tutorials/getting_directions_with_google_maps.html" rel="nofollow">a route planning tutorial</a>.</p>
  
  <p>I've tried...</p>
  
  <pre><code>function fancyboxLocation(href, venue, lo, la) {
     $.fancybox({
         'hideOnContentClick': true,
         'height': 430,
         'padding': 0,
         'width': 700, 
         'type': 'iframe',
         'href' : href,
         'venue': venue,
         'lo': lo,
         'la': la
     });
  }
  
  &lt;a href="javascript:;" onclick="fancyboxLocation('&lt;?php echo config_item('base_url'); ?&gt;venues/locations/route', '&lt;?php echo $venues['name']; ?&gt;', '&lt;?php echo $venues['longitude']; ?&gt;', '&lt;?php echo $venues['latitude']; ?&gt;')" title="Plan Route"&gt;
  </code></pre>
  
  <p>Although the window appears, my personal parameters (venue, lo and la) are being stripped out.</p>
  
  <p>The parameters are finding their way into the fancyboxLocation function, but they're not travelling any further.</p>
  
  <p>Any ideas how I do this?</p>