WebSite-PHP Framework PHP
Mehrsprachig
Einfacher Ajax Modus
Kein HTML, kein JavaScript
URL Rewriting
Mails senden
Sitemap - RSS - Web service
Laden Sie WebSite-PHP FrameWork jetzt herunter
 


Loading
 


Tutorial : TextBox search 
with autocomplete and Analystics tracking

Tutorials

>

Tutorial Textbox

>

Tutorial : TextBox search with autocomplete and Analystics tracking


Textbox-10: Tutorial der Komponente Textbox vom PHP FrameWork WebSite-PHP.

Tutorial : TextBox search with autocomplete and Analystics tracking:



Zurück zum Tutorial der Komponente Textbox



Quelltext

Quelltext


Datei: /pages/tutorials/textbox/textbox-10.php

<?php
class Textbox10 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : TextBox search 
                                with autocomplete and Analystics tracking"
;
        
        
// List of values used is available on:
        // http://www.website-php.com/en/tutorials/database/database-05.html
                
        
$form = new Form($this);
        
        
// Create TextBox object
        
$search_text = new TextBox($form);
        
        
// Create AutoComplete object
        
$autocomplete = new AutoComplete(
                        new 
Url("xml/textbox-search.json"), 
                        
1$autocompete_event);
        
        
// To track the autocomplete event on Google Analytics                
        
$autocomplete->setTrackEvent("Tutorial""Textbox10""AutoComplete");
        
$autocomplete->setTrackPageView();
        
        
// Set autocomplete on the TextBox
        
$search_text->setAutoComplete($autocomplete);
        
$form->setContent($search_text);
        
        
$this->render $form;
    }
}
?>


Zurück zum Tutorial der Komponente Textbox


Share

 


Copyright © 2009-2016 WebSite-PHP Framework PHP
Start Dokumentation Herunterladen Schnellstart Tutorials Wiki Issue Tracker