title: Upload script - Javascript variable inside jQuery parameter
body: <p>I can't tell if I'm misunderstanding the syntax or if I'm not understanding the concept.  I want to take a javascript variable and concatenate it into a URL parameter inside a jQuery function.  The variable is reassigned by another upload script's jQuery function.  </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var trackid = 12;
  
  
  jQuery(document).ready(function() { 
  
      $('#mainftp2').uploadify({
      'uploader'  : 'js/uploadifymultiple/uploadify.swf',
      'script'    : 'js/uploadifymultiple/uploadify.php?&lt;?php echo urlencode("songid=" . $songid . "&amp;userid=" . $userid . "&amp;trackid=);?&gt;'+trackid+'"',
      'multi'         : true,
      'auto'          : true,
      'height'        :   '32', //height of your browse button file
      'width'         :   '250', //width of your browse button file
      'sizeLimit' :   '51200000',  //remove this to set no limit on upload size
      'simUploadLimit' : '3', //remove this to set no limit on simultaneous uploads
      'buttonImg' : 'img/browse.png',
      'cancelImg' : 'img/cancel.png',
          'folder'    : '&lt;?php echo $multiFolder?&gt;', //folder to save uploads to
          onProgress: function() {
            $('#loader2').show();
          },
          onComplete: function(event, queueID, fileObj, response, data) {
            $('#loader2').hide();
            $('#allfiles2').load(location.href+" #allfiles2&gt;*","");
            $('#filesUploaded2').attr('value', ''+response+'');
  
            //location.reload(); //uncomment this line if youw ant to refresh the whole page instead of just the #allfiles div
          }   
      });
  
      $('ul li:odd').addClass('odd');
  
  }); 
      &lt;/script&gt;
  </code></pre>