Thule - 0.9.6
  • Welcome
  • Introduction
  • - MVC(Model-View-Controller)
    - Architecture of Framework
    - Flow Chart of Application
    - Services In One Server
    - Developing Guide
    - Features
  • Installation
  • Getting Started
  • - Direct Access HTTP
    - Router Access HTTP
    - Router Direct Access HTTP
    - Reserved Function
    - Convention
    - Bootstrap
    - Pack Javascript , CSS
  • Basic Modules
  • - Model
    - View
    - Controller
  • Libraries
  • - Router
    - Config
    - Response
    - Request
    - Database
    - Query
    - Cache
    - Debug
    - Log
    - Unit Test
    - Registry
    - Profile
  • Helper
  • - Auth
    - Calendar
    - Date
    - Error page
    - Email
    - Form
    - GeoIP
    - Google
    - Html Element
    - Html
    - Http
    - I18n
    - Image
    - Json
    - Jquery
    - Login
    - Layout
    - Locale
    - PHP to Javascript
    - Paging
    - Payflow
    - Soap
    - Text
    - Table
    - Uri
    - Upload
    - Validation
  • Plugins
  • - Smarty Template Engine
  • History
  • Home > Jquery

    This helper needs the jquery-javascript-file, you need to check your configure file and make sure you already included the jquery.js before call the jquery helper.

    Load Jquery Helper

    $FE->loadHelper("jquery");

    Ajax

    #xxx means id is xxx which is target id of element.

    array("input"=>array("type"=>"button","value"=>"update" ,
    "onclick"=>$Frontend->Jquery->ajax(array("id"=>"form1","type"=>"post","url"=>"/mvc/ajax",
    "data"=>array("hin"=>"#hin",
    "rin"=>"#rin",
    "chin"=>"#chin",
    "in"=>"#in",
    "texta"=>"#texta",
    "sel"=>"#sel"),"success"=>"", ) ) ) ),

    Insert Script

    You have to insert your script which is created by calling the jquery-helper-funtion.

    Insert the below line to where you want to put.

    echo $Frontend->Jquery->script();