[Xerte] Re: JS question in template_management.js

Rick Ashby ashbrix at gmail.com
Sun Jan 5 22:59:06 GMT 2014


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.


On Fri, Dec 27, 2013 at 6:40 PM, KnowledgeWare <knowledgeware at kccsoft.com>wrote:

> 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.
>
>
>
> 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.
>
>
>
> 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?
>
>
>
> Thanks for any suggestions
>
> RonM2
>
>
>
> //RGM if workspace folder selected and delete clicked:
>
>
> if(document.getElementById("folder_workspace").mainhighlight){
>
>                                     alert("You cannot delete the Workspace
> folder");
>
>                         }
>
>
>
>             }else{
>
> //RGM if more than one workspace course is selected and delete clicked:
>
>                         if(drag_manager.selected_items.length!=1){
>
>
>
>                                     var response = confirm("Are you sure
> you with to delete these items?");
>
>
>
>                         }else{
>
>
>
> //RGM if a single workspace course is selected and delete clicked:
>
>
>
>                                     var response = confirm("Are you sure
> you with to delete this item?");
>
>
>
>                         }
>
> 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.
>
> 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.
>
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
>


-- 
Visit my "Linked In," profile:
http://www.linkedin.com/in/rickashby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20140105/6e36f66e/attachment.html>


More information about the Xerte mailing list