新手对jQuery不是很懂,求帮个忙
我写了一个的temper.html页面去调用http://hys2013.sinaapp.com/SQL.php页面的内容,我照着网上的例子来怎么不行啊(页面不弹窗)
temper.html:
http://hys2013.sinaapp.com/SQL.php:
求大神给看看应该怎么改一下
temper.html:
<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$.post("http://hys2013.sinaapp.com/SQL.php",function(data){ alert("Data Loaded: " + data); });
</script>
</head>
<body>
</body>
</html>
http://hys2013.sinaapp.com/SQL.php:
<?
$mysql = new SaeMysql();
$conn = mysql_connect(SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS);
//if($conn){ $action="连接成功"; echo "document.write('".$action."');n"; }
$sql="SELECT * FROM `temp` WHERE id = ( SELECT MAX( CAST( id AS UNSIGNED ) ) FROM temp )";//获取最大ID的那一行
$row=$mysql->getLine($sql);
foreach ($row as $key=>$value)
{
$insert_id=$value;
break;//目前只需要id所以无需遍历所有值
}
echo $insert_id;
?> 求大神给看看应该怎么改一下
...全文
相关推荐
jquery新手引导
该资源是实现新手引导的功能,里面有源代码,比较详细,主要是JQuery实现的,很简单
jQuery中$this和$(this)的区别介绍(一看就懂)
// this其实是一个Html 元素。 // $this 只是个变量名,加$是为说明其是个jquery对象。 // 而$(this)是个转换,将this表示的dom对象转为jquery对象,这样就可以使用jquery提供的方法操作。 (function($){ $.fn.hilight = function(options){ debug(this); var defaults = { foreground: 'red', background: 'yellow' }; var opts = $.extend({}, $.fn.hilight.defaults,
jquery table 横竖列的求总和
jquery table 横竖列的求总和,jquery table 横竖列的求总和,jquery table 横竖列的求总和 参考 var lastTr = []; $("#table").find("tr").each(function(j, e){ if(j == 0){ return true
Jquery新手入门源码
Jquery入门源码,前台学习
jquery实现的轮播代码包含焦点有懂java的下
jquery 实现的轮播代码 包含焦点有 懂java的下 源码中有java代码,测试可以换成自己的静态图片,建议懂java的下


Framework
