praegune kellaaeg 19.06.2025 14:46:14
|
Hinnavaatlus
:: Foorum
:: Uudised
:: Ärifoorumid
:: HV F1 ennustusvõistlus
:: Pangalink
:: Telekavad
:: HV toote otsing
|
|
autor |
|
arvutisõber
HV veteran

liitunud: 01.08.2002
|
05.04.2010 19:13:37
QCubed (PHP framework) |
|
|
http://qcu.be/
Tegemist on Qcodo edasiarendusega ehk infot ja näiteid saab ka Qcodo lehekülgedelt:
http://api.qcodo.com/
http://www.qcodo.com/demos/
http://examples.qcodo.com/examples/qcodo_query/qqcondition.php
http://www.piranhamethod.com/2009/04/09/qcodo-qcubed/
http://www.upload.ee/files/503942/QcodoClassLibrary.pdf.html (pole minu tehtud)
Väga hea sissejuhatuse annab järgnev video:
http://www.qcodo.com/view.php/beta_2_b_live
http://www.qcodo.com/view.php/beta_2_b_zip (zip)
http://www.qcodo.com kirjutas: |
* Code generation-based object relational model
* Component-based event-driven view / controller library
* Fully-integrated PHP-based AJAX support (no JavaScripting required)
* Object oriented database querying library (no SQL required)
* Built-in database profiling tools
* Internationalization support
* And much more... |
Zend Frameworki Ajaxi näide:
http://liamgraham.wordpress.com/2007/08/06/ajax-101-a-simple-example-of-using-ajax-with-the-zend-framework/
Sarnane asi Qcubed abil:
<?php
// Include prepend.inc to load Qcubed
require('includes/prepend.inc.php');
class Ajax extends QForm {
protected $lbl1;
protected $lbl2;
protected function Form_Create()
{
$this->lbl1 = new QLabel($this);
$this->lbl1->Text = 'Hover here to trigger Ajax call:';
$this->lbl2 = new QLabel($this);
$this->lbl2->Text = 'boring pre-Ajax-call text ... ';
$this->lbl1->AddAction(new QMouseOverEvent(), new QAjaxAction('lbl1_MOver'));
$this->lbl1->AddAction(new QMouseOutEvent(), new QAjaxAction('lbl1_MOut'));
} // End of Form_Create
protected function lbl1_MOver($strFormId, $strControlId, $strParameter)
{
$this->lbl2->Text = 'exciting text retrieved from server!';
$this->lbl2->FontBold = true;
} // End of lbl1_MOver
protected function lbl1_MOut($strFormId, $strControlId, $strParameter)
{
$this->lbl2->Text = 'reset to boring ...';
$this->lbl2->FontBold = false;
} // End of lbl1_MOut
} // End of Ajax
Ajax::Run('Ajax');
?>
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php _p(QApplication::$EncodingType); ?>" />
<title>Sample QForm</title>
<style type="text/css">@import url("<?php _p(__VIRTUAL_DIRECTORY__ . __CSS_ASSETS__); ?>/styles.css");
#hover_span:hover
{
cursor: crosshair;
background-color: yellow;
}
</style>
</head><body>
<?php $this->RenderBegin(); ?>
<p><span id="hover_span"><b><?php $this->lbl1->Render(); ?></b>
</span></p>
<p><span id="hello"><?php $this->lbl2->Render(); ?>
</span></p>
<?php $this->RenderEnd(); ?>
</body></html>
|
_________________ ... |
|
Kommentaarid: 55 loe/lisa |
Kasutajad arvavad: |
   |
:: |
0 :: |
1 :: |
53 |
|
tagasi üles |
|
 |
|
lisa lemmikuks |
|
|
sa ei või postitada uusi teemasid siia foorumisse sa ei või vastata selle foorumi teemadele sa ei või muuta oma postitusi selles foorumis sa ei või kustutada oma postitusi selles foorumis sa ei või vastata küsitlustele selles foorumis sa ei saa lisada manuseid selles foorumis sa võid manuseid alla laadida selles foorumis
|
|
Hinnavaatlus ei vastuta foorumis tehtud postituste eest.
|