Login   Register  
PHP Classes
elePHPant
Icontem

File: Security/Admin/App/trgrs_FormData.js.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Michael J. Fuhrman  >  Security  >  Security/Admin/App/trgrs_FormData.js.php  >  Download  
File: Security/Admin/App/trgrs_FormData.js.php
Role: Example script
Content type: text/plain
Description: JavaScript Functions to manage form data
Class: Security
Manage user accounts and access controls
Author: By
Last change:
Date: 2010-08-27 08:22
Size: 913 bytes
 

Contents

Class file image Download
<?
    $szNameSpace 
"ENetArch_Panel_Content";
    if (isset (
$_REQUEST["szNameSpace"]))
        
$szNameSpace $_REQUEST["szNameSpace"];

    
$aryNameSpace explode ("."$szNameSpace);
    
$szParent implode ("."array_slice ($aryNameSpace0count ($aryNameSpace) -1));

?>

<?= $szNameSpace ?>.cmdAdd = function (thsForm)
{
    szParams =
        "nID=" + this.nCurrentID + "&" +
        "szNameSpace=" + this.szNameSpace + "&" +
        <?= $szParent ?>.getFormData (thsForm) ;

    <?= $szParent ?>.postPanel ("App/add.php", this.divTarget, szParams);
    <?= $szParent ?>.selected (this.nCurrentID);
};

<?= $szNameSpace ?>.cmdUpdate = function (thsForm)
{
    szParams =
        "nID=" + this.nCurrentID + "&" +
        "szNameSpace=" + this.szNameSpace + "&" +
        <?= $szParent ?>.getFormData (thsForm) ;

    <?= $szParent ?>.postPanel ("App/update.php", this.divTarget, szParams);
    <?= $szParent ?>.selected (this.nCurrentID);
};