title: Send data to iframe using get in javascript
body: <p>i create one button in html</p>
  
  <pre><code>&lt;input type="button"  value="Simulate" class="submit_btn"  id="stimulate" /&gt;
  </code></pre>
  
  <p>and use jquery onclick event and create iframe , i want to send lat, long and title to iframe and create dynamic map but i send <strong>get 10 % discount</strong> as a subtitle , i get following error</p>
  
  <pre><code>GET http://domain name/name of controller/name of function/57.643821505750964/12.180534033203116//get%2010%%20discount 400 (Bad Request)
  
  
  
  $("#stimulate").click(function() {
  var ad_lng = document.getElementById("longclicked").value;
  var ad_subtitle = document.getElementById("ad_subtitle").value;
  var ad_lat = document.getElementById("latclicked").value;
  
  $('#iframeHolder').html('&lt;iframe id="iframe" src="&lt;?php echo base_url(); ?&gt;index.php/admin/frame_stimulator/'+ad_lat+'/'+ad_lng+'/'+ad_subtitle+'" width="700" height="550" scrolling="no"  frameborder="0"&gt;&lt;/iframe&gt;');
  }
  </code></pre>
  
  <p>how can i send data to iframe . i dont want to use form and send data by post method..
  without using form i can post data to iframe</p>