title: jQuery Mobile Page function
body: <pre><code> $(document).on("pageshow", "#mappage", function (event) {
      $("#doldur").append("&lt;li&gt; &lt;label onclick='getBina(" 
                          + featuressokak[f].attributes.SOKAKID 
                          + ");'&gt;" 
                          + featuressokak[f].attributes.SOKAKADI 
                          + "&lt;/label&gt;&lt;div  onclick='findsokak(" + f + ");' style='float:right;width='20%''&gt;&lt;img  src='img/map.png'   style='float:right;'/&gt;&lt;/div&gt;&lt;/li&gt;");
  
      function getBina(sokakid) {}
   });
  </code></pre>
  
  <p>I wrote part of my code. I need to call function getBina inside on mappage function. But I got this error : uncaught ReferenceError: getBina is not defined. So when I wrote function getBina outside mappage function, logicically I got error. I must run on inside. how is it possible ?</p>
  
  <p>my button code :</p>
  
  <pre><code> var content = '&lt;div class="adresbaslik"&gt;'+feature.attributes.ADI+'&lt;/div&gt;&lt;p style="margin-top:-10px"&gt;&lt;/p&gt;&lt;div class="fulladrespopup"&gt;'+mahalleadi+' MAHALLESİ '+sokfeature[0].attributes.SOKAKADI +' SOKAK NO:' + numfeature[0].attributes.KAPINO  +' '+ilceadi+'&lt;/div&gt;' ;  
                                  content = content + '&lt;p style="margin-top:-10px"&gt;&lt;/p&gt;&lt;div style="text-align: center ;"&gt;&lt;a data-ajax="false" onclick="sendForm(&amp;quot;'
                                  +ilceadi+'&amp;quot;,&amp;quot;'
                                  +mahalleadi+'&amp;quot;,&amp;quot;'
                                  +sokfeature[0].attributes.SOKAKADI+'&amp;quot;,&amp;quot;'
                                  + numfeature[0].attributes.KAPINO+'&amp;quot;,&amp;quot;'
                                  + ilcegisID+'&amp;quot;,&amp;quot;'
                                  + mahallegisID+'&amp;quot;,&amp;quot;'
                                  + sokgetir[0].attributes.GIS_ID+'&amp;quot;,&amp;quot;'
                                  + numfeature[0].attributes.KAPINO+'&amp;quot;,&amp;quot;'
                                  + feature+'&amp;quot;'
                                  +');" class="formgidin" &gt;Bildirim&lt;/a&gt;&lt;/div&gt;';
  </code></pre>