Posted
on 2013-10-24, 19:47,
by
tmser,
under
web前端
.
在iframe 中,firefox 锚点失效。特别是forward 跳转时,ie 及chrome 设置锚点都会有问题,不过可以使用
window.location.href = window.location.href+'#commentframe'; 方式解决。但这种方式在Firefox中无效。
只能使用js 解决了。网上收集解决方法:
jquery 解决方案:
$(function(){
$("a").each(function (){
var link = $(this);
var href = link.at...
阅读全文>>
Posted
on 2012-10-29, 10:42,
by
tmser,
under
web前端
.
在iframe 的页面中定义了一个快捷键。但在firefox 中测试通过单在ie 中确无效。因为ie中iframe 页获取不的按键的焦点。
解决方法是在iframe 父页中调用:
$(document.getElementById('IFrameId')
.contentWindow.document).keydown(
function(){ alert('Key down!'); });
阅读全文>>
问题一 如何配置集群
可以在任意搜索引擎搜索一下。在结合apache 日志,很容易配置出来。
问题二 session 共享时,登录后页面因为有iframe 登录总不成功
这是因为iframe 重新请求后生成新的session 导致session 混乱,具体表现在刷新过程中请求头中带的sessionid
会变化。搜索了很久也没有看到有什么好的解决办法,有人建议把iframe 页session 关闭。没试过。但即使没有iframe
,发现不断刷新页面,session 仍然会混乱。
但我们系统iframe要改掉难度叫大,于是采用了另外一种方式。即
worker.controller.sticky_session=true
worker.controller.sticky_sess...
阅读全文>>