哪位大神帮忙看下,我做了个弹出层增加的时候没问题,但是修改我怎么获取数据?
有个增加、修改数据我用弹出层进行代替,效果是这样的:
增加没有问题,但是后面我要修改,怎么进行查询数据并在这上面显示呢?
<br /> <script type="text/javascript"><br /> $(document).ready(function() { <br /> $('#open').click(function() {<br /> var title = $(this).attr("value");<br /> $("#add").val(title);<br /> $('#Window1').AeroWindow({ <br /> WindowTitle: title,<br /> WindowPositionTop: 'center',<br /> WindowPositionLeft: 'center',<br /> WindowWidth: 500,<br /> WindowHeight: 300,<br /> WindowAnimation: 'easeOutCubic'<br /> });<br /> }); <br /> });<br /> </script><br />
<br /><div id="open">添加</div><br /><style><br /> #Window1{display:none;}<br /> </style><br /> <div id="Window1"><br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang"><br /> <tr><br /> <td class="bg_f8" align="right" width="110">分类名称:</td><br /> <td><input type="text" name="info[class_name]" value="" class="inputall input200" /></td><br /> </tr><br /> <tr><br /> <td class="bg_f8" align="right">上级分类:</td><br /> <td><br /> <select name="info[class_type]" class="inputselect"><br /> <option value="news" >资讯中心</option><br /> <option value="help" >帮助中心</option><br /> </select><br /> </td><br /> </tr><br /> <tr><br /> <td class="bg_f8" align="right">分类排序:</td><br /> <td><input type="text" name="info[class_order]" id="add" value="" class="inputall input80" /></td><br /> </tr><br /> <tr><br /> <td class="bg_f8"> </td><br /> <td><input type="submit" name="pesubmit" value="提 交" class="tjbtn" /></td><br /> </tr><br /> </table><br /> </div><br />
<div id="window"><iframe id='name1' name='name1' src='a.php'></iframe></div>
<br /><script type="text/javascript"><br /> $(document).ready(function() { <br /> $('#open').click(function() {<br /> var title = $(this).attr("value");<br /> $("#name1").attr("src","a.php?你自己拼字符");<br /> $('#Window1').AeroWindow({ <br /> WindowTitle: title,<br /> WindowPositionTop: 'center',<br /> WindowPositionLeft: 'center',<br /> WindowWidth: 500,<br /> WindowHeight: 300,<br /> WindowAnimation: 'easeOutCubic'<br /> });<br /> }); <br /> });<br /> </script><br />