对于高手的你来说一定很简单,请教了! 如果不是無刷新變化,可以用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问题 php新手问题 php程序怎么实现后缀名映射 求助:PHP多重继承的问题,方法名怎么不同相同 linux 下 include错误 有关一个mysql语句的写法,请高手指点 php的一个通用文件上传的类。 SUBMIT FORM后的变量取值问题 关于RealPlay控件和在线播放? 求指导 怎么把数组里面的元素按照值的大小重新排列? 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>
就可以实现刷新?