Tech

SQL Server/ SQL Server Management Studio- Importing bacpac file -Error SQL72045:

Copy and paste the code below and execute it in your "master" Database in SSMS. The video above will demonstrate where the "master" is.
 

sp_configure 'contained database authentication', 1;  
GO  
RECONFIGURE;  
GO

Reset a count in a different function javascript (JS) and some Jquery

I have a quiz that allows to user to take the quiz 3 times and if they don't pass on the third time, they don't get a certificate at the end of the course.
The counts reset when the user passes the quiz.

 

//Counts the clicks

Leaving site JS Lightbox Alert- exclude specific URLS as a condition

$("a[href]:not([href*='"+window.location.host+"']):not([href^='/']):not([href*='volleyball'])").on("click",l)}

 

If the URL contains "volleyball' in it, the leaving site lightbox warning does not come up and the user is redirected to the site.

Jquery and PowerSchool- If statement - show hidden fields

The below will target a div and make it appear and disappear depending on what is selected in another field.

~[wc:commonscripts]

<script>

 

$j(function($){

 $j("#ELStatusField").change(function() {

  if ($j(this).val() == "01" || $(this).val() == "06") {

    $j('div#AccessEllsDiv').show();

    $j('#AccessElls').attr('required', '');

    $j('#AccessElls').attr('data-error', 'This field is required.');

  } else {

    $j('#AccessEllsDiv').hide();

    $j('#AccessElls').val("");

Subscribe to RSS - Tech