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
Put this into the file, where you want to use the params: | |
function parseQuery ( query ) { | |
var Params = new Object (); | |
if ( ! query ) return Params; // return empty object | |
var Pairs = query.split(/[;&]/); | |
for ( var i = 0; i < Pairs.length; i++ ) { | |
var KeyVal = Pairs[i].split('='); | |
if ( ! KeyVal || KeyVal.length != 2 ) continue; | |
var key = unescape( KeyVal[0] ); |
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
$dateformat = 'Y-m-d\TH:i'; | |
$timezone = 'Europe/Berlin'; | |
$_sPickupDateTimeObj = new DateTime('now + 1 day', new DateTimeZone($timezone)); | |
$_sPickupDateTime = $_sPickupDateTimeObj->format($dateformat); |
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
//needs a div with id='log' in the DOM. | |
$(document).ajaxStart(function() { | |
$('#log').text('Ajax-Request started'); | |
}); | |
$(document).ajaxStop(function() { | |
$('#log').text('Ajax-Request stopped'); | |
}); | |
$(document).ajaxComplete(function() { |