Problem with javascript onclick function string
<p>Hey all, i have been trying for a few minutes on this problem and i can not seem to figure out how to correct it. I tend to have the hardest time doing stuff like this when it involves more than one varable within the function.</p>

<p>Here is the code:</p>

<pre><code>  var tempString = "thePrompt('Are you sure you wish to delete this?', 'theDel('" + IDnum + "', '" + theTitle + "', \'" + temperDay + "\', \'" + temperMonth + "\', \'" + temperYear + "\', \'" + DDiff + "\')";

 html +=
"&lt;div id='theTable" + IDnum + "' class='fc-event fc-event-hori fc-corner-left fc-corner-right' style='position:absolute; margin-top: 15px; z-index:8;left:"+left+"px'&gt;&lt;div id='apDEL' style='position:relative;width:0px;height:0px;z-index:1000; top:-13px; left:2px; float:left;'&gt;&lt;img src='img/xCal.png' width='15' height='15' alt='' border='0' onclick=\"" + tempString + "\" /&gt;&lt;/div&gt;" + (ETC ETC...)
</code></pre>

<p>The error i keep getting is this:</p>

<pre><code> Error: missing ) after argument list
 Line: 1, Column: 68
 Source Code:
 thePrompt('Are you sure you wish to delete this posting?', 'theDel('105', '50 points for visiting us today!!!!', '13', '3', '2010', '2')
</code></pre>

<p>And its pointing to the '105'.</p>

<p>As always, any help would be wonderful! :o)</p>

<p>David</p>

<p><B>EDIT/UPDATE</B></p>

<p>Ok, so now i have moved some things around and i got it working (that is sending the values to the popup prompt box BUT for some reason it doesn't see my function after i hit the delete button! This is because the prompt is on the main page and the code i am working with is inside a iframe.</p>

<pre><code>function theDel(theID, theTitle, day, month, year, DDiff)
{
    var tempString = "delClientE(" + theID + ", '" + theTitle + "', " + day + ", " + month + ", " + year + ", " + DDiff + ")";
    parent.thePrompt('Are you sure you wish to delete this event?', tempString);
}
</code></pre>

<p>The delete button values now look like this:</p>

<pre><code>delClientE(110, 'sadfsadfsdf', 14, 3, 2010, 2); jQuery.prompt.close();
</code></pre>

<p>However, even putting parent.delClientE doesnt find the function either... How can i call it from within the iframe when the prompt box is outside of that?</p>

<p>David</p>
