对于高手的你来说一定很简单,请教了! 如果不是無刷新變化,可以用onchange事件。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我不知道你指的list是否是你页面上的几个下拉框如果是的话,可以用你的list的onChange事件 <table><tr><td><strong><?php echo $Language->getText('reporting','project'); ?>:</strong><br /><?php echo report_group_box('g_id',$g_id); ?></td><td><strong><?php echo $Language->getText('reporting','type'); ?>:</strong><br /><?php echo html_build_select_box_from_arrays($a2,$a,'type',$type,false); ?></td><td><strong><?php echo $Language->getText('reporting','start'); ?>:</strong><br /><?php echo report_months_box($report, 'start', $start); ?></td><td><strong><?php echo $Language->getText('reporting','end'); ?>:</strong><br /><?php echo report_months_box($report, 'end', $end); ?></td><td><input type="submit" name="submit" value="<?php echo $Language->getText('reporting','refresh');?>"></td></tr></table>在上面代码中如何使用onchange事件呢?谢谢! 你的程序都是用类和函数实现的,看了你需要修改你类里面的方法或者函数了。你的这个html_build_select_box_from_arrays函数是不是生成下拉列表的,可以从这个函数着手。 应该和那个类没有关系吧?为什么这个<td><input type="submit" name="submit" value="refresh"></td>就可以实现刷新? 我做过这方面的,在下拉框的onchange 事件中,利用js调入一个<iframe> iframe的高和宽都是0。iframe 里边的叶面(aa.php)来执行你的排序,把执行结果用table 显示在aa.php 叶面中,执行完毕后,在子页面的onload 中写入 parent.window.document.all.td名.innerHTML=document.body.innerHTML;就是用子窗口body 中所有的值给父窗口赋值,这样的话就做成了无刷新显示内容了。 我用的也是(云飞凡)这一种。javascript的通用性好点。用xmlhttp总觉得不太踏实。 求助php超链接的一个问题 glob遍历当前文件夹下所有文件错在哪儿呢? update的多条件唯一,求解决方法(mysql语法) 字符串判断的的问题,谁帮下! onmouseover 不能用于DIV吗 初入贵宝地菜鸟散分!顺带个问题:为了方便使用,我创建了二个数据库连接类,不知道这样会不会影响效率??? 哪位仁兄知道哪有用PHP写的有关学籍管理的系统下载? 為什么我的瀏覽器不能打開.PHP文件? 关于phpmyadmin的问题 在申请免费主页时,所谓的SSI权限是何意?恳请赐请,不胜感激! 怎么把数组里面的元素按照值的大小重新排列? PHP读xml的问题?
如果是的话,可以用你的list的onChange事件
<tr>
<td>
<strong><?php echo $Language->getText('reporting','project'); ?>:</strong><br />
<?php echo report_group_box('g_id',$g_id); ?></td>
<td><strong><?php echo $Language->getText('reporting','type'); ?>:</strong><br />
<?php echo html_build_select_box_from_arrays($a2,$a,'type',$type,false); ?></td>
<td><strong><?php echo $Language->getText('reporting','start'); ?>:</strong><br />
<?php echo report_months_box($report, 'start', $start); ?></td>
<td><strong><?php echo $Language->getText('reporting','end'); ?>:</strong><br />
<?php echo report_months_box($report, 'end', $end); ?></td>
<td><input type="submit" name="submit" value="<?php echo $Language->getText('reporting','refresh');
?>"></td>
</tr>
</table>在上面代码中如何使用onchange事件呢?谢谢!
你的这个html_build_select_box_from_arrays函数是不是生成下拉列表的,可以从这个函数着手。
<td><input type="submit" name="submit" value="refresh"></td>
就可以实现刷新?