<div dir="ltr">any errors in the console?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 5, 2014 at 10:59 PM, Rick Ashby <span dir="ltr"><<a href="mailto:ashbrix@gmail.com" target="_blank">ashbrix@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I know this has come up before, but I haven't been able to find a solution.  With XOT 2.1, I'm unable to open exported projects in chrome.  They are fantastic in Firefox.</div>
<div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Dec 27, 2013 at 6:40 PM, KnowledgeWare <span dir="ltr"><<a href="mailto:knowledgeware@kccsoft.com" target="_blank">knowledgeware@kccsoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div lang="EN-CA" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="color:#1f497d">I’m in toolkits V1.7 (trying to move to 2 – this is part of the process) in websitecode/scripts/template_management.js down around line 1030. This is the section where courses are deleted. Since my customizations use a SQL Server dbase to also store info on the courses, I want run a script to make sure that the course(s) to be deleted are not assigned to students.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">First I need to get the ‘templateID’ of the course, but not sure how to do that, I’m not good with js. Does anyone know if I can pull the ‘templateID’ of the course(s) that have been clicked in the workspace delete window at this point? I’m wondering if the document object contains the templateID(s) at this point and if so what syntax I’d use to get them.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Next, any suggestion on what is socially acceptable to js in terms of running a query on my SQL Server database to see if students are currently assigned?<u></u><u></u></span></p>

<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Thanks for any suggestions<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">RonM2 <u></u><u></u></span></p>

<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">//RGM if workspace folder selected and delete clicked:<u></u><u></u></span></p><p class="MsoNormal">

<span style="color:#1f497d">                        if(document.getElementById("folder_workspace").mainhighlight){<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                                    alert("You cannot delete the Workspace folder");<u></u><u></u></span></p>

<p class="MsoNormal"><span style="color:#1f497d">                        }<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">            }else{  <u></u><u></u></span></p>

<p class="MsoNormal"><span style="color:#1f497d">//RGM if more than one workspace course is selected and delete clicked:<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                        if(drag_manager.selected_items.length!=1){<u></u><u></u></span></p>

<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                                    var response = confirm("Are you sure you with to delete these items?");<u></u><u></u></span></p>

<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">                        }else{<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="color:#1f497d">//RGM if a single workspace course is selected and delete clicked: <u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal">

<span style="color:#1f497d">                                    var response = confirm("Are you sure you with to delete this item?");<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>

<p class="MsoNormal"><span style="color:#1f497d">                        }</span><u></u><u></u></p></div>
<br><p>This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.</p>

<p>This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.</p>


<br></div><br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Visit my "Linked In," profile:<br><a href="http://www.linkedin.com/in/rickashby" target="_blank">http://www.linkedin.com/in/rickashby</a>
</font></span></div>
<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br></blockquote></div><br></div>