现在使用thinkphp框架和paypal 接口做一个简单的购物网站,小菜鸟一个,出现问题请大侠们指点迷津:config里面:
'URL_MODEL'=>1,在模块之间跳转都明白了,但是我要调用paypal的接口,需要跳离我的当前页面,例如到 https://www.paypal.com/cgi-bin/webs...
总是不成功,还是停留在当前页面。我试着在模板checkOut.html里只写:
<a href="{<$jumpUrl>}">点击这里1</a>
<a href="www.google.com">点击这里2</a>
动作函数为
checkOut(){
$googleURL="http://www.google.com";
$this->assign("jumpUrl",$googleURL);
$this->display();
}
点击"点击这里1"时就是不跳转到google,但是右键在新标签中打开是可以去google的,
点击"点击这里2"时,出错信息:非法操作www.google.com
这是怎么回事啊?挠头ing,请各位帮忙了,第一次在csdn发帖,不胜感激!
'URL_MODEL'=>1,在模块之间跳转都明白了,但是我要调用paypal的接口,需要跳离我的当前页面,例如到 https://www.paypal.com/cgi-bin/webs...
总是不成功,还是停留在当前页面。我试着在模板checkOut.html里只写:
<a href="{<$jumpUrl>}">点击这里1</a>
<a href="www.google.com">点击这里2</a>
动作函数为
checkOut(){
$googleURL="http://www.google.com";
$this->assign("jumpUrl",$googleURL);
$this->display();
}
点击"点击这里1"时就是不跳转到google,但是右键在新标签中打开是可以去google的,
点击"点击这里2"时,出错信息:非法操作www.google.com
这是怎么回事啊?挠头ing,请各位帮忙了,第一次在csdn发帖,不胜感激!
$this->checkStu_logined();
$googleURL="http://www.google.com";
$this->assign("jumpUrl",$googleURL);
$this->display();
}
点击触发checkout动作后,跳到对应模板,直接右键看页面源码的话是这样子:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>报名系统--用户管理中心</title>
<link href="/Public/css/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/Public/js/js2.js"></script>
<base target="frameBord" />
</head><body id="index">
<h1>报名系统--用户管理中心</h1>
<div id="userInfo">你好,用户fae,今天是2012年05月23日</div>
<ul id="globalNav">
<li><a href="javascript:ms=confirm('确定退出');ms?location.href='/index.php/Index/admin_exit':history.go(0)" target="_self">退出</a></li>
<li><a href="/index.php/Index/editStuPassword" target="frameBord">修改密码</a></li>
<li><a href="/index.php/Index/selectedCourse" target="frameBord">已选体育项目</a></li>
<li><a href="/index.php/Index/listCourse" target="frameBord">选择体育项目</a></li>
<li class="select"><a href="/index.php/Index/student_page" target="frameBord">首页</a></li>
</ul>
<iframe id="frameBord" name="frameBord" frameborder="0" width="100%" height="100%" src="/index.php/Index/student_page"></iframe>
</body>
</html>下面是用firebug看的,页面有一个登录抬头部分,下面checkOut.html是嵌进来的iframe<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>报名系统--用户管理中心</title>
<link type="text/css" rel="stylesheet" href="/Public/css/index.css">
<script src="/Public/js/js2.js" type="text/javascript">
<base target="frameBord">
</head>
<body id="index">
<h1>报名系统--用户管理中心</h1>
<div id="userInfo">你好,用户fae,今天是2012年05月23日</div>
<ul id="globalNav">
<li class="">
<a target="_self" href="javascript:ms=confirm('确定退出');ms?location.href='/index.php/Index/admin_exit':history.go(0)">退出</a>
</li>
<li class="">
<a target="frameBord" href="/index.php/Index/editStuPassword">修改密码</a>
</li>
<li class="select">
<a target="frameBord" href="/index.php/Index/selectedCourse">已选体育项目</a>
</li>
<li class="">
<a target="frameBord" href="/index.php/Index/listCourse">选择体育项目</a>
</li>
<li class="">
<a target="frameBord" href="/index.php/Index/student_page">首页</a>
</li>
</ul>
<iframe id="frameBord" width="100%" height="100%" frameborder="0" src="/index.php/Index/student_page" name="frameBord">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>报名系统--用户管理中心</title>
<link type="text/css" rel="stylesheet" href="/Public/css/page.css">
<link type="text/css" rel="stylesheet" href="/Public/css/index.css">
<style type="text/css">
</head>
<body id="page">
<h2>checkout testing</h2>
<a href="http://www.google.com">点击这里</a>
<a href="www.google.com">点击这里2</a>
</body>
</html>
</iframe>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>报名系统--用户管理中心</title>
<link type="text/css" rel="stylesheet" href="/Public/css/index.css">
<script src="/Public/js/js2.js" type="text/javascript">
<base target="frameBord">
</head>
<body id="index">
<h1>报名系统--用户管理中心</h1>
<div id="userInfo">你好,用户fae,今天是2012年05月23日</div>
<ul id="globalNav">
<li class="">
<a target="_self" href="javascript:ms=confirm('确定退出');ms?location.href='/index.php/Index/admin_exit':history.go(0)">退出</a>
</li>
<li class="">
<a target="frameBord" href="/index.php/Index/editStuPassword">修改密码</a>
</li>
<li class="select">
<a target="frameBord" href="/index.php/Index/selectedCourse">已选体育项目</a>
</li>
<li class="">
<a target="frameBord" href="/index.php/Index/listCourse">选择体育项目</a>
</li>
<li class="">
<a target="frameBord" href="/index.php/Index/student_page">首页</a>
</li>
</ul>
<iframe id="frameBord" width="100%" height="100%" frameborder="0" src="/index.php/Index/student_page" name="frameBord">
<html>
<head>
</head>
<body>
</body>
</html>
</iframe>
</body>
</html>
谢谢帮忙!