This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$(document).ready(function() { | |
if (RegExp('profile/login').test(window.location.href)) { | |
$('a[onclick*=forgotpassword]') | |
.html("Click here to receive your password.") | |
.click(function() { | |
$('.login form').eq(0).hide(); | |
$('.login table').eq(0).hide(); | |
$('a[onclick*=forgotpassword]').hide(); | |
var x = $('#forgotpassword').html() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[API URL]/api/authenticate.sjs | |
?xml | |
&email=[email] | |
&password=[password] | |
&organization_KEY=[number] | |
&chapter_KEY=[number] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Add client-side validation and defaulting to any upload page. --> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
if (/upload_page_KEY=\d+/.test(window.location.href)) { | |
$('#upload_page').submit(function () { | |
var file = $('*[name=file]').val(); | |
if (file.length == 0 || file == 'No file selected.') { | |
alert('Please click the Browser button to choose a file before submitting this form.'); | |
return(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// Replace `URL` with the URL where you want the user to go. | |
// Please keep all punctuation intact! | |
window.location = "URL"; | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://sample.salsalabs.com/api/authenticate.sjs | |
?xml | |
&email=youremail@email.com | |
&password=yourpass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://sample.salsalabs.com/api/authenticate.sjs | |
?json | |
&email=youremail@email.com | |
&password=yourpass | |
&organization_KEY=12345 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://big_org.salsalabs.com/api/authenticate.sjs | |
?xml | |
&email=youremail@email.com | |
&password=yourpass | |
&organization_KEY=12345 | |
&chapter_KEY=1234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// See https://salsasupport.zendesk.com/entries/23514381-Definitions-for-common-terms | |
// to find out to retrieve the API URL in $url. | |
$url = "https://API_URL/api"; | |
$username = ""; # Campaign Manager username goes here | |
$password = ""; # Campaign Manager password goes here | |
// Method #1 for building post objects to send to Salsa | |
$authfields["email"] = $username; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.perpetual-disclaimer { | |
padding: 5px; | |
width: 500px; | |
text-align: center; | |
background-color: lemonchiffon; | |
color: darkblue; | |
border: 1pt solid forestgreen; | |
line-height: 1.2em; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$(document).ready(function() { | |
var required = $('*[name=required]'); | |
var val = required.val(); | |
if (val.indexOf('Designation_Code') == -1) { | |
val = val + "Designation_Code,"; | |
required.val(val); | |
} | |
}); | |
</script> |