phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgwapi/js/contacts selectboxes.js, NONE, 1.1.2


From: Dave Hall <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/js/contacts selectboxes.js, NONE, 1.1.2.1
Date: Sat, 13 Sep 2003 03:14:04 -0400

Update of /cvsroot/phpgroupware/phpgwapi/js/contacts
In directory subversions:/tmp/cvs-serv30356/contacts

Added Files:
      Tag: Version-0_9_16-branch
        selectboxes.js 
Log Message:
fix jsaddressbook

--- NEW FILE ---
/**************************************************************************\
 * phpGroupWare - Todo list                                                 *
 * http://www.phpgroupware.org                                              *
 * Written by Alex Borges <address@hidden>                          *
 * Low Level Design also by    Dave Hall address@hidden                         
 *
 * UI Design and market research by Gerardo Ramirez address@hidden
 * Code ripped off deveral public domain and gpl sites. Credits in each function
 * for those
 *-----------------------------------------------                          *
 *  This program is free software; you can redistribute it and/or modify it *
 *  under the terms of the GNU General Public License as published by the   *
 *  Free Software Foundation; either version 2 of the License, or (at your  *
 *  option) any later version.                                              *
 \**************************************************************************/




//@class box_parser 
[...1022 lines suppressed...]
//@discussion Returns the selected index as normal js selectedIndex call
//We only use this because we use funny names for our selectboxes
function getSelectedIdx(selbox)
{
        var len;
        var sbox;
        var j;
        sbox=document.forms[this.formname][selbox];
        return sbox.selectedIndex;
}
//@function optionvalue 
//@param selectbox The name of the selectbox
//@param selectedidx The index of the selected option
//@discussion Returns the value of the option pointed to by selectedidx
function optionvalue(selectbox,selectedidx)
{
        var sbox;
        sbox=document.forms[this.formname][selectbox];
        return sbox.options[selectedidx].value;
}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]