(function(){for(var g=”function”==typeof Object

  • About Us

  • Signup for our newsletter

    0){dataObj.name=$(‘#name’).val();}if($(‘#lastName’).val()!=undefined&&$(‘#lastName’).val().length>0){dataObj.lastName=$(‘#lastName’).val();}if($(‘#email’).val()!=undefined&&$(‘#email’).val().length>0){dataObj.email=$(‘#email’).val();};$(‘subscribe’).attr(‘disabled’,true);$(‘subscribe’).prop(‘disabled’,true);$(“button”).removeClass(“btn btn-default”).addClass(“disabled”);$.ajax({url:’/api/content/save/1′,type:’POST’,cache:false,data:dataObj,processData:true,beforeSend:function(request){request.setRequestHeader(‘Authorization’,’Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGkzZTQ4ZjA4NC0wNTNkLTRjYjMtOTZkMy0xM2M5NzhjYTgzZWYiLCJ4bW9kIjoxNTcyMjI0OTY3MDAwLCJuYmYiOjE1NzIyMjQ5NjcsImlzcyI6ImMxMjAxZDMyLTRhNmItNDJkNC1hYWNlLTVjYjZjMmU2NzQ4ZCIsImxhYmVsIjoiVGVtcG9yYXJ5IEFjY2VzcyIsImV4cCI6MTY2Njg1MDQwMCwiaWF0IjoxNTcyMjI0OTY3LCJqdGkiOiJhZTc1NTQxNC1mYWJlLTRkZWUtYWFjZS1mNDM3NjlmZGFhMGYifQ.X57xd2RyCFg9TzoCLb4_6ZqxJrYIrcbOLqg6X-zVEGA’);console.log(dataObj)},success:function(data,status,xhr){nameParam=document.getElementById(“name”).value;window.location=”/services/thank-you-for-subscribing?name=”+nameParam;var a=xhr.getAllResponseHeaders();console.log(a.substring(a.indexOf(‘identifier: ‘)+’identifier: ‘.length,a.indexOf(‘n’,a.indexOf(‘identifier: ‘)+’identifier: ‘.length)));},error:function(data,status,xhr){$(‘subscribe’).attr(‘disabled’,false);$(‘subscribe’).prop(‘disabled’,false);$(“button”).removeClass(“disabled”).addClass(“btn btn-default”);console.log(data);alert(“Uh Oh, your request failed. Please check your entries and try again”);},});});});]]>

    Stay in touch and get the inside scoop.

  • Follow us

  • More

© 1996-2021 costarica.com, Inc. All rights reserved.

Source

Leave a Reply

Your email address will not be published. Required fields are marked *