PHP和JavaScript传递数组并使用dtree.js生成树
摘要:<html><head> <link rel="StyleSheet" href="include/dtree/dtree.css" type="text/css" /> <script type="text/javascript" src="include/dtree/dtree.js"></script></head>&l...
阅读全文
posted @
2009-06-08 09:14
garfieldtom
阅读(1033)
推荐(1)
PHP和Javascript传递数组参数的方法
摘要:<?php include_once("./class.config.php"); $Result = $db->SelectSQL("select * from dept order by ParentDeptCode"); while($temp = $db->Fetch($Result)) { $Rs[]=$temp; } //如果PHP版本为5.2.0以上,直接用内置JS...
阅读全文
posted @
2009-06-08 08:44
garfieldtom
阅读(1136)
推荐(0)
jQuery中的treeview插件
摘要:jQuery做树状结构真的很简单,下面做一个最简单的示例: 在html文件中引用: <link rel="stylesheet" href="../jquery.treeview.css" /> <link rel="stylesheet" href="../red-treeview.css" /> <link rel="stylesheet" href="scree...
阅读全文
posted @
2009-06-06 13:27
garfieldtom
阅读(655)
推荐(0)
JavaScript学习之单选钮值判断
摘要:for(var i=0;i<radios.length;i++) { if(radios[i].checked==true) { var QueryType=radios[i].value; break; } } 用document.getElementById("radios").value判断只能取出第一个值,而不是选择值
阅读全文
posted @
2009-06-04 16:24
garfieldtom
阅读(277)
推荐(0)
PHP和JavaScript之间的数组传递(转)
摘要:(转自:http://www.phpchina.com/html/72/6372-8722.html) 这两天在搞PHP与AJAX之间的数据传递问题,传递字符串可用AJAX的XMLHttpRequest.responseText接受即可.但传递一个数组该怎么办呢?当然可以把数组先存入XML,以XML格式进行传递,AJAX用XMLHttpRequest.responseXML来接受数据.但这里要说的...
阅读全文
posted @
2009-06-04 15:00
garfieldtom
阅读(3388)
推荐(0)
JavaScript弹出窗口问题
摘要:我写了个JS: // JavaScript Document window.onload=initAll; function initAll(){ document.getElementById("SelectDept").onclick=initRedirect;} function initRedirect(){ window.open("SelectDept.php","请选择部门"...
阅读全文
posted @
2009-06-03 20:23
garfieldtom
阅读(190)
推荐(0)