Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP to jquery dialog() interaction issues.
    text
    copied!<p>I have an html button:</p> <pre><code>&lt;button id="monitor" onclick="startMonitor('&lt;?php echo $result_cameras[$i]["camera_hash"]; ?&gt;', '&lt;?php echo $result_cameras[$i]["camera_name"]; ?&gt;', '&lt;?php echo $camera_quality_flash; ?&gt;');"&gt;Monitor&lt;/button&gt; </code></pre> <p>This would load flash content:</p> <pre><code>&lt;script language="javascript" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"&gt;&lt;/script&gt; &lt;script language="javascript" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; var js = jQuery.noConflict(); var startMonitor = function(cameraHash, cameraName, cameraFlashQuality) { var url = ['flash/app.php?user=&lt;?php echo $id_hash; ?&gt;', 'camera=' + cameraHash, 'name=' + encodeURIComponent(cameraName), 'quality=' + cameraFlashQuality].join('&amp;'); js('&lt;div&gt;&lt;/div&gt;').load(url, function() { js(this).dialog(); }); }; </code></pre> <p>I want to use the jquery dialog to open this content. Everything passed in seems to be perfect (according to the GET response from firebug) but I still get a jquery error. </p> <p><code>missing ; before statement jquery.js line 612</code></p> <p>What am I doing wrong? I'm not even sure how to debug this. Thanks in advance.</p> <p><strong>EDIT:</strong> Firebug reports the GET as: <code>http://myurl.com/flash/app.php?user=dee8c751cfdd2b5fb8194a3a9bac12044621df3d&amp;camera=8f753c6bb3a8d9852a220abff0ed0d7686563007&amp;name=test22&amp;quality=0</code>. I expect these values.</p> <p>If I paste this url into my browser the flash app starts in the browser as expected but not with the jquery dialog obviously. Must be something wrong with my jquery code?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload