在PHP中替代帧? [英] alternative to frames in php?

查看:74
本文介绍了在PHP中替代帧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论我走到哪里,我都会被告知不要使用框架,而是使用PHP而不是


ok ...所以我该如何解决这个问题?


我想要一个不会移动的顶部横幅,以及一个内容。

左侧的类型列表(可能有滚动条)

,窗口的其余部分是主页面(显然)


现在,我不希望所有3个区域都被加载/重新绘制当我点击链接上

内容,只是主区域


这在php中是否可以实现?


感谢adavance

解决方案

David< lo * *******@yahoo.co.uk>写道:

我去的地方,我被告知不要使用框架,而是使用php

好的......所以我该怎么做呢?


为什么不问那些告诉你使用php代替帧的人呢?他们确实已经自己完成了这件事!

我想要一个不会移动的顶部横幅,以及一个内容。
左侧的类型列表(可能有滚动条)
窗口的其余部分是主页面(显然)

现在,我不想要所有3个区域当我点击
内容链接时加载/重新绘制,只是主要区域

这是否可以在php中实现?



并非没有使用(i)帧。


使用框架,你想要的是它们可以用于什么。你只需要记住帧所施加的限制。问那些说那个

的人你不应该用框架向你解释这些。


" don'不使用框架,而是使用php代替 ?


那就像说,不要开车,而是用汽油代替。

你要做的事情不能可以在php中完成(重新绘制一个

部分),因为那不是php的作用。如果你真的想重新绘制各个部分,请查看CSS或Javascript

。主要的问题是

,你不希望菜单和横幅重新粉刷,即使他们将会是...... b $ b缓存......

Ben

dq5studios.com


David写道:

我去的每个地方,我被告知不要使用框架,而是使用php

好的......所以我该怎么办呢?

我想要一个顶级横幅没有移动,而是内容
左侧的类型列表(可能有滚动条)
窗口的其余部分是主页面(显然)


CSS属性 ;溢出"可以设置为滚动获取滚动条

任何块级HTML元素。像往常一样,这不适用于旧的

浏览器,例如IE。

现在,我不希望所有3个区域都被加载/重新绘制我点击内容上的链接,只是主要区域。


您可以使用XMLHttpRequest仅使用Javascript更新HTML

文档的某个部分。我在这里找到了有用的信息:

< http://jibbering.com/2002/4/httprequest.html>

这可以在php中实现吗?


编号PHP是服务器端,但加载/重新绘制HTML页面是客户端的b


谢谢in adavance



everywhere I go, i get told "don''t use frames, use php instead"

ok... so how do i go about it?

I want a top banner that doesn''t move, and a "contents" type list on the
left (that may have a scroll bar)
and the rest of the window is the main page (obviously)

now, I dont want all 3 areas to be loaded/repainted when i click a link on
the contents, just the "main area"

Is this achievable in php?

Thanks in adavance

解决方案

David <lo********@yahoo.co.uk> wrote:

everywhere I go, i get told "don''t use frames, use php instead"

ok... so how do i go about it?
Why not ask the people that tell you to use php instead of frames? They
surely have done that themselves!
I want a top banner that doesn''t move, and a "contents" type list on the
left (that may have a scroll bar)
and the rest of the window is the main page (obviously)

now, I dont want all 3 areas to be loaded/repainted when i click a link on
the contents, just the "main area"

Is this achievable in php?



Not without using (i)frames.

Use frames, what you want is what they can be used for. You just have to
remember the limitations imposed by frames. Ask the people who say that
you shouldn''t use frames to explain these to you.


"don''t use frames, use php instead" ?

That''s like saying, don''t drive, use gasoline instead.
What you''re asking to do can''t be done in php (repainting a single
section) since that isn''t what php does. Look into CSS or Javascript
if you really want to repaint individual sections. The main problem is
that you don''t want the menu and banner repainted even tho they''ll be
cached...

Ben
dq5studios.com


David wrote:

everywhere I go, i get told "don''t use frames, use php instead"

ok... so how do i go about it?

I want a top banner that doesn''t move, and a "contents" type list on the
left (that may have a scroll bar)
and the rest of the window is the main page (obviously)
The CSS property "overflow" can be set to "scroll" to get scroll bars on
any block-level HTML element. As usual, this doesn''t work on old
browsers such as IE.


now, I dont want all 3 areas to be loaded/repainted when i click a link on
the contents, just the "main area"
You can use XMLHttpRequest to update only a certain section of an HTML
document with Javascript. I found useful information on this here:
<http://jibbering.com/2002/4/httprequest.html>

Is this achievable in php?
No. PHP is server-side, but loading/repainting HTML pages is a
client-side thing.

Thanks in adavance



这篇关于在PHP中替代帧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆