[phpwebapp-commits] CVS: web_app/webobjects/xlistbox xlistbox.txt,1.3,1.4 xlistbox.html,1.3,1.4
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-07-14 14:46:18
|
Update of /cvsroot/phpwebapp/web_app/webobjects/xlistbox In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13284/webobjects/xlistbox Modified Files: xlistbox.txt xlistbox.html Log Message: Index: xlistbox.txt =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/xlistbox/xlistbox.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** xlistbox.txt 16 Jul 2003 09:27:59 -0000 1.3 --- xlistbox.txt 14 Jul 2004 14:45:35 -0000 1.4 *************** *** 70,78 **** If you want to init the lists with some values, you can add this JS code after the </form> is closed: ! <script language="javascript"> var form = document.userdata; xlistbox_select(form.office, '{{office}}'); fill_sublist(form.department, '{{office}}', '{{department}}'); fill_sublist(form.user, '{{department}}', '{{user}}'); </script> The mainlist usually doesn't need to be initialized, because it is --- 70,80 ---- If you want to init the lists with some values, you can add this JS code after the </form> is closed: ! <script type="text/javascript" language="javascript"> ! <![CDATA[ var form = document.userdata; xlistbox_select(form.office, '{{office}}'); fill_sublist(form.department, '{{office}}', '{{department}}'); fill_sublist(form.user, '{{department}}', '{{user}}'); + ]]> </script> The mainlist usually doesn't need to be initialized, because it is Index: xlistbox.html =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/xlistbox/xlistbox.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** xlistbox.html 22 Aug 2003 06:47:19 -0000 1.3 --- xlistbox.html 14 Jul 2004 14:45:35 -0000 1.4 *************** *** 28,32 **** </Repeat> </select> ! <script language="javascript"> var arr_{{obj_name}} = new Array(); var item; --- 28,32 ---- </Repeat> </select> ! <script type="text/javascript" language="javascript"> var arr_{{obj_name}} = new Array(); var item; |