' content += '

'+value.title+'

' content += '

- '+ value.publisher+ '

' content += '' $('.gooogle .inner').append(content) } else if (c == 1) { var content = "" content += ' ' content += '

'+value.title+'

' content += '

- '+ value.publisher+ '

' content += '
' $('.gooogle .inner').append(content) } else if ( c ' content += '

'+value.title+'

' content += '

- '+ value.publisher+ '

' content += '' $('.gooogle .inner').append(content) } c++ }) $('.gooogle').delay(1000).slideDown('slow') }).error(function (e) { // console.log(' ------------------------ GOOOGLE! -- error', e) })

NLtracks agenda

    Youp van 't Hek Carré , Amsterdam, NL Concert 24 49.00
  • dinsdag 19 nov 2013

  • Youp van 't Hek

    Carré Amsterdam

    begint om: 20:00
    adviesprijs: € 24.50

    met: Youp van 't Hek

    Youp van 't Hek Carré , Amsterdam, NL Concert 24 49.00
  • woensdag 20 nov 2013

  • Youp van 't Hek

    Carré Amsterdam

    begint om: 20:00
    adviesprijs: € 24.50

    met: Youp van 't Hek

    Youp van 't Hek Carré , Amsterdam, NL Concert 24 49.00
  • donderdag 21 nov 2013

  • Youp van 't Hek

    Carré Amsterdam

    begint om: 20:00
    adviesprijs: € 24.50

    met: Youp van 't Hek

    Youp van 't Hek Carré , Amsterdam, NL Concert 24 49.00
  • vrijdag 22 nov 2013

  • Youp van 't Hek

    Carré Amsterdam

    begint om: 20:00
    adviesprijs: € 24.50

    met: Youp van 't Hek

    Memphis Maniacs Klokgebouw , Eindhoven, NL Concert 22 45.00
  • Memphis Maniacs

    Klokgebouw Eindhoven

    begint om: 20:00
    adviesprijs: € 22.50

    met: Memphis Maniacs

    Youp van 't Hek Carré , Amsterdam, NL Concert 24 49.00
  • zaterdag 23 nov 2013

  • Youp van 't Hek

    Carré Amsterdam

    begint om: 20:00
    adviesprijs: € 24.50

    met: Youp van 't Hek

    Racoon Muziekgebouw Frits Philips , Eindhoven, NL Concert 27 55.00
  • Racoon

    Muziekgebouw Frits Philips Eindhoven

    begint om: 20:15
    adviesprijs: € 27.50

    met: Racoon

    Boudewijn de Groot Zaantheater , Zaandam, NL Concert 29 59.00
  • zondag 24 nov 2013

  • Boudewijn de Groot

    Zaantheater Zaandam

    begint om: 20:15
    adviesprijs: € 29.50

    met: boudewijn de groot

    Jan Smit Zaantheater , Zaandam, NL Concert 34 69.00
  • maandag 25 nov 2013

  • Jan Smit

    Zaantheater Zaandam

    begint om: 20:00
    adviesprijs: € 34.50

    met: Jan Smit

    Youp van 't Hek Carré , Amsterdam, NL Concert 24 49.00
  • dinsdag 26 nov 2013

  • Youp van 't Hek

    Carré Amsterdam

    begint om: 20:00
    adviesprijs: € 24.50

    met: Youp van 't Hek



    top





" content += "Zoekt " if (artist) { content += "
op " + artist + "
" } if (city) content += " in " + city + "" content += " in de periode tussen " + f_d_display + " en " + t_d +"


" $('#agenda_results').html(content) $.getJSON( url, function(a_data) { $('#agenda_results').html("") var content = "" content += "
U zocht " if (artist) { content += "
op " + artist + "
" } if (city) content += " in " + city + " " content += "in de periode tussen " + f_d_display + " en " + t_d_display +"
" content += '
reset


' content += "" $('#agenda_results').append(content) renderItems( a_data ) }).fail(function(e){ //console.log('well that was a mistake: ', e ) $('#agenda_results').html("") $('#agenda_results').append("
Oeps... er ging iets mis :(
") }).done(function(e){ //console.log('it is done') }).always(function(e){ //console.log('disco') }) } // this is a relay function function agenda_in_agenda( _a_tag_list ) { _a_tag_list = _a_tag_list.split('&').join(',') $('#to_date').val("31.12.2014") $('#artiest').val( _a_tag_list ) post_controller() }// end get function function renderItems( a_data ) { if (a_data.length == 0) { $('.agenda_items').append("

Helaas geen optredens gevonden. Probeer andere datums, plaats of artiest

" ) //$('.agenda_items').append("

terug



" ) }else{ var lastDate = new Date(0) $.each( a_data, function(key, a_i) { var displ = "" var leDate = new Date( a_i.agenda_item.date ) if ( leDate > lastDate ) { var weekdays = [ "zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag" ] var months = [ "jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec" ] var nice_date = "" nice_date += weekdays[ leDate.getUTCDay() ] + " " nice_date += leDate.getDate() + " " nice_date += months[ leDate.getMonth() ] + " " nice_date += leDate.getFullYear() // set the date to lastdate lastDate = leDate displ += "
  • " + nice_date + "

  • " } displ += "
  • " displ += "
    " if ( a_i.agenda_item.image != null ) image = a_i.agenda_item.image if ( a_i.agenda_item.thumbnail_image != null ) image = a_i.agenda_item.thumbnail_image if ( a_i.agenda_item.medium_image != null ) image = a_i.agenda_item.medium_image if (image != null) displ += "" displ += "
    " displ += "

    "+a_i.agenda_item.title+"

    " displ += a_i.agenda_item.stage + ", "+a_i.agenda_item.city+"" displ += "

    " + a_i.agenda_item.description + "

    " displ += "
    " if (a_i.agenda_item.doors_time != null) displ += "deuren open " + a_i.agenda_item.doors_time + "
    " if (a_i.agenda_item.start_time != null) displ += "begint om: " + a_i.agenda_item.start_time + "
    " if (a_i.agenda_item.end_time != null) displ += "eindigd om: " + a_i.agenda_item.end_time + "
    " if (a_i.agenda_item.entry != null) displ += "adviesprijs: € "+ Math.round( ( parseInt(a_i.agenda_item.entry)/2 ) * 100) / 100 + "0
    " //displ += "Meer informatie en Tickets" displ += "
    " displ += "

    met: "+ a_i.agenda_item.tag_list + "

    " displ += "
    " displ += "" $('.agenda_items').append( displ ) }) // end for each } } function findValueCallback(event, data, formatted) { post_controller() } //function updateAllRelated( "agenda_id", "" ); $(function() { // ajax in the cities $.ajax({ url: "/stedenlijst", context: document.body, success: function( data ){ var steden = data.split("\n"); $('#stad').autocomplete( steden ) $('#stad').result().keypress( function(e) { if (e.keyCode == 13) { post_controller() }}) } }); // autcomplete $('#stad').keypress( function(e) { if (e.keyCode == 13) { post_controller() }}) //$('#stad').result( findValueCallback ).next().click( function() { $(this).prev().search(); } ); // add callback ( find findValueCallbackTag in helpers ) // ajax in the artists $.ajax({ url: "/artist_names", // "/names_feed" context: document.body, success: function( data ){ var artists = data.split("\n"); $('#artiest').autocomplete( artists ) $('#artiest').result().keypress( function(e) { if (e.keyCode == 13) { post_controller() }}) } }); // autocomplete 1 $('#artiest').keypress( function(e) { if (e.keyCode == 13) { post_controller() }}) //$('#artiest').result( findValueCallback ).next().click( function() { $(this).prev().search(); } ); // add callback ( find findValueCallbackTag in helpers ) // set dates var now_date = new Date() $( "#from_date" ).val( now_date.getDate() + "." + (parseInt(now_date.getMonth()) + 1) + "." + now_date.getFullYear() ) var nextMonth = parseInt(now_date.getMonth()) + 2 if (nextMonth == 13) nextMonth = 1 $( "#to_date" ).val( now_date.getDate() + "." + nextMonth + "." + now_date.getFullYear() ) // datepicker translations translations = { // Default regional settings closeText: 'Klaar', // Display text for close link prevText: 'Vrg', // Display text for previous month link nextText: 'Vlgd', // Display text for next month link currentText: 'Vandaag', // Display text for current month link monthNames: ['januari','februari','maart','april','mei','juni', 'july','augustus','september','oktober','november','december'], // Names of months for drop-down and formatting monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], // For formatting dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'], // For formatting dayNamesShort: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], // For formatting dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], // Column headings for days starting at Sunday weekHeader: 'Wk', // Column header for week of the year dateFormat: 'dd.mm.yy', // See format options on parseDate firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ... isRTL: false, // True if right-to-left language, false if left-to-right showMonthAfterYear: false, // True if the year select precedes month, false for month then year yearSuffix: '' // Additional text to append to the year in the month headers }; // set datepicker console.log('where are my translations') $( "#from_date" ).datepicker( translations ); $( "#to_date" ).datepicker( translations ); // set onchange // $( "#to_date" ).change( function() { } ) // $( "#from_date" ).change( function() { } ) })

    Recommended reading

      Google+ Google+